웹 개발

jqGrid - Last row not showing after reloadGrid [reloadGrid하면 마지막 row가 사라지는 현상]

노루아부지 2019. 8. 15. 12:56

You main error is the usage of rowNum: -1 instead of some large enough value like rowNum: 10000.

Moreover you should use gridview: true parameter of jqGrid and data: mydata instead of much more slow filling of grid with respect of addRowData (moreover you use <= in the loop instead of <).

Additionally I would recommend you to use column templates which will reduce the code and can it more readable. The result of the changes you can see here.

 

rowNum을 -1로 주지 말고 충분한 숫자로 주라는 소리이다.

 

출처 : http://stackoverflow.com/questions/9037701/last-row-not-showing-after-reloadgrid

728x90

'웹 개발' 카테고리의 다른 글

log4j properties  (0) 2019.08.15
javascript jquery each break, continue  (0) 2019.08.15
jQuery radio button Control  (0) 2019.08.15
[javascript] jstree 1.0 ver. checkbox 사용법  (0) 2019.08.15
css에서 name 속성과 id 속성의 충돌 문제  (0) 2019.08.15
loading