This is a migrated thread and some comments may be shown as answers.

Databinding to dropdowntree is not working

1 Answer 63 Views
DropDownTree
This is a migrated thread and some comments may be shown as answers.
Justin
Top achievements
Rank 1
Justin asked on 01 May 2013, 06:51 PM
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?

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 06 May 2013, 06:50 AM
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.
Tags
DropDownTree
Asked by
Justin
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or