Is there a way to cancel the click on a menu item in the OnClientItemClicked event?
The documentation says you can by returning a false from the handler but I can seem to get it to work.
Here is a routine i wrote to cancel the postback if the user hits the cancel button on the confirm window
function RADItemClicked(sender, eventArgs)
{
var item = eventArgs.get_item();
if(item.get_text()=="Save Changes") {
if (!confirm("Save Changes?")) { return false }
}
}
Not sure what im doing wrong. Any advise would be appreciated.
TIA
The documentation says you can by returning a false from the handler but I can seem to get it to work.
Here is a routine i wrote to cancel the postback if the user hits the cancel button on the confirm window
function RADItemClicked(sender, eventArgs)
{
var item = eventArgs.get_item();
if(item.get_text()=="Save Changes") {
if (!confirm("Save Changes?")) { return false }
}
}
Not sure what im doing wrong. Any advise would be appreciated.
TIA