rad menu blank when populated from a object collection

1 posts, 0 answers
  1. vikas
    vikas avatar
    11 posts
    Member since:
    Dec 2008

    Posted 12 Feb 2009 Link to this post

    Requirements

    RadControls version

    Q3 2008        

    .NET version

    3.5

    Visual Studio version

    2008

    programming language

    vb.net

    browser support

    all browsers supported by RadControls


    PROJECT DESCRIPTION

    I have written a small code to test loding of menu from an object collection (Entity spaces)

    RadMenu1.DataFieldID =

    "MenID"

     

    RadMenu1.DataFieldParentID =

    "MenMenIDParent"

     

    RadMenu1.DataNavigateUrlField =

    "MenNavigateUrl"

     

    RadMenu1.DataTextField =

    "MenName"

     

     

    Dim sp As MenuCollection = New MenuCollection

     

    sp.GetMenuForUser(1)

    RadMenu1.DataSource = sp

    RadMenu1.DataBind()

    the code runs but the menu is blank. any suggestion???
    I checked my collection it is returning 16 entities/objects.

Back to Top