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

REQUEST: New Property for AutoRow Select

2 Answers 68 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 24 Mar 2011, 03:02 PM
Please add a new property to the RadGrid called "Auto-SelectFirstRow=True". The purpose of this property would be to:

1) Auto-detect when new data is loaded into the grid, then automatically select the first row. 
2) If paging, automatically selects the first row. 

Of course, if no rows are present, it would not select any rows. 

An alternative approach would be use "Auto-SelectThisRow=4" where the developer can set the row index to be auto-selected. 

Thank you for the consideration.

2 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 29 Mar 2011, 04:00 PM
Hello Brian,

The required functionality is custom behavior which could be easily achieved with the current implantation of RadGrid. It is not possible to add separate properties for each custom functionality that could be applied in the control. So we do not consider adding such properties in radGrid control.


Greetings,
Maria Ilieva
the Telerik team
0
Fred
Top achievements
Rank 1
answered on 02 Aug 2011, 08:37 PM
what is the code to do that. I tried

 

 

if (RadGrid1.MasterTableView.Items.Count > 0)

 

{

    RadGrid1.MasterTableView.Items[0].Selected =

 

true;

 

}

but end up with the page before I hit next page. In other words if I was on page 4 and hit next this code gives me the first item on page for not page 5.

Tags
Grid
Asked by
Brian
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Fred
Top achievements
Rank 1
Share this question
or