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

    Hello,
    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);  
                       }  
                       else 
                       {  
                        hasChanges = false;  
                       }  
                      }  
                        
                      if(eventArgs != null){  
                        alert("eventOK");  
                      }else{  
                        alert("eventNULL");  
                      }  
                        
                      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
    archimede 
  2. Pavlina
    Admin
    Pavlina avatar
    6084 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.
    OnRowSelected

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