Forum

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

Search Forums:


 






data parameter are not modified during inline editing

UserPost

02:08
13/07/2010


OlegK

Germany

Member

posts 1210

Post edited 23:10 – 12/07/2010 by OlegK
Post edited 23:13 – 12/07/2010 by OlegK


Hi Tony!

I answerd on one question on StackOverflow (http://stackoverflow.com/quest…..59#3230059). The problem is that during inline editing (saveRow or editRow) only the data in the grid will be saved. The internal data parameter, used for holding of data in case of the local data holding, will be NOT modified. As a workaround I suggested to modify myGrid.getGridParam("data") based on the data read from the jqGrid after saving: myGrid.getRowData(rowid).

If one don't do this, then the grid data will be reseted after and sorting or paging operation and all modification will be disappeared.

If seems to me that modification of the internal data parameter should do jqGrid itself.

Best regards
Oleg

P.S. The problem are also posted under http://www.trirand.com/blog/?p…..er-paging/

10:14
15/07/2010


tony

Sofia, Bulgaria

Moderator

posts 7392

Hello Oleg,

Thanks, but it seems that this is not a bug.

Kind Regards

Tony

For professional UI suites for PHP, ASP.NET and ASP.NET MVC visit us at our commercial products site – trirand.net – by the very same guys that created jqGrid.

12:45
15/07/2010


OlegK

Germany

Member

posts 1210

Thanks Tony,

I am not yet know new 3.7 features of jqGrid good enough.

Nevertheless, it seems to me that the new function refreshIndex should be at lease documented on http://www.trirand.com/jqgridw…..i/doku.php. If would be also nice if the setting of data parameter would be possible with only  one setGridParam operation like for the most all other parameters documented in http://www.trirand.com/jqgridw…..ki:options . One can for example introduce additional jqGrid method (like for setting the capture) and write in the last column "Can be changed?" in the table from http://www.trirand.com/jqgridw…..ki:options the text "No.Method avail." or just like for setting altclass only write in the documentation something like "Yes. Requires index refresh with refreshIndex method".

Probably any changes of documentation are easier as changes of the code.

Best regards
Oleg 

16:06
19/07/2010


tony

Sofia, Bulgaria

Moderator

posts 7392

Thanks Oleg,

Will do it.

Regards

Tony

For professional UI suites for PHP, ASP.NET and ASP.NET MVC visit us at our commercial products site – trirand.net – by the very same guys that created jqGrid.


About the jQuery Grid Plugin – jqGrid forum

Most Users Ever Online:

215


Currently Online:

ksbigfoot

53 Guests

Forum Stats:

Groups: 1

Forums: 7

Topics: 10280

Posts: 30385

Membership:

There are 11049 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 (7392 Posts), Rumen[Trirand] (81 Posts)




Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information