Dec 04, 2012, 4:31 PM
[MVC] On refresh: The control with id 'DataStore' not found
I have a GridPanel that I am populating from a DataTable:
I've researched this online and found that it might be something about dynamically creating things... But I don't know what that means or how to do that (or if that's even the problem). Help?
@model System.Data.DataTable
...
@Html.X().ResourceManager()
@(Html.X().Viewport()
.Items(viewportItems => {
....
viewportItems.Add(Html.X().GridPanel()
...
.Store(store => {
store.Add(Html.X().Store()
.ID("DataStore")
.DataSource(this.Model)
.Model(model => {
model.Add(Html.X().Model()
.ID("DataModel")
.IDProperty("UserCode")
.Fields(fields => {...}));
}));
);
})
...
.BottomBar(bottombar =>
{
bottombar.Add(Html.X().PagingToolbar());
})
})
)
When I press the "refresh table" button on the BottomBar's PagingToolbar (and in a few other cases), I get the HttpException "Error executing child request for handler 'Ext.Net.SelfRenderingPage'" with an inner exception "The control with ID 'DataStore' was not found".I've researched this online and found that it might be something about dynamically creating things... But I don't know what that means or how to do that (or if that's even the problem). Help?