Greetings,
I have a RadToolbar with 6 buttons within itself, with 3 being Clientside and 3 Serverside. The 3 Serverside work fantastic, and 1 clientside works well enough due that it don't matter if I postback or not. The other two however open a RadWindow, so I need to stop the postback if possible. I've set the return value for the click to be false, but I still get a postback. I'm unsuer what to do with the toolbar anymore, so I thought I'd ask for suggestions. Here is the code for the three buttons.
VR is the button I was commenting that it doesn't matter if it posts back or not since it opens another window also, but it's not a RadWindow, just a normal popup window. Anyways, I'd much appreciate any help I could receive. Thank you.
~ Chad
I have a RadToolbar with 6 buttons within itself, with 3 being Clientside and 3 Serverside. The 3 Serverside work fantastic, and 1 clientside works well enough due that it don't matter if I postback or not. The other two however open a RadWindow, so I need to stop the postback if possible. I've set the return value for the click to be false, but I still get a postback. I'm unsuer what to do with the toolbar anymore, so I thought I'd ask for suggestions. Here is the code for the three buttons.
function onClientButtonClick1(sender, args) |
{ |
var btn = args.get_item(); |
if (btn.get_commandName() == "VR") { |
var shell = $("[id~='hfRequestUserID']"); |
var control = shell.get(0); |
doViewResume(control.value); |
return false; |
} |
if (btn.get_commandName() == "V") { |
var shell = $("[id~='hfRequestUserID']"); |
var control = shell.get(0); |
var oWnd = window.radopen("ViewReason.aspx?userID=" + control.value + "&mode=view", ""); |
oWnd.center(); |
return false; |
} |
if (btn.get_commandName() == "DM") { |
var shell = $("[id~='hfRequestUserID']"); |
var control = shell.get(0); |
var oWnd = window.radopen("ViewReason.aspx?userID=" + control.value + "&mode=deny", ""); |
oWnd.center(); |
return false; |
} |
} |
VR is the button I was commenting that it doesn't matter if it posts back or not since it opens another window also, but it's not a RadWindow, just a normal popup window. Anyways, I'd much appreciate any help I could receive. Thank you.
~ Chad