Hello,
I have a template column which contains combobox with treeview inside, as described here. But, as it's all in grid TemplateColumn, I don't want those trees to load their content on initial page load, because this will make page too heavy. So I populate it from web service when user opens a dropdown box. Here is my javascript code:
So when service returns nodes, all nodes seem to be populated in tree, but tree won't resize and so with combobox. Attached is screenshot of what I see.
Is that possible to resize both controls to reveal their contents after loading nodes?
Thank you.
I have a template column which contains combobox with treeview inside, as described here. But, as it's all in grid TemplateColumn, I don't want those trees to load their content on initial page load, because this will make page too heavy. So I populate it from web service when user opens a dropdown box. Here is my javascript code:
var refCbTree; var refCb; function ReferenceComboBoxOpeningHandler(sender, args) { refCb = sender; refCbTree = $find(sender.get_attributes().getAttribute("treeID")); service.LoadReferenceRoot(sender.get_attributes().getAttribute("refID"), onRequestNodesSuccess); } function onRequestNodesSuccess(result) { if (!refCbTree) return; refCb.trackChanges(); refCbTree.trackChanges(); for (i = 0; i < result.length; i++) { var node = new Telerik.Web.UI.RadTreeNode(); node.set_text(result[i].Text); node.set_value(result[i].Value); refCbTree.get_nodes().add(node); } refCbTree.commitChanges(); refCb.commitChanges();}
So when service returns nodes, all nodes seem to be populated in tree, but tree won't resize and so with combobox. Attached is screenshot of what I see.
Is that possible to resize both controls to reveal their contents after loading nodes?
Thank you.