The Get() method of the __EssentialGridCollection can be used to create an object for GridGroupingControl in ClientSide. Please refer the below code snippet which illustrates this: $script type="text/javascript"> var SelectRowId function createObject() { // Creates an object for Essential GridGroupingControl var gridObj = __EssentialGridCollection.Get("GridGroupingControl1"); // below code Will invoke the OnSelectedrowChanged eventhandler. gridObj.onselectedrowchanged =OnSelectedRowChanged; } function OnSelectedRowChanged(gridobj,tr) { //Code to access the selected record. } $/script> The craeteObject() has to be invoked like below: $/form> $script> //Will invokes the Created object on Page load createObject() $/script> Note: Here "$" symbol has been used instead of "<". Sample: http://help.syncfusion.com/support/samples/kb/Grid.Web/6.1.0.34/GGCClientside/Clientside.zip |
This page will automatically be redirected to the sign-in page in 10 seconds.