Im trying to find any docs regarding client "eventArgs" for many events that I need.
I can find some docs for other controls (at least minimal) but for grid none. Without script debugging I cant find what properties/methods are available for most of the client side events in the grid.
Did I miss them or cannot find ? Or maybe they are missing ?
5 Answers, 1 is accepted
Probably you missed out the following links. I believe these should help you find out more on Client-Side API for RadGrid.
RadGrid Class Members
ClientEvents Class Members
Hope this helps..
Princy.
Now I found those links. Take this one for example: Grid_OnRowClick.
Quote:
Fired by |
RadGridTable |
Arguments |
gridDataItem - tablerow instance domEvent - dom event |
Can be canceled |
No |
Examples |
ascx/aspx <ClientEvents OnRowClick="RowClick" ... JavaScript <script> function RowClick(sender, eventArgs) { alert("Click on row instance: " + eventArgs.get_itemIndexHierarchical()); </script> |
Now, where does it say that eventArgs has "get_itemIndexHierarchical()" member ?
And what does Arguments mean ?
Sender is a grid , eventArgs is what ? I know it has get/set gridDataItem what else ?
Roland
Please refer to the note at the bottom of the help topic to see how you can get the gridDataItem on the OnRowClick client-side event handler.
For your conveneince I am pasting it here:
Note: get_gridDataItem() is not directly available on the client unless OnRowCreating/OnRowCreated events are hooked up. This is done for optimization purpose. If you need the rowIndex, you can use eventArgs.get_itemIndexHierarchical()
Regards,
Iana
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Indeed, you are right that the itemIndexHierarchical property is not available in the documentation. We will add it I hope it is available in the next version of RadControls for ASP.NET AJAX help.
Thank you for your feedback.
All the best,
Iana
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.