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

Chrome is not supporting displaying all selected nodes

5 Answers 51 Views
DropDownTree
This is a migrated thread and some comments may be shown as answers.
Lokesh
Top achievements
Rank 1
Lokesh asked on 28 Nov 2013, 12:16 PM
I am using RadTreeDropdown on a page to display hierarchical data with checkboxes with Multiple nodes selection. When I checked a parent node (let us Node1) and it has two other child nodes (Node2,Node3), then it automatically selects the child nodes, but in the dropdown text it is just showing the parent node text and not showing child node text in Chrome. It is just showing ;;;;; in place of node text.

It is working fine with other browsers.I am using Chrome latest version i.e. Version 31.0.1650.57 m.

Please help. Thanks in advance.

5 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 29 Nov 2013, 04:26 AM
Hi Lokesh,

Unfortunately I couldn't replicate the issue at my end. Please have a look into the following sample code which works fine at my end.

ASPX:
<telerik:RadDropDownTree ID="RadDropDownTree1" runat="server" DataSourceID="SqlDataSource2"
    DataFieldID="id" DataFieldParentID="parentid" DataTextField="text" CheckBoxes="CheckChildNodes">
</telerik:RadDropDownTree>
<telerik:RadButton ID="RadButton1" runat="server" Text="GetCheckedItems" OnClick="RadButton1_Click">
</telerik:RadButton>

C#:
protected void RadButton1_Click(object sender, EventArgs e)
{
    // accessing the selected text of raddropdowntree
    string text = RadDropDownTree1.SelectedText;
}

Thanks,
Princy.

0
Lokesh
Top achievements
Rank 1
answered on 02 Dec 2013, 02:34 PM
Try the same with Checkbox="Tristate" option. You will see the issue on Chrome.

Thanks
0
Princy
Top achievements
Rank 2
answered on 03 Dec 2013, 09:06 AM
Hi Lokesh,

Unfortunately I couldn't replicate the issue with the "Tristate" option also. Please provide your code for further help and please mention your telerik version also.

Thanks,
Princy.
0
Lokesh
Top achievements
Rank 1
answered on 03 Dec 2013, 11:31 AM

I think it is happening when I am adding this script on OnClientEntryAdding client event. I am using this

function OnCustomerClientEntryAdding(sender, args) {

var tree = $get("<%=_customerOfficeRadDropDownTree.ClientID %>");

var emtree = tree.control.get_embeddedTree();

//Expand the Child Node

var node1 = emtree.findNodeByText(args.get_entry().get_text());

if (node1.get_nodes() != null) {

        node1.expand();

    }

}

 

Can you help fixing this one. Thanks

0
Boyan Dimitrov
Telerik team
answered on 05 Dec 2013, 12:49 PM
Hello,

Please use this workaround in order to avoid this behavior:

//JavaScript
function OnCustomerClientEntryAdded(sender, args) {
    var tree = sender.get_embeddedTree();
    //Expand the Child Node
    var node1 = tree.findNodeByText(args.get_entry().get_text());
 
    if (node1.get_nodes().get_count() > 0) {
 
        window.setTimeout(function () {
            node1.expand();
        }, 200);
    }
}



Regards,
Boyan Dimitrov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
DropDownTree
Asked by
Lokesh
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Lokesh
Top achievements
Rank 1
Boyan Dimitrov
Telerik team
Share this question
or