Hi,
below i wrote a code according to my condition with the Window.Confirm function.
this method is called on the RadButton clientcliked event.
I want to know how same thing can be done with RadConfirm method.
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) {
if (pending.innerHTML != "") {
if (window.confirm("You have pending filter changes. Apply them?")) {
button.set_commandName('Apply')
button.set_autoPostBack(true);
}
else {
button.set_commandName('Cancel')
button.set_autoPostBack(true);
}
}
else
CollapseToolsPane();
}
else {
CollapseToolsPane();
}
}
below i wrote a code according to my condition with the Window.Confirm function.
this method is called on the RadButton clientcliked event.
I want to know how same thing can be done with RadConfirm method.
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) {
if (pending.innerHTML != "") {
if (window.confirm("You have pending filter changes. Apply them?")) {
button.set_commandName('Apply')
button.set_autoPostBack(true);
}
else {
button.set_commandName('Cancel')
button.set_autoPostBack(true);
}
}
else
CollapseToolsPane();
}
else {
CollapseToolsPane();
}
}