-
129
posts
Member since:
Jun 2009
Posted 01 Oct 2010
Link to this post
Hi, I have an application that uses a large RadMenu. The menu is created on each page by the Page_Load event of a user control. I've noticed that the ViewState on pages was getting very big and setting EnableViewState="false" on the Radmenu control has helped reduce this considerably.
The menu still appears to operate correctly after disabling its ViewState. I'm curious to know whether there are any scenarios where a RadMenu WOULD need its ViewState to be enabled. I couldn't find any documentation references on this subject.
Regards, Ian
-
-
Answer
Cori
562
posts
Member since:
Jul 2010
Posted 01 Oct 2010
Link to this post
Hello Ian,
Since you keep creating you RadMenu on the Page_Load event on every postback in your user control, disabling viewstate on the RadMenu doesn't affect the control. You would need it enabled when you're not constantly updating it on every postback.
I hope that helps.
-
-
129
posts
Member since:
Jun 2009
Posted 05 Oct 2010
Link to this post
Cori,
Hi. Yes, that makes sense. Thanks for the quick reply.
Regards, Ian
-