Author |
Message |
30/04/2008 17:03:11
|
kabat
Power User
Joined: 10/12/2007 10:12:44
Messages: 78
Offline
|
Hi Björn,
I use the sort reference attribute in a grid. In the grid column I defined a label. The sorting works perfectly.
But the problem is that the content of the columns are numbers. And the numbers are of course sorted like Strings. But I would like to sort them like Integers. Is there a way to do that?
Agnes
|
|
|
30/04/2008 17:07:33
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5526
Offline
|
Hi Agnes,
the sorting analyses the data type of the property and then decides if to sort by number or by String. Your server side data type behind the SORTREFERENCE definition seems to be a String.
Either change the data type of the corresponding get-method to be an int (or whatever), or create a second property which passes back the correct data type, and which you then refer in SORTREFERENCE.
You could also override hte FIXGRIDListBinding's sorting, but I think this is much more effort, so better create some additional property.
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
30/04/2008 17:56:26
|
kabat
Power User
Joined: 10/12/2007 10:12:44
Messages: 78
Offline
|
Mmmh, it's really easy. I didn't think about that labels could reference int properties
Thank you!
|
|
|
23/05/2008 14:39:31
|
kuferstein
Joined: 23/11/2007 12:22:25
Messages: 2
Offline
|
Hi community,
I use the sorting in the grid and have the following problem:
the cells in the grid, which are empty, when sorting is processed, seems to be not be considered. Has somebody a similar problem / solution for it?
Thank you in advance and friendly greetings!
Igor
Filename |
sortierung_falsch.JPG |
Download
|
Description |
|
Filesize |
35 Kbytes
|
Downloaded: |
528 time(s) |
|
|
|
26/05/2008 09:49:15
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5526
Offline
|
...sorting of null values is now supported, pls use current release.
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
26/05/2008 12:51:40
|
kuferstein
Joined: 23/11/2007 12:22:25
Messages: 2
Offline
|
Hi Björn,
thanks for update. The sorting works fine now. The last version (second update of today) is also "not more buggy" regarding to rowbodypane...
Thanks for your fast reaction!
|
|
|
|