Hi,
In my application i have a Delete button with validation.I need to confirm the record before deleting.Here is my source code below:
If i click on delete button,validation not working and directly confirm dialog coming.
If i click OK on confirm dialog no action takes place(i.e,Record not deleting.).
How to solve above issues? Please help me...
Thanks in advance...
In my application i have a Delete button with validation.I need to confirm the record before deleting.Here is my source code below:
<
telerik:RadButton
ID
=
"btnUSDelete"
runat
=
"server"
Skin
=
"Sunset"
Text
=
"Delete"
ValidationGroup
=
"UserSettings"
onclick
=
"btnUSDelete_Click"
OnClientClicking
=
"OnClientClicking123"
>
</
telerik:RadButton
>
<
script
type
=
"text/javascript"
>
function OnClientClicking123(sender, args)
{
var callBackFunction = Function.createDelegate(sender, function(argument)
{
if (argument)
{
this.click();
}
});
var text = "Are you sure you want to delete this record?";
return confirm(text, callBackFunction, 300, 100, null, "Title");
args.set_cancel(true);
}
</
script
>
If i click on delete button,validation not working and directly confirm dialog coming.
If i click OK on confirm dialog no action takes place(i.e,Record not deleting.).
How to solve above issues? Please help me...
Thanks in advance...