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

Row Index

How to find Row index on Grid .let me As soon As possible

1 Reply

AS Alan Sangeeth S Syncfusion Team August 29, 2014 06:06 AM UTC

Hi Venkatesh,


Thanks for using Syncfusion Products.


We would like to let you know that we can find row index using “getIndexByRow” method of Grid. Please refer the following code snippets.


var obj = $("#EmployeesGrid").ejGrid("instance")

var tr = obj.getContent().find("tr").first();

var index = obj.getIndexByRow(tr); // Need to pass tr element in Grid Content

 

For your convenience we have created a sample and the same can be downloaded from below link.


Sample: http://www.syncfusion.com/downloads/support/directtrac/general/ASPSample929927059.zip


In the above sample, on a button click event, we have displayed the row index of first row in Grid Content.


Please let us know if you need any further assistance.

Regards,
Alan Sangeeth S


Loader.
Up arrow icon