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

When does RadMenu need viewstate?

2 Answers 85 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Ian
Top achievements
Rank 1
Ian asked on 01 Oct 2010, 04:25 PM
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

2 Answers, 1 is accepted

Sort by
0
Accepted
Cori
Top achievements
Rank 2
answered on 01 Oct 2010, 07:12 PM
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.
0
Ian
Top achievements
Rank 1
answered on 05 Oct 2010, 03:07 PM
Cori,
Hi. Yes, that makes sense. Thanks for the quick reply.
Regards, Ian
Tags
Menu
Asked by
Ian
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
Ian
Top achievements
Rank 1
Share this question
or