function
rbReturnToData_Confim(arg) {
var
button = document.getElementById(
"<%= RadBtn1.ClientID %>"
);
if
(arg) {
button.set_commandName(
'Apply'
)
button.set_autoPostBack(
true
);
}
else
{
button.set_commandName(
'Cancel'
)
button.set_autoPostBack(
true
);
}
}
//This method is fired on the ClientClicked event of the Rad Button object. after that server side code is fired
function
rbReturnToData_Clicked(button, args) {
debugger;
var
pending = document.getElementById(
"<%= lblChangesPending.ClientID %>"
);
var
lblTitleFilter = document.getElementById(
"<%= lblTitleFilter.ClientID %>"
);
var
rfGridFilter = document.getElementById(
"<%= rfGridFilter.ClientID %>"
);
if
(pending !=
null
&& pending.innerHTML !=
""
) {
radconfirm(
"You have pending filter changes. Apply them?"
, rbReturnToData_Confim);
}
else
{
CollapseToolsPane();
}
}
Protected void Click(Object Sender,EventArgs e)
{
//Server side code is fired successfully
}
Problem is that code is fired successfully when OK and cancel button is clicked
on the rad confirm window.
Note- My page is ajexified , full post back is not done because radajaxmanager, radloadingpanel are on the page.
problem is that after serverside code radconfirm box is not closed.