Nov 18, 2016, 3:18 PM
[CLOSED] Adding Store to Root Level of page in code behind
Hello,
I am creating some controls in code behind such as...
Thanks.
--------------------------------------------------
Hello,
I think I figured it out...I just added the Store to the "Bin" folder of the object and it worked.
Thanks
----------------------------------------------------
Thanks Fabricio...is there a way to check if a store has already been added to the bin folder in code behind? I only want to add the store once, but serveral objects are using the store and need to add it if it does not exist. Thanks.
I am creating some controls in code behind such as...
public Ext.Net.Container.Builder Browser
{
get
{
try
{
Ext.Net.Container oContainer
= new Ext.Net.Container ( )
{
ItemID
= this.Model.UiBrowserId,
Layout
= Ext.Net.LayoutType.Fit.ToString ( )
};
oContainer.Add ( this.BrowserContextMenu );
oContainer.Add ( this.BrowserTopPanel );
oContainer.Add ( this.WindowSaveConfiguration );
return oContainer;
}
catch ( System.Exception ex )
{
System.Diagnostics.Debug.Fail ( ex.Message );
throw ex;
}
}
}
Now this control is added somewhere down the hierarchy of my code behind controls & I would like to add a Store to the page or to the top level object in code behind. How can I get a reference to the page or the top level object to add my store from code behind?Thanks.
--------------------------------------------------
Hello,
I think I figured it out...I just added the Store to the "Bin" folder of the object and it worked.
Thanks
----------------------------------------------------
Thanks Fabricio...is there a way to check if a store has already been added to the bin folder in code behind? I only want to add the store once, but serveral objects are using the store and need to add it if it does not exist. Thanks.
Last edited by fabricio.murta; Dec 02, 2016 at 5:24 PM.