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

[Solved] ConfirmDialogType

1 Answer 404 Views
Grid
This is a migrated thread and some comments may be shown as answers.
GD
Top achievements
Rank 1
GD asked on 14 Dec 2009, 11:02 PM

I have a GridButtonColumn, ConfirmDialogType is RadWindow but when I press delete button it show Classic Window

<telerik:GridButtonColumn ConfirmText="Sei sicuro di voler cancellare?"   
                          ConfirmDialogType="RadWindow" 
                          ConfirmTitle="Delete"   
                          ButtonType="ImageButton"   
                          CommandName="Delete"   
                          Text="Delete" 
                          UniqueName="DeleteColumn" 
                          Reorderable="false" 
                          Resizable="false"    
                          HeaderStyle-Width="25">  
</telerik:GridButtonColumn> 


where do I wrong?

Thanks

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 15 Dec 2009, 04:34 AM
Hello Claudio,

You have to place a RadWindowManager on the page so that the confirm window pops up as a RadWindow. Here's an example:
aspx:
<telerik:RadGrid ID="RadGrid1" DataSourceID="SqlDataSource1" runat="server">          
     <MasterTableView DataSourceID="SqlDataSource1"
          <Columns>                    
               <telerik:GridButtonColumn CommandName="Delete" ConfirmText="Are you sure to continue?" ConfirmDialogType="RadWindow" UniqueName="DeleteColumn">                    
               </telerik:GridButtonColumn>                       
          </Columns> 
     </MasterTableView> 
</telerik:RadGrid> 
             
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">/telerik:RadWindowManager> 

Thanks
Princy.
Tags
Grid
Asked by
GD
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or