Hi Assaf,
Thank you for using Syncfusion products.
Your requirement of getting selected row value can be achieved from current row values instead of table row values. Please refer to the following code snippets:
[JavaScript]
<script type="text/javascript">
function SelectionChange(gridobj) {
// Temp record conatins the object binded to current row.
this.Temprecord = {};
var visiblecolumns = gridobj.currentRow.gridTable.visibleColumns; // get the selected record value from currentRow
for (var i = 1; i < visiblecolumns.length; i++) {
this.Temprecord[visiblecolumns[i].name] = gridobj.currentRow.GetValue(visiblecolumns[i].name);
}
alert(this.Temprecord["Name"]);
}
</script>
[Aspx]
<syncfusion:GridGroupingControl ID="GridGroupingControl1" runat="server" ShowHeaderGroupingIndicators="false" ShowIndicator="false"
AutoFormat="Office 2007 Blue" BorderCollapse="Separate" DataSourceCachingMode="ViewState" ClientSideOnSelectionChanged="SelectionChange(this)">
. . . .
</Syncfusion:GridGroupingControl>
For your convenience , we have prepared the sample and the same can be downloaded from the following link:
http://www.syncfusion.com/downloads/Support/DirectTrac/95502/Sample1116395137.zip
Please try this and let us know if you have any other queries.
Regards,
Eswari.S
Hi Assaf,
Sorry for the inconvenience caused.
Sample link modified in our
previous update. Please find the updated sample link from the following link:
Please try this and let us know if you have any other queries.
Regards,
Eswari.S