Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
formatter: "select" -> Fails when null
17/09/2009
06:32
Avatar
yajo
Member
Members
Forum Posts: 6
Member Since:
18/08/2009
sp_UserOfflineSmall Offline

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:

<option value=”"></option>

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 Wink

18/09/2009
03:20
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information