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

OnNeedDataSource not fired on page index change

1 Answer 72 Views
Grid
This is a migrated thread and some comments may be shown as answers.
kiwo
Top achievements
Rank 1
kiwo asked on 14 May 2009, 06:50 PM
Hi.

I'm having a problem with making a grid paging work. I have a page with tree on the left + grid on the right. I use the tree selection to setup the data source for grid, and bind it programmatically. Then, when user wants to see the next page of the grid, I expect the grid to fire OnNeedDataSource event to ask for new data.

The problem is the event is not fired. It IS fired when I change the page size, but IS NOT fired when I click "next page" button - and the grid becomes empty. Seems weird to me, and I'm stuck... Can you think of any things to be checked? What's the difference between page size and page index changes?

Many thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 15 May 2009, 06:54 AM
Hello Kiwo,

Check if you are using the DataBind() method to bind your grid? If so, you should be using the AdvancedDataBinding techniques so that paging functions properly. if this does not help, try pasting your code here.

Thanks
Princy.
Tags
Grid
Asked by
kiwo
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or