Chrome is not supporting displaying all selected nodes

6 posts, 0 answers
  1. Lokesh
    Lokesh avatar
    7 posts
    Member since:
    Jan 2012

    Posted 28 Nov 2013 Link to this post

    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.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 28 Nov 2013 Link to this post

    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Lokesh
    Lokesh avatar
    7 posts
    Member since:
    Jan 2012

    Posted 02 Dec 2013 Link to this post

    Try the same with Checkbox="Tristate" option. You will see the issue on Chrome.

    Thanks
  5. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 03 Dec 2013 Link to this post

    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.
  6. Lokesh
    Lokesh avatar
    7 posts
    Member since:
    Jan 2012

    Posted 03 Dec 2013 Link to this post

    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

  7. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 05 Dec 2013 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017