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.
I add the confirmtemplate to the window manager on the serverside.
In the grid I have a delete button which uses the confirmtemplate.
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?
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?