set_enabled doesn't disable hrefs

6 posts, 0 answers
  1. Mike
    Mike avatar
    32 posts
    Member since:
    Mar 2012

    Posted 10 Apr 2013 Link to this post

    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. 
  2. Helen
    Admin
    Helen avatar
    1052 posts

    Posted 12 Apr 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mike
    Mike avatar
    32 posts
    Member since:
    Mar 2012

    Posted 12 Apr 2013 Link to this post

    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.
  5. Helen
    Admin
    Helen avatar
    1052 posts

    Posted 12 Apr 2013 Link to this post

    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.
  6. Mike
    Mike avatar
    32 posts
    Member since:
    Mar 2012

    Posted 12 Apr 2013 Link to this post

    Yes, that is the exact issue.
  7. Helen
    Admin
    Helen avatar
    1052 posts

    Posted 12 Apr 2013 Link to this post

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