Radconfirm from RadMenu

2 posts, 0 answers
  1. Brandon
    Brandon avatar
    19 posts
    Member since:
    Apr 2008

    Posted 15 May 2008 Link to this post

    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

  2. Brandon
    Brandon avatar
    19 posts
    Member since:
    Apr 2008

    Posted 15 May 2008 Link to this post

    Solution: Put radconfirm in a javascript function, drop return false;. Solved. Silly me.
Back to Top