TreeList PageSize bug

2 posts, 0 answers
  1. Ahmad
    Ahmad avatar
    3 posts
    Member since:
    Dec 2010

    Posted 06 Oct 2011 Link to this post

    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:


    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?
  2. Veli
    Veli avatar
    2002 posts

    Posted 10 Oct 2011 Link to this post

    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.

    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
  3. DevCraft R3 2016 release webinar banner
Back to Top