Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
810 views
Hi All,

My question for client side code only using JavaScript.
I have a RadDropDownTree in my Form. In that DropDown I have some some data.
Suppose.
Central
    Middle Central
            Chicago
    Texoma
..
.
.
above mention is same data.

Now What I want is when User Select Chicago then Select text in client area of that dropdown should be anything like 'ABCD' or anything. I just want to set the
Selected text of that DropDownTree. I tried below mention code but is not working, In my RadDropDownTree, it still showing emptymessage.

var combo = $find("<%= RadDropDownLocations.ClientID %>");
combo._selectedText = "Davolio" + ";" + "Leverling";

Can someone guide me how can I set the text in DropDownTree
 Let me know in case of any more information

Vijay
David
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 20 Sep 2019
3 answers
290 views

I have a drop down tree in an asp.net web form with checkboxes.

I don't want to display child in the hierarchy if they are the same as the parent 

What is the best approach to this?

 

Vessy
Telerik team
 answered on 02 Sep 2019
11 answers
601 views

Hi,

 

Is there an example available of how to validate the raddropdowntree in combination with AutoPostback = true?

 

TIA, Marc

Rumen
Telerik team
 answered on 03 Jun 2019
3 answers
309 views

How can I disable RadDropDownTree node based on nodeid?

I want to disable the first and second node in the tree based on the database nodeid 1 and 2

Peter Milchev
Telerik team
 answered on 04 Mar 2019
0 answers
101 views

When i check nodes in a tree (by mouse) selected values appended in title. Which is good.

However, on server side node is getting checked, but title stays empty.

Here is my code:

  rddtRegion.DataSource = dtContractCounties
  rddtRegion.DataBind()

  For Each dr As DataRow In dtSelectedCounties.Rows
                Dim nodeValue As String = dr("CountyID")
                Dim node_region As RadTreeNode = rddtRegion.EmbeddedTree.FindNodeByValue(nodeValue)
                node_region.Checked = True
  Next

Please advice

David
Top achievements
Rank 1
Iron
Iron
Veteran
 asked on 01 Nov 2018
5 answers
163 views
I need to make my DropDownTree expand upwards in some cases.

RadComboBox seems to deal with this automatically - it changes directions when there isn't enough space. And it has an ExpandDirection property which can be manually set. Is there something I can do to achieve this in a DropDownTree?
Peter Milchev
Telerik team
 answered on 23 Oct 2018
0 answers
106 views

Does this control not support a node that has more than 1 parent? 

--Org
  --district one
    --sales
  --district two
    --sales

where sales object is child of both district one and district two.

Stacy
Top achievements
Rank 1
 asked on 26 Sep 2018
1 answer
126 views
Hi, i have requirement to add Raddropdowntree programmatically to form. Also i am using Load on Demand approach to load data to raddropdowntree because i have more that 40,000 rows of data from sql server. 

but i have a problem here if i hardcode raddropdowntree control in aspx page then load on demand works fine (i have copied that code from user 'Boyan Dimitrov' from telerik forum).

If i am creating raddropdown programmatically in .cs file (see the below code) then that code gives a error 'There was an error in the callback' when i try to expand any parent node.



RadDropDownTree datatreeview = new RadDropDownTree();
datatreeview.ID = raddptreename;
datatreeview.Attributes["CssClass"] = "radwidth";
datatreeview.Attributes["runat"] = "server";
datatreeview.Attributes["OnLoad"] = "RadDropDownTree1_Load";
datatreeview.EmbeddedTree.NodeExpand += embeddedTree_NodeExpand;
form1.Controls.Add(datatreeview);
loadtreeview(RadDropDownTree1, TreeNodeExpandMode.ServerSideCallBack);


Please guide me in fixing this problem.
 

Tsvetomir
Telerik team
 answered on 09 Aug 2018
15 answers
591 views
Hi,
I want to Populate Parent Nodes from the Database in RadDropDownTree When Page being Load..
When you Expand i want to Populate Child Nodes from the Database..
How can i do this?
I went through this example but could not achieve(i am using Database not the Webservice)
http://demos.telerik.com/aspnet-ajax/dropdowntree/examples/populatingwithdata/webserviceandclienttemplates/defaultcs.aspx 

Thanks In advance
Tsvetomir
Telerik team
 answered on 09 Aug 2018
1 answer
191 views

Hi,

I have rad drop down tree as below. When I click on one node in the drop down tree I am able to see the parent node getting expanded by using below client side script and if i click on other node the script executes and node gets expanded. Is there a way I can collapse all other nodes except the current clicked node?

 

<telerik:RadDropDownTree RenderMode="Lightweight" ID="OfficeDropDownPrgFilter" runat="server" Width="500px"
                   ExpandNodeOnSingleClick="true"  AutoPostBack="true" OnClientEntryAdded="OnClientEntryAdded1" 
                    EnableFiltering="true" OnEntryAdded="OfficeDropDownPrgFilter_EntryAdded"> 
                    <DropDownSettings OpenDropDownOnLoad="true"  />
                    <FilterSettings Highlight="Matches" Filter="Contains" EmptyMessage="Type here to filter" />
                </telerik:RadDropDownTree> 

 

function OnClientEntryAdded1(sender, args) {
var path = args.get_entry()._fullPath;
var item = sender.get_embeddedTree().findNodeByText(args.get_entry().get_text());
var node = item.get_parent();
node.expand();
}

 

 

 

Pradeep
Top achievements
Rank 1
 answered on 03 Apr 2018
Narrow your results
Selected tags
Tags
+123 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?