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

OnNodeDataBound

3 Answers 118 Views
DropDownTree
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 25 Apr 2013, 10:12 AM
Hi Peter,

One more for you to add to the list.  In the RadCombo there is a OnItemDataBound parameter.  Please add a OnNodeDataBound parameter to the DropDownTree control.

I'm going to be using these in a formview and as such the control isn't setup prior to runtime so for now I'm having to use AddHandler in the formview data bound event.

Many Thanks,

Jon

3 Answers, 1 is accepted

Sort by
0
Jon
Top achievements
Rank 1
answered on 25 Apr 2013, 10:26 AM
hmm spoke to soon.  If I use the AddHandler on a normal page it works but in the formview no luck.

Formview page has this in the page load:
Dim uxBuildingID As RadDropDownTree = DirectCast(uxFormView.FindControl("uxBuildingID"), RadDropDownTree)
AddHandler uxBuildingID.NodeDataBound, AddressOf RadDropDownTree_NodeDataBound

and then this is the referenced function
Private Sub RadDropDownTree_NodeDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.DropDownTreeNodeDataBoundEventArguments)
 ' Do something
End Sub

The event never gets called - but as mentioned this works when the control is not in a formview....  Any thoughts?

Regards

Jon



0
Peter Filipov
Telerik team
answered on 30 Apr 2013, 07:19 AM
Hi Jon,

I am not quite sure how to reproduce the described issue. Could you please send me a runnable sample project that reproduces the problem?

Kind regards,
Peter Filipov
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.
0
Jon
Top achievements
Rank 1
answered on 30 Apr 2013, 07:22 AM
Hi Peter,

Sorry should have posted that this is OK now.  Not sure what happened but I was unable to see the event property in the aspx.  

It suddenly started working so I think maybe Visual Studio was having an issue.

Regards

Jon
Tags
DropDownTree
Asked by
Jon
Top achievements
Rank 1
Answers by
Jon
Top achievements
Rank 1
Peter Filipov
Telerik team
Share this question
or