I am trying to display a confirm dialog box on the button click and keep getting an erro 'Object expected' r on the following line.
radconfirm(text, callBackFunction, 500, 100, null, "Delete Record"
);
I am calling the function on the OnClientClicking
<telerik:RadButton ID="rbtDeleteSetting" runat="server" SkinId="skn_SavedSettings_Delete" EnableViewState="true" OnClientClicking="DeleteOnClientClicking" CommandArgument="Display"/>
Here is the complete function
function DeleteOnClientClicking(sender, args)
{
varcallBackFunction= Function.createDelegate(sender, function(argument)
{
if (argument)
{
this.click();
}
});
vartext = "Are you sure you want to delete these Saved Settings?<br\>This process CANNOT be un-done.<br\>";
radconfirm(text, callBackFunction, 500, 100, null, "Delete Settings");
args.set_cancel(true);
}
I copied the function from one of the demo's so I am not sure why it doesn't work.
Thank You
Tracy