Apr 15, 2010, 1:28 PM
[1.0] XRender with child controls
Hello.. I found following problem:
When i add some tabs to my tab panel using XRender like this:
The panel is dynamicaly created by following code:
The content of TariffsForm is following:
sc:TariffsDataGrid is my server control, and as far as we are here everythings works okay.
Problem starts when i put some ext control in TariffsDataGrid CreateChildControls method. It this case the tab do not even shows on my tab panel. Also i want to tell you that it works okay if control putted into my server control is asp.net control, the problem is only when i put ext control into my server control.
Now to proof that it's a XRender problem i want to share following facts with you:
- When i put only sc:TariffsDataGrid on some page it works okay.
- When i put only TariffsForm.ascx on some page it works okay.
- When i open this as a static (not dynamically created) tab it works okay.
The problem shows only when i'm putting it into panel on my new tab using XRender.
Please help me to solve this issue, or mark it as a bug and fix it in the final one point O.
When i add some tabs to my tab panel using XRender like this:
panel.Render(MyTabPanel, RenderMode.AddTo);
The panel is dynamicaly created by following code:
var panel = new Panel(GetTitle(), GetIcon()) { Closable = true }; var formControl = _templateControl.LoadControl("~/Forms/Tariffs/TariffsForm.ascx"); panel.ContentControls.Add(formControl); return panel;
The content of TariffsForm is following:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TariffsForm.ascx.cs" Inherits="VS.WebGUI.Forms.Tariffs.TariffsForm" %> <sc:TariffsDataGrid ID="someId" runat="server" />
sc:TariffsDataGrid is my server control, and as far as we are here everythings works okay.
Problem starts when i put some ext control in TariffsDataGrid CreateChildControls method. It this case the tab do not even shows on my tab panel. Also i want to tell you that it works okay if control putted into my server control is asp.net control, the problem is only when i put ext control into my server control.
Now to proof that it's a XRender problem i want to share following facts with you:
- When i put only sc:TariffsDataGrid on some page it works okay.
- When i put only TariffsForm.ascx on some page it works okay.
- When i open this as a static (not dynamically created) tab it works okay.
The problem shows only when i'm putting it into panel on my new tab using XRender.
Please help me to solve this issue, or mark it as a bug and fix it in the final one point O.