Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > TreeView > Node text blurry/shadowed in disabled treeview

Not answered Node text blurry/shadowed in disabled treeview

Feed from this thread
  • Robert Koska avatar

    Posted on Feb 8, 2012 (permalink)

    I'm not sure if this is something in our CSS that's causing this or not...

    If I set my treeview to disabled, the nodes seem to be a gray color, but have a white shadow. I've attached a picture of what I'm seeing. it's easier to see the "shadow" on the selected node, but it is visible on the non selected nodes too. Any idea what's causing this?

    On a tangent, is there any way to prevent the user from selecting different nodes and collapsing nodes other than just totally disabling the entire treeview?
    Attached files

    Reply

  • Bozhidar Bozhidar admin's avatar

    Posted on Feb 9, 2012 (permalink)

    Hi Robert,

    With a normal RadTreeView without any styles added to it, this behavior doesn't occur. Perhaps you are using a skin, theme or templates in your treeview, which is the reason for this appearance.

    As for your second question, you can determine whether a user can select a node using the OnClientNodeClicking event. The handler function for this event receives two parameters: the TreeView and an EventArgs argument. If you set eventArgs.set_cancel(true), you basically cancel the click. Here's the full function:
    function clientNodeClicking(sender, args) {
        var node = args.get_node();
        if ("//some condition") {
            args.set_cancel(true);
        }
    }

    The same can be done for expanding and collapsing: you just use the OnClientNodeExpanding and OnClientNodeCollapsing functions. In both functions you again have args.set_cancel available to cancel the action.
     
    Kind regards,
    Bozhidar
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > TreeView > Node text blurry/shadowed in disabled treeview
Related resources for "Node text blurry/shadowed in disabled treeview"

ASP.NET TreeView Features  |   Documentation   |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]