Confirmation message when click rad button

4 posts, 2 answers
  1. Prassin
    Prassin avatar
    87 posts
    Member since:
    Jun 2012

    Posted 24 Sep 2012 Link to this post

    Hi All,

    I need to show confirmation before performing action when i click on RadButton. 

    please help.

    Regards,

    Prassin
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 24 Sep 2012 Link to this post

    Hi,

    Try the following code to show a confirm message in OnClientClicked event of RadButton.
    aspx:
    <telerik:RadButton AutoPostBack="false" ID="RadButton1" runat="server" Text="RadButton"  OnClientClicked="OnClientClicked">
    </telerik:RadButton>
    JS:
    <script type="text/javascript">
        function OnClientClicked(button, args) {
            window.radconfirm("Are you sure you want to submit the page?");
        }
    </script>
    Also check this demo.

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Prassin
    Prassin avatar
    87 posts
    Member since:
    Jun 2012

    Posted 24 Sep 2012 Link to this post

    Hi Shinu,

    Thanks for your replay. i have applied that code but its showing an error like "Microsoft JScript runtime error: Object doesn't support property or method 'radconfirm' "

    Please clarify the error.

    Regards,

    Prassin
  5. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 24 Sep 2012 Link to this post

    Hi,

    Please make sure that you have RadWindowManager on the page.
    aspx:
    <telerik:RadWindowManager ID=RadWindowManager1" runat="server"></telerik:RadWindowManager>

    Thanks,
    Shinu.
Back to Top