4 Answers, 1 is accepted
0
Accepted
Shinu
Top achievements
Rank 2
answered on 21 May 2012, 02:26 PM
Hi Savyo,
Please try the following code snippet to select the first row in page load.
C#:
Thanks,
Shinu.
Please try the following code snippet to select the first row in page load.
C#:
protected void RadGrid1_PreRender(object sender, EventArgs e){ RadGrid1.MasterTableView.Items[0].Selected = true; }Thanks,
Shinu.
0
Savyo
Top achievements
Rank 1
answered on 22 May 2012, 08:24 AM
That works!!
Thanks for the code..
Thanks for the code..
0
Savyo
Top achievements
Rank 1
answered on 22 May 2012, 08:26 AM
Can I get the index number of a row in the on-click of the row. Is there any possible solution??
0
Shinu
Top achievements
Rank 2
answered on 22 May 2012, 08:45 AM
Hi,
Try the following Javascript to get the row index when you click a row.
JavaScript:
Thanks,
Shinu.
Try the following Javascript to get the row index when you click a row.
JavaScript:
<script type="text/javascript"> function OnRowClick(sender, args) { var rowindex = args._itemIndexHierarchical; alert(rowindex); }</script>Thanks,
Shinu.