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

[Solved] PageSize and ASP.NET Skin

2 Answers 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
MD
Top achievements
Rank 1
MD asked on 22 Feb 2010, 09:07 PM
I'm having an issue using the PageSize property in the NeedDataSource event of the grid (for use with custom paging to only get the necessary records per page) when the PageSize is set in an ASP.NET skin.  The PageSize property always seems to be 10 (default value) in the NeedDataSource event even though I have it set as 15 in the skin declaration, but when the grid is rendered the pager shows "items XX to XX" with the increments being 15 so this really throws off the paging since it's only actually displaying 10 per page. 

2 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 25 Feb 2010, 11:59 AM
Hi MD,

I followed your scenario in the attached project, however the grid PageSize is either properly retrieved in the NeedDataSource event handler and the proper number of items are displayed on a page.
Can you try it out and let me know how it works on your side and what differs in your case?

Best wishes,
Iana
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.
0
MD
Top achievements
Rank 1
answered on 25 Feb 2010, 02:43 PM
It was my mistake.  I was setting the PageSize of the MasterTableView in the skin file and pulling the PageSize of the grid in the NeedDataSource event.

Thanks

Tags
Grid
Asked by
MD
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
MD
Top achievements
Rank 1
Share this question
or