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

set_enabled doesn't disable hrefs

5 Answers 85 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 10 Apr 2013, 01:16 PM
I'm not sure what the actual behavior is supposed to be, but what I expected when I do set_enabled(false), nothing on the tree should work. What happens is the div containing the UL gets set as disabled. 

Overall this is a minor issue to me as I have a work around. 

5 Answers, 1 is accepted

Sort by
0
Helen
Telerik team
answered on 12 Apr 2013, 08:54 AM
Hi Mike,

I checked the following code with the latest version and it works as expected - disabled node doesn't navigate:

<asp:ScriptManager ID="sm1" runat="server"></asp:ScriptManager>
<telerik:RadTreeView runat="server" ID="RadTreeView1">
    <Nodes>
        <telerik:RadTreeNode Text="PressEnter to Navigate!" NavigateUrl="http://www.google.com/">
            <Nodes>
                <telerik:RadTreeNode Text="Child Shows up!" />
            </Nodes>
        </telerik:RadTreeNode>
    </Nodes>
</telerik:RadTreeView>
 
<script type="text/javascript">
    function pageLoad() {
        var tree = $find("<%=RadTreeView1.ClientID %>");
        tree.get_nodes().getNode(0).set_enabled(false);
    }
</script>

What version of Telerik.Web.UI.dll and what browser do you use?

All the best,
Helen
the Telerik team
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 their blog feed now.
0
Mike
Top achievements
Rank 1
answered on 12 Apr 2013, 10:08 AM
I'm calling set_enabled on the tree object not on the nodes.

my dll version is 2012.3.1016.40 

I will update to the latest when the style issue is solved with the anchor tags on the treeview.
0
Helen
Telerik team
answered on 12 Apr 2013, 11:27 AM
Hi Mike,

We identified a problem in IE8 when the tree is disabled. Link are still functional.
I logged it for fixing.
Is it the exact problem that you experience?

Greetings,
Helen
the Telerik team
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 their blog feed now.
0
Mike
Top achievements
Rank 1
answered on 12 Apr 2013, 11:28 AM
Yes, that is the exact issue.
0
Helen
Telerik team
answered on 12 Apr 2013, 12:04 PM
Hi Mike,

We will try to fix it for the official release - expected in the middle of June.
I updated your points for the bug report.

Regards,
Helen
the Telerik team
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 their blog feed now.
Tags
TreeView
Asked by
Mike
Top achievements
Rank 1
Answers by
Helen
Telerik team
Mike
Top achievements
Rank 1
Share this question
or