<ej:Grid ID="FlatGrid" runat="server" AllowSorting="True" AllowGrouping="true" AllowPaging="True" EnableRowHover="false" > <ClientSideEvents RecordDoubleClick="doubleClick" /> . . . . . </ej:Grid>
<script type="text/javascript"> function doubleClick(args) { alert("Column Name: " + this.getColumnByIndex(args.cell.index())["headerText"]);// returns the corresponding column name alert("Cell Value: " + args.cell.text());// returns the corresponding cell value alert("Selected cell index: " + args.cell.index());//returns the corresponding cell index alert("OrderID column corresponding to the selected cell: " + this.getCurrentViewData()[args.cell.closest("tr").index()].OrderID);//returns the corresponding OrderID value. } |
<ej:Grid ID="FlatGrid" runat="server" AllowSorting="True" AllowGrouping="true" AllowPaging="True" EnableRowHover="false" > <ClientSideEvents RecordDoubleClick="doubleClick" /> . . . . . </ej:Grid>
<script type="text/javascript"> function doubleClick(args) { . . . . alert("OrderID column corresponding to the selected cell: " + this.getCurrentViewData()[this.getIndexByRow(args.cell.closest("tr"))].OrderID);//returns the corresponding OrderID value. } |
Thanks for your update.
We are happy that your requirement is achieved.
Regards,
Ragavee U S.