Intersoft Support Center

Configure MenuHeader's Content Mode From Server-side

WebSlidingMenu allows user to customize header content mode from server-side.

This topic will show you how to perform the above scenario.

To customize WebSlidingMenuItem header content mode from server-side

  1. Drag WebSlidingMenu control from toolbox.
  2. Place the following code in server-side:
    C# Copy Code
    WebSlidingMenuLevel lvl = new WebSlidingMenuLevel();
    lvl.Name = "Lvl1";
    lvl.HeaderContentMode = WebSlidingMenuHeaderContentMode.Text;
    lvl.HeaderText = "Level1";
    lvl.Level = 0;
    
    WebSlidingMenu1.Levels.Add(lvl);
    

  3. Run the project.
Previous Next