Oct 22, 2013, 6:54 PM
[CLOSED] Auto Updating Store Custom Component
I am trying to extend a store in a custom component. It should auto update. In the example below, the DataSource is an XML file that is refreshed by another process.
How would I go about doing that?
Thanks,
Vincent
public class ExtendedStore: Ext.Net.Store
{
protected override void OnInit(EventArgs e)
{
this.AutoLoad = true;
this.Model.Add(new Ext.Net.Model
{
IDProperty = "field1",
Fields = {
new Ext.Net.ModelField("field1", Ext.Net.ModelFieldType.Int)
}
});
this.DataSource = new System.Web.UI.WebControls.XmlDataSource()
{
DataFile = "~/data.xml"
};
base.OnInit(e);
}
}
How would I go about doing that?
Thanks,
Vincent
Last edited by Daniil; Oct 29, 2013 at 11:42 AM.
Reason: [CLOSED]