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

RadListBoxItem Controls

1 Answer 73 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Monika Lather
Top achievements
Rank 1
Monika Lather asked on 08 Mar 2010, 02:06 AM
Hi,
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.
 
Thanks,
Monika

1 Answer, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 11 Mar 2010, 12:08 PM
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.
Tags
ListBox
Asked by
Monika Lather
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Share this question
or