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

GridButtonColumn with ConfirmDialogType="RadWindow" shows other RadWindows

1 Answer 254 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dédé
Top achievements
Rank 1
Dédé asked on 04 Jun 2009, 11:16 AM
Hi,

Using 2009 Q1...

I have a RadWindowManager containing a RadWindow :
    <telerik:RadWindowManager ID="windowManager" runat="server"
        <Windows> 
            <telerik:RadWindow ID="winNewUser" runat="server" KeepInScreenBounds="true" Modal="true" Behaviors="Move,Close,Resize" ReloadOnShow="true" AutoSize="true" /> 
        </Windows> 
    </telerik:RadWindowManager> 
 

I have a RadGrid with a column defined like this :
<telerik:GridButtonColumn UniqueName="colBtnDelete" CommandName="Delete" ConfirmDialogType="RadWindow" ConfirmText="Confirm delete ?" ConfirmTitle="Delete" Text="Delete" ButtonType="PushButton" Groupable="false" /> 
 

When I click on the button, my window "winNewUser" is shown on top of the confirm dialog... Is this a normal behavior ?

And is it possible to let the button be visible according to a data condition ? (like a boolean field)

Thanks.


1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 09 Jun 2009, 03:15 PM

Hello Damien,

You do not need to add a separate window instance to the RadWindowManager's Window collection as thus there will be actually two window controls which may overlap. See how the confirmation dialog is configured on this demo of the product:

http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultcs.aspx

or, alternatively, consider using RadWindow confirm in template columns as illustrated here:

http://www.telerik.com/support/kb/aspnet-ajax/grid/replacing-the-default-confirm-dialog-for-radgrid-with-radwindow-confirm.aspx

How to display the buttons in the column conditionally based on a boolean field value you can find out from this documentation article.

Best regards,

Sebastian
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
Dédé
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or