Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
WebMenu as Popup - submenu item width issue
posted

I have a WebMenu that I am using as a popup menu. The WebMenu is beings displayed when a user clicks on a specific cell in a WebGrid.

One of the top level menu items has a sub menu. The text that is displayed on each submenu item is dynamically set using the setText() javascript method.

The first time the popup menu is displayed, the width of the sub menu is set to display the text correctly. If however the text to be displayed changes, there are times when the text is cut off.

If I initially set the text on the sub menu to be "Yes" the width of the submenu item will be enought to display "Yes". The next time the popup menu is displayed, and the text on the sub menu item has changed, eg to "Task Completed", the width of the popop menu is still set to the width that was set to display "Yes" and because of this, the text "Task Completed" is not displayed correctly.All that is displayed is "Task Co". Similarly if the first time the submenu item is displayed, and the text is set to "Task Completed", the width is sufficient, but if the text is set to "Yes" then there is considerable amount of white space that is displayed.

Is there a way to ensure that the width of the popup submenu items will be enough to ensure that the text will always be displayed.

I am using Infragistics 2008 Vol2 on .net 2.