RadListBoxItem Controls

2 posts, 0 answers
  1. Monika Lather
    Monika Lather avatar
    8 posts
    Member since:
    Jan 2010

    Posted 07 Mar 2010 Link to this post

    I am adding treeview to a listboxItem. I create a treeview and add nodes dynamically. It works fine but when I want to transfer the nodes to another listbox, i can't find the treeview in the listboxItem.controls collection.
    How can I find the treeview in OnTransferring event.
  2. Veronica
    Veronica avatar
    1213 posts

    Posted 11 Mar 2010 Link to this post

    Hi Monika Lather,

    Let us suppose that you've added the RadTreeView as a first item of the RadListBox. To be able to find it
    use the findControl function to access the TreeView in the OnClientTransferring event:

    var tree = sender.get_items().getItem(0).findControl("RadTreeView1");

    Here sender is the RadListBox.

    Please let me know if this was helpful.

    Kind regards,
    Veronica Milcheva
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top