We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

ejGrid - Row selection in paging

I want to select first row of each page after clicking on next page or previous page button. I am only able to select first row after grid initialization.

1 Reply

VA Venkatesh Ayothi Raman Syncfusion Team June 9, 2016 12:11 PM UTC

Hi Prashant, 

Thanks for contacting Syncfusion support. 

We are achieved your requirement “Select the first row while paging operation and grid Initialization” using actionComplete event. This event triggers after every Grid success event. We can check the condition of requestType and select the row using selectRows() method in the Grid. 
Please refer to the Sample, code example and Help document, 

Code example: 

                // the datasource "window.gridData" is referred from jsondata.min.js 
                 allowPaging: true, 
                columns: [ 
                      . . .  
<ActionComplete event> 
function actionComplete(args){ 
              if(args.requestType == "paging" || args.requestType == "refresh"){ 
                  this.selectRows(0); //Select the first row every page operation 

Venkatesh Ayothiraman. 

Live Chat Icon For mobile
Up arrow icon