Databinding to dropdowntree is not working

2 posts, 0 answers
  1. Justin
    Justin avatar
    8 posts
    Member since:
    Jul 2008

    Posted 01 May 2013 Link to this post

    Here's my code:

    Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
                If Not IsPostBack Then
                    Load_ddlGroupName()
                End If
            End Sub
     
    Private Sub Load_ddlGroupName()
                ddlGroupName.DataTextField = "FinanceNumberName"
                ddlGroupName.DataValueField = "FinanceNumberName"
                ddlGroupName.DataFieldParentID = "VP"
                ddlGroupName.DataFieldID = "FinanceNumberName"
                ddlGroupName.DataSource = (From d In DbContext.FPRDropDownLists Select d).ToList() 'verified datasource is populated.
                ddlGroupName.DataBind()
            End Sub


    What am I missing?

  2. Plamen
    Admin
    Plamen avatar
    2729 posts

    Posted 06 May 2013 Link to this post

    Hello,

     
    You can refer to this help topic where is explained how to achieve similar functionality.

    Hope this will be helpful.

    Greetings,
    Plamen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top