Hi all,
I have a button in a GridTemplateColumn Header which I am using to open a RadWindow through code behind. Here is the .aspx:
and in the code behind:
In debug, the NewWindowCommand event handler fires and I can step through all the code, but no window appears.
However, using exactly the same event handler, if I have an asp:button outside the grid, if I click that everything works fine and the window appears.
Why this unexpected behaviour?
Any help would be appreciated,
Donald
I have a button in a GridTemplateColumn Header which I am using to open a RadWindow through code behind. Here is the .aspx:
<telerik:GridTemplateColumn UniqueName="CVATemplateColumn" InitializeTemplatesFirst="false"> <HeaderTemplate> <asp:Button ID="id" runat="server" OnClick="NewWindowCommand" /> </HeaderTemplate></telerik:GridTemplateColumn>and in the code behind:
protected void NewWindowCommand(object sender, EventArgs e){ RadWindowManager windowManager = new RadWindowManager(); RadWindow radWindow = new RadWindow(); // Set the window properties radWindowNavigateUrl = "radWindow.aspx"; radWindow.ID = "radWindowId"; radWindow.VisibleOnPageLoad = true; windowManager.Windows.Add(radWindow ); Form.Controls.Add(radWindow );}In debug, the NewWindowCommand event handler fires and I can step through all the code, but no window appears.
However, using exactly the same event handler, if I have an asp:button outside the grid, if I click that everything works fine and the window appears.
<telerik:RadGrid>....</telerik:RadGrid><asp:Button ID="id" runat="server" OnClick="NewWindowCommand" />Why this unexpected behaviour?
Any help would be appreciated,
Donald