This is a migrated thread and some comments may be shown as answers.

Radconfirm from RadMenu

1 Answer 85 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Brandon
Top achievements
Rank 1
Brandon asked on 15 May 2008, 06:26 PM
Hi.

I'm attempting to call a radconfirm window from a radmenuitem. Using the example found in help (Working with the Confirm Dialog) I get an error message...


Error: return not in function
Source File: javascript:radconfirm('Are you sure?', confirmCallBackFn); return false;
Line: 1, Column: 48
Source Code: radconfirm('Are you sure?', confirmCallBackFn); return false;


My radmenuitem looks like:
<telerik:RadMenuItem runat="server" Text="Deactivate" PostBack="false" 
    NavigateUrl="javascript:radconfirm('Are you sure?', confirmCallBackFn); return false;"
</telerik:RadMenuItem> 

Thanks in advance.
Brandon

1 Answer, 1 is accepted

Sort by
0
Brandon
Top achievements
Rank 1
answered on 15 May 2008, 06:53 PM
Solution: Put radconfirm in a javascript function, drop return false;. Solved. Silly me.
Tags
Menu
Asked by
Brandon
Top achievements
Rank 1
Answers by
Brandon
Top achievements
Rank 1
Share this question
or