jQuery UI Widgets › Forums › Grid › This is a question about row update in grid.
Tagged: grid, jqxGrid sort, updaterow
This topic contains 4 replies, has 2 voices, and was last updated by kimmansu 4 years, 3 months ago.
-
Author
-
This is a question about row update in grid.
The “updaterow” does not work in the sort state.Is this a bug?
Please let me know how to solve this problem.– jQuery version : 1.12.4
– jQWidgets version : 10.0.2
– device type(PC, Mobile) : PC
– browser name and version : Chrome 85.0.4183.83 – 64bit– Please, provide step by step instructions on how to reproduce the reported issue and provide a small sample which demonstrates it.
* 1 step : visit jsfillde URL : http://jsfiddle.net/tankla/pdua0qfm/8/
* 2 step : select any row.
* 3 step : Click the “Update Selected Row” button.
* 4 step : You can see that the selected row does not change.– Remove the sorting of “Last name”. then you can see that the selected row does change.
I want to know why and how this happens.
Please assist.
Thank you.UPDATE :
visit below url plz.
http://jsfiddle.net/tankla/pdua0qfm/16/see below gif image.
https://i.imgur.com/k73CHu5.gifHello kimmansu,
Thank you for this feedback.
I will create a work item.
It seems that these issues become from thesorting
feature with the"many"
value option.
I mean that you could try to use the default option if it is possible for you.Best Regards,
Hristo HristovjQWidgets team
https://www.jqwidgets.comThank you for your answer.
I solved it as below.
var selectedrowindex = $("#jqxgrid").jqxGrid('getselectedrowindex'); var rowscount = $("#jqxgrid").jqxGrid('getdatainformation').rowscount; if (selectedrowindex >= 0 && selectedrowindex < rowscount) { //정렬상태에서는 updaterow가 동작하지 않음으로 상태를 저장, 정렬 초기화, 상태를 다시 불러오는 방식으로 처리하자. $("#jqxgrid").jqxGrid('savestate'); //상태 저장 $("#jqxgrid").jqxGrid('clearfilters'); // 검색 초기화 $("#jqxgrid").jqxGrid('removesort'); // 정렬 초기화 var id = $("#jqxgrid").jqxGrid('getrowid', selectedrowindex); var commit = $("#jqxgrid").jqxGrid('updaterow', id, datarow); //$("#jqxgrid").jqxGrid('ensurerowvisible', selectedrowindex); $("#jqxgrid").jqxGrid('loadstate'); // 저장된 상태 로드 }
-
AuthorPosts
You must be logged in to reply to this topic.