Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > TreeView > how to Cancel Event OnClientNodeClicked

Not answered how to Cancel Event OnClientNodeClicked

Feed from this thread
  • Wilson avatar

    Posted on Jan 27, 2012 (permalink)

    Hi

    I have to cancel the event if the condition is False, for example: I have a treeview with images, before opening the image is valid if the image is already displayed, if it is  already displayed have to cancel the event, not allowing it to spread

    how I do this

    thanks

    <telerik:RadTreeView ID="DocTreeView" runat="server" CssClass="cssTreeView" Height="100%"
    Width="285"  OnClientNodeClicked ="onclickTreeview" onNodeClick="DocTreeView_NodeClick">
     </telerik:RadTreeView>

    My Jquery Code
    function onclickTreeview(sender, args) {
         
           code........
            
            if (!AllowImageOpen) {
                alert('This image is now displayed');
                // cancel the event here
            }
        }
    }

    Reply

  • Posted on Jan 30, 2012 (permalink)

    Hello Wilson,

    You can attatching the onClientNodeClickeing Event  and cancel the event.  Here is the help documentation.
    OnClientNodeClicking.

    Thanks,
    Shinu.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > TreeView > how to Cancel Event OnClientNodeClicked
Related resources for "how to Cancel Event OnClientNodeClicked"

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