on 07-06-2006 6:58 AM
Hi
I have a problem in sorting and i have used the table sorter where i have a date field and the data i get from web service has date format <b>yyyyMMddHHmmss</b> and i want to show in date in <b>dd:MM:yyyy HH:mm:ss</b> this format but when i apply new format to date it does not sort well it returns some wrong sorting (only in new format)
please tell me what could be the problem
Thanks in advance
Hi nk,
AFAIR, TableSorter has constructor wich takes array of Comparator`s. Implement appropriate comparator wich will comapre NOT context attrubute which is bound to cell editor (formated) BUT initial one (not formated).
Best regards, Maksim Rashchynski.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OK.
In case you are not getting anything it can be too long to explain.
Please, answer:
Do you know what is Comparator?
Do you know what is constructor and constructor parameters?
Do you know what is binding between context attributes and UI elements properties in terms of WD?
Do you know the nesting structure of Table UI element and approprtiate properties of involved objects?
Do you have rough understanding how TableSorter works?
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.