Upgrading from Ext.net 2.5 to Latest
ComponentLoader.ToConfig method fails when UserControl is passed as argument.For example.
   Page p = new System.Web.UI.Page();
   var allCtr = (UserControl)p.LoadControl("~/control1.ascx");
   var component = ComponentLoader.ToConfig(allCtr);// it fails here
Control controls1.ascx contains 3 Ext.Net.Controls
<ext:Panel runat="server" Title ="Item 1" Icon="UserBrown"></ext:Panel>
<ext:Panel runat="server" Title ="Item 2" Icon="UserAdd"></ext:Panel>
<ext:GridPanel runat="server" Title ="Item 3" Icon="UserDelete"></ext:GridPanel>
If grid panel is removed then ComponentLoader.ToConfig succeeds.Also it succeesds
when called directly.
ComponentLoader.ToConfig("~/control1.ascx");
In many cases UserControl passing as argument is preferable.But It fails on GridPanel. How to workaround this problem.