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

RadGrid on a page with multiple RadWindowManager opens wrong ConfirmTemplate

1 Answer 87 Views
Window
This is a migrated thread and some comments may be shown as answers.
mk
Top achievements
Rank 1
mk asked on 13 Oct 2009, 06:58 PM
I have a page with 2 windowmanagers on it, some controls have their own managers.
This is the manager on the control with the grid.
<telerik:RadWindowManager ID="mgrWindow" ShowContentDuringLoad="false" VisibleStatusbar="false" ReloadOnShow="true" runat="server" > 
    <Windows> 
        <telerik:RadWindow ID="EventDetailsBulkAdd" Behaviors="Close" Width="447" Height="395" Modal="true" NavigateUrl="EventDetailsBulkAdd.aspx" runat="server" OnClientClose="OnWindowClose" /> 
    </Windows> 
</telerik:RadWindowManager> 

I add the confirmtemplate to the window manager on the serverside.
mgrWindow.ConfirmTemplate = new Designer.Web.Controls.ucConfirmEventForm(this.Page); 

In the grid I have a delete button which uses the confirmtemplate.
<telerik:GridButtonColumn HeaderText="Remove" ConfirmText="{FormName}" ConfirmDialogType="RadWindow" ConfirmTitle="Remove" ButtonType="ImageButton" CommandName="Delete" UniqueName="colRemove" ImageUrl="~/Images/icon_delete.gif" > 
                <HeaderStyle HorizontalAlign="Center" Width="60" /> 
                <ItemStyle HorizontalAlign="Center" /> 
            </telerik:GridButtonColumn> 

When I click on the delete button it does not call my confirmtemplate on this control. It calls the other windowmanagers confirmtemplate which is not set and is the first one rendered. I know default RadWindowManager functions call the first RadWindowManager that is rendered on the page. How do I get my delete button to call a specific RadWindowManager?

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 14 Oct 2009, 02:01 PM
Hello mk,

Currently it is not possible to set which RadWindowManager should be used. It will be possible with the Q3 release in the beginning of the next month where we have implemented this functionality. Then you will be able to get a reference to the needed RadWindowManager and to call its methods.
e.g.
var manager = $find("RadWindowManager1");
manager.radalert("my alert");


A BETA version of the Q3 release will be available in the next couple of days.


Greetings,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Window
Asked by
mk
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or