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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to create an object for Essential Grid in ClientSide? And How to invoke it?

 

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

Article ID: Published Date: Last Revised Date: Platform: Control:
740 04/30/2011 07/10/2014 ASP.NET Web Forms (Classic) GridGroupingControl
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon