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

How to change the title of the Delete popup window

4 Answers 82 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Herman Gouw
Top achievements
Rank 2
Herman Gouw asked on 06 Jul 2010, 02:47 PM
Hi,

In my current project, on one of the web page I have a RadGrid with Add/Insert, Edit, Delete.

The web page is similar to as follows http://www.gouw.ws/RadGrid.aspx

When the Delete link on the RadGrid's row is clicked, a popup is displayed as follows http://www.gouw.ws/RadGridDelete.jpg

The title of the popup is "Message from webpage" instead of "Delete" as assigned to the ConfirmTitle on the ASPX.

Can you please tell me why this is so? How can I change the popup title to "Delete"?

The code of the web page is as follows:
ASPX
<form id="form1" runat="server"
<div> 
    <telerik:RadScriptManager ID="radScriptManager" runat="server" /> 
    <telerik:RadGrid ID="radGrid" AutoGenerateColumns="false" AllowSorting="true" OnNeedDataSource="radGrid_NeedDataSource" runat="server"
        <ClientSettings> 
            <Scrolling UseStaticHeaders="true" /> 
        </ClientSettings>  
        <MasterTableView AllowMultiColumnSorting="true" CommandItemDisplay="Top" CommandItemSettings-AddNewRecordText="Add new founder" CommandItemSettings-ShowRefreshButton="false" EditMode="InPlace" TableLayout="Fixed"
            <Columns> 
                <telerik:GridBoundColumn DataField="Name" DataType="System.String" HeaderText="Name" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" SortExpression="Name" AllowSorting="true" UniqueName="Name" /> 
                <telerik:GridBoundColumn DataField="Founder" DataType="System.String" HeaderText="Founder" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" SortExpression="Founder" AllowSorting="true" UniqueName="Founder" /> 
                <telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderStyle-Width="5%" UniqueName="Edit" /> 
                <telerik:GridButtonColumn ButtonType="ImageButton" ConfirmDialogType="RadWindow" HeaderStyle-Width="5%" ConfirmText="Delete this founder?" ConfirmTitle="Delete" CommandName="Delete" /> 
            </Columns> 
        </MasterTableView> 
    </telerik:RadGrid>   
</div> 
</form> 

Regards,
Herman

4 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 06 Jul 2010, 04:02 PM
Hello Herman,

Custom delete popup titles are supported when you use RadWindow for the popup. Otherwise the title cannot be modified, as it is browser-defined.

Here is a demo:

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

Regards,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Herman Gouw
Top achievements
Rank 2
answered on 07 Jul 2010, 12:36 AM
Hi,

The code I wrote was based on the demo that you showed me.

The Delete popup window was given as
<telerik:GridButtonColumn ButtonType="ImageButton" ConfirmDialogType="RadWindow" HeaderStyle-Width="5%" ConfirmText="Delete this founder?" ConfirmTitle="Delete" CommandName="Delete" /> 
in the ASPX file.

The popup window's ConfirmDialogType is set "RadWindow".
The popup window's ConfirmTitle is set to "Delete".
However, The title of the popup window is "Message from webpage" instead of "Delete".

Can someone please help?

Thanks,
Herman

0
Accepted
Princy
Top achievements
Rank 1
answered on 07 Jul 2010, 05:33 AM
Hello Herman,

Have you added RadWindowManager on page?


Thanks,
Princy.
0
Herman Gouw
Top achievements
Rank 2
answered on 07 Jul 2010, 06:07 AM
I just did and it works. Thanks Princy.

Regards,
Herman
Tags
Grid
Asked by
Herman Gouw
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Herman Gouw
Top achievements
Rank 2
Princy
Top achievements
Rank 1
Share this question
or