This is a migrated thread and some comments may be shown as answers.

Documentation

5 Answers 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Roland
Top achievements
Rank 1
Roland asked on 08 Dec 2009, 10:37 PM
Hello,

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

Sort by
0
Princy
Top achievements
Rank 2
answered on 09 Dec 2009, 05:52 AM
Hello Roland,

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.
0
Roland
Top achievements
Rank 1
answered on 09 Dec 2009, 03:45 PM
Hmm,

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
0
Iana Tsolova
Telerik team
answered on 11 Dec 2009, 01:07 PM
Hello 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.
0
Roland
Top achievements
Rank 1
answered on 11 Dec 2009, 03:24 PM
Yes, I know that, however, where eventArgs.get_itemIndexHierarchical() is documented apart from the example ?
0
Iana Tsolova
Telerik team
answered on 14 Dec 2009, 11:11 AM
Hi Roland,

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.
Tags
Grid
Asked by
Roland
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Roland
Top achievements
Rank 1
Iana Tsolova
Telerik team
Share this question
or