OnNodeDataBound

4 posts, 0 answers
  1. Jon
    Jon avatar
    813 posts
    Member since:
    Oct 2008

    Posted 25 Apr 2013 Link to this post

    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
  2. Jon
    Jon avatar
    813 posts
    Member since:
    Oct 2008

    Posted 25 Apr 2013 Link to this post

    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



  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 30 Apr 2013 Link to this post

    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.
  5. Jon
    Jon avatar
    813 posts
    Member since:
    Oct 2008

    Posted 30 Apr 2013 Link to this post

    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
Back to Top