4 Answers, 1 is accepted
0
Hi Swathi,
Regards,
Vanya Pavlova
the Telerik team
You mause use ScrollIntoViewAsync method of RadGridView to scroll and to select the newly added item within AddingNewDataItem event of RadGridView:
private
void
RadGridView_AddingNewDataItem(
object
sender, Telerik.Windows.Controls.GridView.GridViewAddingNewEventArgs e)
{
// TODO: Add event handler implementation here.
var gridView=e.OwnerGridViewItemsControl;
this
.gridView.ScrollIntoViewAsync(
this
.gridView.Items[
this
.gridView.Items.Count - 1],
//the row
this
.gridView.Columns[
this
.gridView.Columns.Count - 1],
//the column
new
Action<FrameworkElement>((f) =>
{
(f
as
GridViewRow).IsSelected =
true
;
// the callback method
}));
}
Vanya Pavlova
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0

Swathi
Top achievements
Rank 1
answered on 18 Jan 2011, 06:02 AM
Hi ,
Many Thanks for the reply.
I still have an issue to use the code you have suggested.
When i click on new row button row is getting added on the top instead of bottom.
can you suggest me how to get new row at botttom so that i can set the isselected property for the new row
Swathi.
Many Thanks for the reply.
I still have an issue to use the code you have suggested.
When i click on new row button row is getting added on the top instead of bottom.
can you suggest me how to get new row at botttom so that i can set the isselected property for the new row
Swathi.
0

gureumi
Top achievements
Rank 1
answered on 10 Jun 2011, 06:14 PM
1. Where can I reach the answer without questioning in this forum?
I am talking about specifically which part of the documentation. Because in addition to the practical answer given here, I'd like to understand better about class hierarchy of WPF tool form Telerik.
2. Is there any reason for deciding not to have this behavior as default for RadGridView_AddingNewDataItem()?
It seems a bit counterintuitive.
Especially when we use 'CanUserInsertRows' property is set to 'true' and 'SelectionMode' is 'Single'.
I am talking about specifically which part of the documentation. Because in addition to the practical answer given here, I'd like to understand better about class hierarchy of WPF tool form Telerik.
2. Is there any reason for deciding not to have this behavior as default for RadGridView_AddingNewDataItem()?
It seems a bit counterintuitive.
Especially when we use 'CanUserInsertRows' property is set to 'true' and 'SelectionMode' is 'Single'.
0
Hello Gureumi,
Vanya Pavlova
the Telerik team
Please refer to our online documentation for further info.
Vanya Pavlova
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items