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
close icon

How to find Row index of grid grouping control in asp.net

Please help me

1 Reply

SK Shanmugaraja K Syncfusion Team August 21, 2014 06:21 AM UTC

Hi Narry,

 

Thanks for using Syncfusion products.

 

We would like to let you know that your requirement has been achieved by using ClientSideOnRecordClick event. Please refer the below code snippet to achieve your requirement.

 

[ASPX]

 

<Syncfusion:GridGroupingControl ID="GridgroupingControl1" runat="server" Autoformat="Office 2007 Blue"

                   ClientSideOnRecordClick = "select(this)" ShowGroupDropArea="true" DataSourceCachingMode="ViewState" Width="800px" >

                             <TableDescriptor Name="Employees" AllowFilter="false" AllowNew="false" AllowEdit="false">    

….

 

[JS]

 

function select(gridobj)

        {

            var rowIndex = gridobj.Row.tableRow.rowIndex;

            alert("selected row index is: "+rowIndex)

        }

 

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

 

Please let us know if you need further assistance.

 

Regards,

Shanmugaraja K


Attachment: WebApplication1_9006e8d3.zip

Loader.
Live Chat Icon For mobile
Up arrow icon