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

Help me!!

2 Answers 41 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gennaro
Top achievements
Rank 1
Gennaro asked on 17 Sep 2008, 07:52 AM
Hi,

kindly you can makes an example me in asp.net, because, I have tried of all but I do not succeed to use this function with the grid: 

function SetFirstRowActive()
{
 var grid = $find("<%= RadGrid1.ClientID %>");
 grid.set_activeRow(grid.MasterTableView.get_dataItems()[0].get_element());
}

 thanks to all

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 17 Sep 2008, 08:02 AM
Hi Gennaro,

I guess you are trying to set the first row of RadGrid(asp.net) to be active. If so try the following javascript code:

function SetFirstRowActive() 
  var grid = window["<%= RadGrid1.ClientID %>"]; 
  grid.SetActiveRow(grid.MasterTableView.Rows[0]); 


You can also refer the following help article.
SetActiveRow

Cheers
Shinu.
0
Gennaro
Top achievements
Rank 1
answered on 17 Sep 2008, 10:12 AM
thanks
Tags
Grid
Asked by
Gennaro
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Gennaro
Top achievements
Rank 1
Share this question
or