Forum

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

Search Forums:


 






error in client ediit in ASP MVC and easy solution

No Tags
UserPost

15:53
10/01/2013


skubche

Member

posts 4

Hello!

After update to version 4.4.1 client edit stop working correctly.
I explore source code and found this code in file jquery.jqGrid.src.js line 7600:

//rp_ge[$t.p.id].reloadAfterSubmit = rp_ge[$t.p.id].reloadAfterSubmit && $t.p.datatype != "local";
// the action is add
Maybe this comment is failure?
After uncomment this it work correctly!

Thanks!

13:10
11/01/2013


skubche

Member

posts 4

Post edited 14:01 – 11/01/2013 by skubche
Post edited 14:02 – 11/01/2013 by skubche


Found this line commenting in GitHub – commit 5e53614

named "Fix reloadAfterSubmit to be executed in case of local datatype"

But i expect in local mode (clent side) that grid woudnt be reloaded after adding row, but instead grid woud be change on client side by script!


if(rp_ge[$t.p.id].reloadAfterSubmit) { $($t).trigger("reloadGrid") } else { /*adding on client side */}

Otherwise there is no way to add a line on client side because reloadAfterSubmit ALWAYS equals true and we never get to code where new line adding on client side by script!

No Tags

About the jQuery Grid Plugin – jqGrid forum

Most Users Ever Online:

215


Currently Online:

48 Guests

Forum Stats:

Groups: 1

Forums: 7

Topics: 10276

Posts: 30365

Membership:

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




Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information