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
320
How to change menuitems order...
posted

Hi..

I have used ultrawebmenu to display context menu items...

In context menu, i created as below..

<ignav:UltraWebMenu ID="UltraWebMenu1" SkinID="CCEMainPopup" EnableViewState="false" runat="server">
       <Items>
        <ignav:Item HoverImageUrl="" Text="Hide">
        </ignav:Item>
       </Items>
       <Items>
        <ignav:Item HoverImageUrl="" Text="Visualize">
        </ignav:Item>
       </Items>
       <MenuClientSideEvents InitializeMenu="" ItemChecked="" ItemClick="UltraWebMenu1_ItemClick"
           ItemHover="" SubMenuDisplay="" />
   </ignav:UltraWebMenu>

 

I want to arrange menu based on some condition.. For instance:- Visualize menu to be displayed above hide....

Please give me a solution, thanks in advance...

 

  • 4493
    posted

    Hello,

    The Items is a Collection. The Menu Items are displayed in the order they have within the Items collection. This is the order of declaring Items in the markup, or adding them to the Items collection in the code-behind. You can either change the declaration on the markup, or rearrange the Items collection of the UltraWebMenu in the code-behind.
    For more information on Client- and Server-side members and APIs of the UltraWebMenu, please visit our online documentation at:
    https://es.infragistics.com/support

    Hope this helps!