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

[Solved] grid.CurrentPageIndex no longer works after upgrade

1 Answer 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 12 May 2008, 08:06 PM

Using the ASP.NET grid, I had a page that persisted client-side selection, using this example:

http://www.telerik.com/community/code-library/submission/b311D-khchg.aspx

After upgrading to the AJAX control, this page now errors, due to Javascript choking on:

function

GridCreated(){
grid =
this;
var pageIndex = grid.CurrentPageIndex.toString();

...specifically, "grid.currentPageIndex is null or not an object".

Suggestions?

Bill

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 14 May 2008, 12:44 PM
Hi Bill,

Please, keep in mind that you will need need to take advantage of the new client Api for the control, as shown in the following article:

http://www.telerik.com/help/aspnet-ajax/grdgettingfamiliarwithclientapi.html

I hope this helps.

Greetings,
Yavor
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Matt
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or