When does RadMenu need viewstate?

3 posts, 1 answers
  1. Ian
    Ian avatar
    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
  2. Answer
    Cori
    Cori avatar
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ian
    Ian avatar
    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
Back to Top