Sep 09, 2019, 3:18 PM
Resource Manager is null
Hello,
I am building the control tree in code behind and it has not been added to a form or view yet. When i add a control to a container as shown below
error message and the stack trace looks like it getting a property value from the ResourceManager. The stack trace is as follows
I do not have a ResourceManager since i am loading control dynamically in code behind. Is there anything i can do to avoid this error? Thanks.
I am building the control tree in code behind and it has not been added to a form or view yet. When i add a control to a container as shown below
Ext.Net.AbstractContainer oContainer
= ( Ext.Net.AbstractContainer ) parent;
Ext.Net.AbstractComponent oChild
= ( Ext.Net.AbstractComponent )
oControl;oContainer.Items.Add ( oChild );
I receive an
Object reference not set to an instance of an object.
at Ext.Net.MVC.MvcResourceManager.get_IsMVC()
at Ext.Net.BaseControl.get_IsMVC()
at Ext.Net.BaseControl.get_SafeResourceManager()
at Ext.Net.BaseControl.get_IsPageSelfRender()
at Ext.Net.BaseControl.EnsureDynamicID()
at Ext.Net.BaseControl.get_ClientID()
at Ext.Net.RadioGroup.AfterItemAdd(Observable item)
at Ext.Net.ItemsCollection`1.Add(T item)
at Ext.Net.BaseControl.get_IsMVC()
at Ext.Net.BaseControl.get_SafeResourceManager()
at Ext.Net.BaseControl.get_IsPageSelfRender()
at Ext.Net.BaseControl.EnsureDynamicID()
at Ext.Net.BaseControl.get_ClientID()
at Ext.Net.RadioGroup.AfterItemAdd(Observable item)
at Ext.Net.ItemsCollection`1.Add(T item)
Last edited by edip; Sep 09, 2019 at 5:59 PM.
Reason: More information