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

TreeList PageSize bug

1 Answer 40 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Ahmad
Top achievements
Rank 1
Ahmad asked on 06 Oct 2011, 03:07 PM
I think I've found a bug with the PageSize property in the TreeList control.  I'm setting the PageSize property in the HTML markup using a static property in code behind called "GlobalPageSize" like this:

PageSize='<%# GlobalPageSize %>'

GlobalPageSize is a property in my code that reads a value from a cookie.  If no cookie is found, it returns a default value of 15.  When I set the PageSize property like this, the paging doesn't work.  For example, if I try to go to page 2, it will refresh and still be on page 1.  If I try and change the page size using the dropdown, it refreshes and it still has the original value selected.

If I set the PageSize property to a hard coded value like this:

PageSize='15'

the paging works.  It also works if I set the PageSize property in PageLoad event in code behind.  So, after all my testing, it looks like the bug has to do with setting the PageSize property in markup using a value retrieved from code.  Any thoughts?

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 10 Oct 2011, 04:32 PM
Hi Ahmad,

Thanks for the notification. We can reproduce this issue locally and have logged it for fixing. As a token of gratitude for your contribution, I have updated your Telerik points with additional 500.

Please excuse for the caused incovenience. For now, you will have to set the PageSize from the code-behind instead of using a binding expression in the markup.

Greetings,
Veli
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
TreeList
Asked by
Ahmad
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or