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

[Solved] RadAjaxManager window confirm problem

1 Answer 170 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Frank
Top achievements
Rank 2
Frank asked on 14 Aug 2009, 12:49 PM
Hello,

I hope this is the right place to put this post.

I have a problem with the RadAjaxManager together with an ordinary confirm dialog.
if I include the following code, that provides the page with AJAX, my DELETE button doesn't work.

  <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="medarbejderinput"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="mylabel" LoadingPanelID="LoadingPanel1" /> 
                    <telerik:AjaxUpdatedControl ControlID="medarbejderinput" LoadingPanelID="LoadingPanel1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 

Here the code, where the buttons are located:

            <div id="actionfooter" class="actionfooter" runat="server"
                <div> 
                    <asp:Button CssClass="buttons" ID="btnSave" runat="server" Text="Save Changes" /></div
                <div> 
                    <input class="buttons" id="Reset1" type="reset" value="Reset" /></div
                <div> 
                    <asp:Button CssClass="buttons" ID="btnDelete" OnClientClick="return confirm('Are you sure you want to delete this user?');" 
                        runat="server" Text="Delete User" /> 
                </div> 
            </div> 

When I click the DELETE button, the dialog shows up, but NOTHING happens when clicking the OK button.

I guess I have to create more 'UpdateControls' - I have tried a lot without any luck.

Any idéas??

Best regards,
Frank

1 Answer, 1 is accepted

Sort by
0
Frank
Top achievements
Rank 2
answered on 14 Aug 2009, 01:10 PM
I guess I have posted and looked the wrong place. :-)
I think this explains it:

http://www.telerik.com/community/forums/aspnet-ajax/ajax/onclientclick-confirm-delete.aspx

Problem solved.
Tags
Ajax
Asked by
Frank
Top achievements
Rank 2
Answers by
Frank
Top achievements
Rank 2
Share this question
or