Vertical Sliding Menu

2 posts, 0 answers
  1. asif rehman
    asif rehman avatar
    6 posts
    Member since:
    Jul 2014

    Posted 27 Jul 2014 Link to this post

    Hello experts i want to create a dynamic menu  from the database just like the one in the following link

    my table structure is

    screen_id , screen_name, parent_id, link

    my problem is that i am not been able to place a sub menu under its parent menu at  e.g. menu id 2 and 3 under menu id 1.In i used to use this line Menu1.FindItem(dr["ParentID"].ToString()).ChildItems.Add(mnu); but in Telerik i am not been able to use any of the function "FindItemByValue", "FindItem", "FindItemByText".

    if any one can help?
  2. Boyan Dimitrov
    Boyan Dimitrov avatar
    1728 posts

    Posted 30 Jul 2014 Link to this post


    An easy and convenient way to create a RadMenu dynamically from the code behind is demonstrated here.

    On the other hand you can create a RadMenu item "Home" and set the item's value to the screen_id value which in this case is "1". Then If you want to add the RadMenu item "MyTasks" as a child item for "Home" you can call the RadMenu method FindItemByValue and pass the MyTasks item parent_id value. Once you have accessed the "Home" RadMenu item you can use Items.Add method.

    Boyan Dimitrov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. Telerik UI for ASP.NET Core is out
Back to Top