Disappering submenu

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
4/6/2007 3:02:47 AM
Gravatar
Total Posts 488

Disappering submenu

1. Set "jwh1" skin for the site.
2. Click on any menu item that contains submenu (for example, Admin) - submenu appears in the left.
3. Click on any submenu item (for exaple, Role Administration) - submenu is still there.
4. Click on anything that causes postback in the central pane (for example, try to edit role) - submenu disappears.

It would be nice if it does not disappear on any postback.
4/6/2007 10:07:21 AM
Gravatar
Total Posts 18439

Re: Disappering submenu

This is now fixed in svn.

Thanks,

Joe
4/6/2007 10:29:05 AM
Gravatar
Total Posts 488

Re: Disappering submenu

Joe, it still sometimes doesn't work.

The scenario I gave you first works well now. Here is the scenario that still doesn't:
1. Set "jwh1" skin for the site.
2. Click on Admin - submenu appears in the left.
3. Click on Add/Edit Pages - submenu is still there.
4. Click on any page and then on the "up" image - submenu disappears.
4/6/2007 11:12:03 AM
Gravatar
Total Posts 18439

Re: Disappering submenu

should be fixed better now in svn.

Thanks,

Joe
4/9/2007 7:08:12 AM
Gravatar
Total Posts 488

Re: Disappering submenu

Joe, that doesn't seem to be a solution.

Your first solution was to make the menu control use viewstate, and it worked for "Role Administration" as this control used viewstate.

Now the "Pages" control works. But the same problem still persists for any page that does not use viewstate (just remember, on CMS pages viewstate is disabled by default). I do not think that enabling viewstate for all the web site pages is a good solution.
4/9/2007 8:55:23 AM
Gravatar
Total Posts 18439

Re: Disappering submenu

Hi Alexander,

My first solution was to not disable viewstate for the menu and only to databaind if it is not postback. This solution seemed to solve it for the roles module.

Since the pages module still showed the symptom as you pointed out I found a better solution which makes the page menu re-populate correctly even on postback.

I've now removed the first solution by uncommenting the code that disables viewstate in the menu and removing the if(Page.IsPostBack)return; so that it will databind even on postback.

If that does not solve it for you please tell me steps to reproduce the problem using any of the modules included with mojoportal.

If the problem only happens in your custom modules try enabling viewstate and see if that fixes it. If it does fix it I do think that is a reasonable solution.

Disabling viewstate is a minor performance optimization, the default behavior from Microsoft is for it to be enabled.
My recommendation to custom module developers is to avoid postback if possible in the module control but if not possible then you may need to enable viewstate to get the expected behavior.

Best,

Joe
4/9/2007 9:40:30 AM
Gravatar
Total Posts 488

Thanks

May be, I somehow missunderstood what you have done.

The last solution works, thanks.
You must sign in to post in the forums. This thread is closed to new posts.