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
My Jquery Code
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
}
}
}