4 Answers, 1 is accepted
0
Hello Eduardo,
This is the default behavior but you can easily scroll to the selected item by calling BringDataItemIntoView method.
If there is enough demand we may change this behavior.
Thanks for the feedback.
Do not hesitate to contact us in case you have further questions.
Best wishes,
Hristo
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
This is the default behavior but you can easily scroll to the selected item by calling BringDataItemIntoView method.
If there is enough demand we may change this behavior.
Thanks for the feedback.
Do not hesitate to contact us in case you have further questions.
Best wishes,
Hristo
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Eduardo
Top achievements
Rank 1
answered on 28 Apr 2009, 11:14 AM
do you have an examplo this?
0
Eduardo
Top achievements
Rank 1
answered on 28 Apr 2009, 11:39 AM
I tryed it:
grid.ItemsControl.BringRecordIntoView(grid.SelectedRecord);
my grid has records and a selected record, but it return out of range exception
why?
0
Hello Eduardo,
Here is a snippet on how to scroll into view the selected item:
where dt is DataTable field with more then 20 rows. The DataTable is set as ItemsSource on radGridView.
This is WPF example (because there is no DataTable class in Silverlight) but the principe is the same.
Just get the reference to the item that you want to select, set it as SelectedItem and call BringDataItemIntoView method with this object.
Let us know if you need more help.
All the best,
Hristo
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Here is a snippet on how to scroll into view the selected item:
| radGridView1.SelectedItem = dt.Rows[20]; |
| radGridView1.BringDataItemIntoView(dt.Rows[20]); |
This is WPF example (because there is no DataTable class in Silverlight) but the principe is the same.
Just get the reference to the item that you want to select, set it as SelectedItem and call BringDataItemIntoView method with this object.
Let us know if you need more help.
All the best,
Hristo
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.