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

Problem on OnRowSelected event

1 Answer 45 Views
Grid
This is a migrated thread and some comments may be shown as answers.
archimede
Top achievements
Rank 1
archimede asked on 22 Oct 2009, 02:59 PM
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 

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 22 Oct 2009, 05:12 PM
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.
Tags
Grid
Asked by
archimede
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or