Forum
Topic RSS
05:36
06/09/2009
OfflineHi everyone,
I've been searching for a while, but I can't find anything about how to add a custom sort function to a column. I'm not even sure if it's possible in jqgrid.
As you can see at http://www.gebroederslaan.nl/b.....chema.html I have cells that just show a color. I've accomplished this by using a custom formatter for these columns:
if(cellvalue == 1) {
return '<div class=”ui-state-highlight”> </div>';
}
else {
return '';
}
}
But now I want to be able to sort on these columns as well. Since there's no real value in it, jqgrid won't sort it. So I want to use a custom sort function which checks if there's an html element with the class “ui-state-highlight” in it or not to handle the sorts.
Does anyone know how to do this?
Kind regards Lotte-Sara Laan
Most Users Ever Online: 994
Currently Online:
34 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66
Log In
Home