RadGrid on a page with multiple RadWindowManager opens wrong ConfirmTemplate

2 posts, 0 answers
  1. mk
    mk avatar
    14 posts
    Member since:
    Sep 2009

    Posted 13 Oct 2009 Link to this post

    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?

  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 14 Oct 2009 Link to this post

    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.
Back to Top