Hugh Gibson wrote:
> 
> Philipp,
> 
>> I have to different kinds of content in a table column. The first 
>> part of content is a date. The other part is is a string.
>> 
>> The sort of the table doesnt work correct...
>> 
>> It mixes the content like this
> 
> Looks like you have to create a new table model and override sortByColumn.
> 
> Take a look at qx.ui.table.SimpleTableModel, line 113. That's the default
> implementation. The "comperator" [sic] function is using simple object
> compare and maybe if you've got an object in some cases, and a string in
> others, you will get that odd sorting. Perhaps an exception is being
> thrown because you are not comparing like with like.
> 
> So just override SimpleTableModel with your own class, override
> sortByColumn and write your own comparator. Then use your table model in
> the constructor to your Table.
> 
> Hugh
> 
> 

Thanks Hugh !

That sounds good. I will try to fix it this way.

Philipp

-- 
View this message in context: 
http://www.nabble.com/sort-mixed-types-of-content-inside-table-column-tf2999478.html#a8376400
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to