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

Going to the last page for insert.

2 Answers 63 Views
DataPager
This is a migrated thread and some comments may be shown as answers.
gureumi
Top achievements
Rank 1
gureumi asked on 17 Jan 2011, 04:28 PM
I have a [Add] button, clicking of which will call gridview.BeginInsert();
But with many pages, user has to go to the last page to enter  data for the new row to be inserted.

How can I do it from code-behind?

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Rossen Hristov
Telerik team
answered on 17 Jan 2011, 05:22 PM
Hi gureumi,

You can do it either like this:

this.radGridView.Items.MoveToLastPage();

...or...

this.radDataPager.MoveToLastPage();

I hope this helps. Let us know if there are problems.

Best wishes,
Ross
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
gureumi
Top achievements
Rank 1
answered on 17 Jan 2011, 05:38 PM
Thanks.

It works just fine!!
Tags
DataPager
Asked by
gureumi
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
gureumi
Top achievements
Rank 1
Share this question
or