Forum
06:32
18/08/2009
Hello,
I found that when you set a column's formatter property to “select” and recieve a NULL value from the server, it displays “undefined“. There should be an option to set what to display in those cases, because in my case, what I want it to display is just an empty string.
By the way, I can't set an option like this (which I use to set a NULL value) if I try to pass the “editoptions”:”value” parameter like an object:
I think the drop-down list should automatically display an empty option as above when the “editrules”:”required” option is false.
---EDIT---
I thought another possibility. Maybe adding an afterFormat event, which fires after aplying the formatter to the grid. This way I can change whatever I don't like.
Thanks, see you
03:20
Moderators
30/10/2007
Hello,
I think that nothing should be done. For me all work correct. If the value is not found the empty string is returned.
Also please check your editoptins values - maybe you end it with ";" at end which is not correct - i.e "1:one;2:two;" - this string is not correct which caouse to return undefined.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
92 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