Dynamic Menu Creation

2 posts, 0 answers
  1. prem
    prem avatar
    2 posts
    Member since:
    Mar 2008

    Posted 18 Apr 2008 Link to this post


    i want to create a dynamic menu from the database based on the user type.
    i need to know how to bind the menu from the dataset
    i tried this in the page load event, but it doesn't works..

    the select command is "SELECT ChildID,ParentID,Text,URL from Menu"
     protected void Page_Load(object sender, EventArgs e)
            DataSet ds;
            ObjDistributor = new Cls_Distributor();
            ds = ObjDistributor._load_Menu();

            RadMenu1.DataFieldID = ds.Tables[0].Columns[0].ColumnName.ToString();
            RadMenu1.DataFieldParentID = ds.Tables[0].Columns[1].ColumnName.ToString();
            RadMenu1.DataTextField = ds.Tables[0].Columns[2].ColumnName.ToString();

            RadMenu1.DataSource = ds.Tables[0];

    wat i'm declared wrong?

  2. Helen
    Helen avatar
    1052 posts

    Posted 21 Apr 2008 Link to this post

    Hello Prem,

    Please review our help topic on how to bind the Menu to a DataSet.

    Hope it is helpful.

    Sincerely yours,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top