Hi,
I have a RadCombobox containing a RadTreeView ItemTemplate. Everything works fine when I use it in a web page. However, when I move it to a user control, I wasn't able to access to the TreeView client object anymore. Here is how I try to get checked tree nodes displayed in RadCombox's text:
The error message I got was "'null' is null or not an object." Please help. Thanks,
Peichung
I have a RadCombobox containing a RadTreeView ItemTemplate. Everything works fine when I use it in a web page. However, when I move it to a user control, I wasn't able to access to the TreeView client object anymore. Here is how I try to get checked tree nodes displayed in RadCombox's text:
| function OnDropDownClosed(sender, eventArgs) |
| { |
| var treeView = $find('<%# RadComboBox1.Items[0].FindControl("RadTreeView1").ClientID %>'); |
| var nodes = treeView.get_checkedNodes(); |
| var str = ''; |
| for (var i=0; i<nodes.length;i++) |
| { |
| str += ', ' + nodes[i].get_text(); |
| } |
| sender.set_text(str); |
| } |
The error message I got was "'null' is null or not an object." Please help. Thanks,
Peichung