July 10th, 2011
You must be logged in to post Login Register

Search Forums:


inline edit of select column using editoptions.value trashes select value




New Member

posts 1

Post edited 00:24 – 26/05/2011 by rathomasjr

Using a 'value' for a select edittype in IE 8 causes a problem in the 'editRow' code because the 'setAttributes' function (called from line: 5075) will overwrite the newly created select element 'value' property.  

This bug and the line-numbers apply to the jquery.jqGrid.src.js file version 4.0 downloaded today.

So on IE 8, what you will see is that when you call 'editRow' to put the row into edit mode, any select cell will not be initialized with the correct option selected. The select control is in a state with no selections.

One workaround is to use a dataUrl to populate the select data instead.

I have put a quick patch to the setAttributes function by modifying one line 5029 which will ignore 'value' attributes:


var exclude = ['dataInit','dataEvents','dataUrl', 'buildSelect','sopt', 'searchhidden', 'defaultValue', 'attr', 'value'];

About the jQuery Grid Plugin – jqGrid forum

Most Users Ever Online:


Currently Online:

69 Guests

Forum Stats:

Groups: 1

Forums: 7

Topics: 10271

Posts: 30349


There are 11036 Members

There have been 448 Guests

There is 1 Admin

There are 2 Moderators

Top Posters:

OlegK – 1210

markw65 – 179

kobruleht – 144

phicarre – 132

YamilBracho – 124

Renso – 118

Administrators: admin (60 Posts)

Moderators: tony (7375 Posts), Rumen[Trirand] (81 Posts)

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information