|
I too
had the same problem and after trying out various ways i had to remove the link
for the Number column and return the value as an INTEGER and now the sorting
works fine
Hi,
In my decorator I have the
following code to get DealerId.
public String
getDealerId() {
String str = ""; User user =
(User)getCurrentRowObject(); int
dealerId = user.getDealerId();
if (dealerId > 0)
{ str = "<a
href="">
+ dealerId
+
"');\">"
+
dealerId
+ "</a>";
} else
{ str =
""+dealerId; } return
str; }
Now when I sort on dealerId I have 2 problems
:
1) 0, as it is not a link is always treated
differently.
2) And the rest are treated as Strings and
sorted. As a result ascending order sort has the
following order :
222
240
25
0
instead of
0
25
222
240
Any solution ?
thanx
Deepak
==============================================================================
This message is for the sole use of the intended recipient. If you received this message in error please delete it and notify us. If this message was misdirected, CSFB does not waive any confidentiality or privilege. CSFB retains and monitors electronic communications sent through its network. Instructions transmitted over this system are not binding on CSFB until they are confirmed by us. Message transmission is not guaranteed to be secure.
==============================================================================
|