WebGrid 10 - WebMenu major performance issue

3 replies. Last post: January 11, 2017 6:05 AM by Yudi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Mike DearmanMember

WebGrid 10 - WebMenu when MenuWindowType = "Popup" in document with a lot of stylesheets causes major performance issue in WebMenuEngine.GetCssStyleString

Using WebGrid 10 with IE 11, I have code in the OnRowContextMenuclient side event handler that checks if the windows width is too small (grid within a narrow iframe (~ 350 pixels)), and if so, switches the context menu’s object to use a Popup instead so it can pop over the iframes boundaries:

oMenu.MenuWindowType = "Popup";
oMenu.MenuStyleSettings.MenuWindowType = "Popup";

 This approach has been working since 2010 but has created a new problem in WebGrid 10 I believe due to the changes with using the UseCssFramework in the WebGrid/WebMenu.

 My document has 12 stylesheets including bootstrap, jqueryUI, etc.  One stylesheet has 14723 rules in it.  When the context menu is about to be shown, IE/JavaScript spends a long time in the WebMenu component, in what appears to be the WebMenuEngine.GetCssStyleString trying to find the desired rules to customize the menu look.  I am using the Bootstrap ISNet theme too.

 When it freezes IE, IE gives a “<host> is not responding due to a long running script”.

 How can I resolve this?

 Thanks,

Mike

All times are GMT -5. The time now is 7:38 PM.
Previous Next