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

[Solved] Delete confirmation works erratically

1 Answer 92 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Max Figueredo
Top achievements
Rank 1
Max Figueredo asked on 30 Jun 2009, 02:35 PM
Hello !

Just wondering if anyone has encountered this problem. I'm using a delete button column in a radGrid, this is the code for the column:
<telerik:GridButtonColumn ConfirmText="Delete this item?" ConfirmDialogType="RadWindow" 
                        ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete" 
                        UniqueName="DeleteColumn"
                        <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" /> 
</telerik:GridButtonColumn> 

And I also have a RadWindowManager on the page. The problem is that the delete confirmation shows up sometimes, and some other times it doesn't (it just proceeds to delete the row as soon as you click the delete button).

Any ideas would be greatly appreciated, thanks !!


1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 03 Jul 2009, 07:55 AM
Hello Max,

The markup you have posted seems fine and works fine after testing it. Probably the problem lies somewhere else. Please note that RadWindow in all of its forms (prompt, alert, confirm) provide non-blocking dialogs and windows, meaning client-code can be executing while the windows are shows. This might be one reason for your button to skip RadWindow modal dialogs some times, i.e. if you  postback from the client before the window is shown.

All the best,
Veli
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Max Figueredo
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or