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

GroupItemCount and ViewState

1 Answer 63 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Nikita
Top achievements
Rank 1
Iron
Nikita asked on 03 Apr 2013, 04:00 PM
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.

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 08 Apr 2013, 10:15 AM
Hello,

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,
Andrey
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
ListView
Asked by
Nikita
Top achievements
Rank 1
Iron
Answers by
Andrey
Telerik team
Share this question
or