jqxgrid selectionmode checkbox , check already selected checkboxes

I am using similar kind of jqxgrid shown in below link. How can we show already selected check boxes ? Let say I have to show countries in jqxgrid, already i have choosen 2 countries earlier. Now I want to shown already selected checkboxes as checked and allow user to do more selection of countries. Please help

Thx

https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/index.htm#demos/jqxgrid/checkboxselection.htm

2 answers

  • answered 2018-10-09 16:53 scripto

    Have you tried using selectrow method of jqxGrid. You need to pass a row index when you call the method. By doing that, you will select a row and the checkbox will be checked.

  • answered 2018-10-10 06:57 sajidbigler

    Finally I iterate array and Selectrow and it's working Thanks a lot