Hello,
how to put webtree in webcombo or something else that is a combobox that opensshowing a tree instead of a simple list in ASP NET
like this in Telerik
http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/treeviewcombobox/defaultcs.aspx
Thanks for your help.
I did it so.
I have td as label with selected value, show hide button and div with the tree.
I am not sure how to intelligently hide the div when one cliks outside the div.
document.onclick = doc_onclick;
function doc_onclick()
{
var evt = window.event;
if (evt.srcElement.id != "MyTreeCombo_tdLabel" &&
evt.srcElement.id != "MyTreeCombo_imgShowHide")
var divSHele = document.getElementById("MyTreeCombo_divDataContainer");
if (divSHele.style.visibility == "visible")
divSHele.style.visibility = "hidden";
}
function MyTreeCombo_tree_NodeCollapse(treeId, nodeId)
evt.cancelBubble = true;
function MyTreeCombo_tree_NodeExpand(treeId, nodeId)
It's also fairly easy to put a tree in a div and have a show/hide button. Absolutely position the div and grab the "dropdown button" images from the infragistics image directory...but i'm guessing the WebDropDown is basically that anyway.
I can send you a project with my code in it if you need it. I required the same functionality in a project that uses 2008 volume 1...
version 20091
I would like the same as here :
ASP.NET » Forums » NetAdvantage for ASP.NET » Grids » WebDropDown » WebDropDown and WebDataTree
What version of NetAdvantage are you working with? In our latest 2009 Volumne 1 release we introduced a new control called WebDropDown. It can be used as a multi-column combo box just like the webcombo along with the ability to handle more complex drop down scenarios using its templateable drop down area
So, in the WebDropDown control, you can place any HTML or ASP.NET controls allowing you to embed a tree or any other controls within its drop down area. Check out this video to learn how to make the drop down area templateable.
http://community.infragistics.com/aspnet/media/p/86763.aspx
Hope this helps.
Taz.