There are two possible means to reference the client grid object:
- Subscribing to the GridCreated client event of the control. In its handler
this will reference the client grid object
- Through the window object of the browser: window["<%= RadGrid1.ClientID %>"]
Note: When the grid resides in
INamingContainer the first approach is more convenient.
r.a.d.
grid exposes rich client side API with various client events which can be
wired to execute custom client code and change the data presentation.
In this example we demonstrate the usage of the following client-side events:
- OnGridCreated
- OnColumnResized
- OnColumnSwapping
- OnColumnSwapped
- OnColumnClick
- OnColumnDblClick
- OnColumnMouseOver
- OnColumnMouseOut
- OnRowResized
- OnRowClick
- OnRowDblClick
- OnRowMouseOver
- OnRowMouseOut
- OnRowSelected
- OnRowDeselected
- OnRowContextMenu
- OnColumnContextMenu
More about the client side API of the control you can learn from the
Client-side API
reference section in the grid documentation:
Getting familiar with the client side API
Client-side API reference