Problem on OnRowSelected event

2 posts, 0 answers
  1. archimede
    archimede avatar
    103 posts
    Member since:
    Jul 2006

    Posted 22 Oct 2009 Link to this post

    I want to set a row of my RadGrid to EditMode when I select it.
    I write this script function that occour OnRowSelected clientevent
    function RowClick(sender, eventArgs)  
                      if(editedRow && hasChanges)  
                       if(confirm("Update changes?"))  
                        hasChanges = false;  
                        $find("<%= GridName.MasterTableView.ClientID %>").updateItem(editedRow);  
                        hasChanges = false;  
                      if(eventArgs != null){  
                      editedRow = eventArgs.get_ItemIndexHierarchical();  
                      $find("<%= GridName.MasterTableView.ClientID %>").editItem(editedRow);  
    My problem is that the eventArgs is always NULL. Can you tell me why this occour? I search on internet a different method to access to the selected row for open it in editmode onrowselected event but I can't find anything.
    Best Regards
  2. Pavlina
    Pavlina avatar
    6070 posts

    Posted 22 Oct 2009 Link to this post

    Hello Francesco,

    Please check out the following article for more information about OnRowSelected client-side event.

    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top