jqGrid not saving inline row edits

前端 未结 2 1497
無奈伤痛
無奈伤痛 2020-12-19 09:31

I\'m working with jqGrid 4.3.2 in an ASP.NET MVC 4 website, jQuery 1.7.2. There are several places in the application where jqGrid is used. My general setup right now is t

2条回答
  •  时光取名叫无心
    2020-12-19 10:28

    For anyone reading this in 2016, this functionality has now been incorporated into jqGrid. See https://github.com/tonytomov/jqGrid/issues/785. At the time of writing jqGrid 5.1 was out, so I expect this functionality to be available from version 5.2 onwards. Alternatively just obtain the most recent code from GitHub.

    To use it simply set the following properties on your jqGrid:

    ...
    restoreAfterSelect: false,
    saveAfterSelect: true,
    ...
    

    There is no longer a need to implement your own solution.

提交回复
热议问题