GroupItemCount and ViewState

2 posts, 0 answers
  1. Nikita
    Nikita avatar
    5 posts
    Member since:
    Apr 2013

    Posted 03 Apr 2013 Link to this post

    I ran into a problem where i am using a RadListView and I set the GroupItemCount programmatically depending on the size of the dataset. It seems that the property isn't persisted across a post-back and is reset to default value after page is submitted. Is this behavior by design?

    Thank you.
  2. Andrey
    Andrey avatar
    836 posts

    Posted 08 Apr 2013 Link to this post


    As I stated in the support thread that you have opened, the problem comes from the fact that you are assigning one GroupItemCount in mark-up and then you are only changing it if the Page has not been postbacked. Additionally you are using simple databinding where you need to use NeedDataSource event.

    I suggest to continue the discussion in the support ticket.

    Kind regards,
    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