Documentation

6 posts, 0 answers
  1. Roland
    Roland avatar
    156 posts
    Member since:
    Feb 2009

    Posted 08 Dec 2009 Link to this post

    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 ?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 08 Dec 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Roland
    Roland avatar
    156 posts
    Member since:
    Feb 2009

    Posted 09 Dec 2009 Link to this post

    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
  5. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 11 Dec 2009 Link to this post

    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.
  6. Roland
    Roland avatar
    156 posts
    Member since:
    Feb 2009

    Posted 11 Dec 2009 Link to this post

    Yes, I know that, however, where eventArgs.get_itemIndexHierarchical() is documented apart from the example ?
  7. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 14 Dec 2009 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017