Mar 19, 2013, 8:25 PM
[MVC] Create Grid and add to TabPanel dynamically.
Hi All,
I'm facing the following problem, I need to create Grids dynamically depends on the parameters, in other words for each param combination i'll create different Grids with different columns, for this i've solve my problem creating them on server side like this:
And now my question, how can i create TabPanels in server side and add one Grid.
And return all these Data to for the Ext can render.
"List of Tabs and for each tab i need a Grid inside"
To illustrate my question:
the User selected 2 items on parameters, that means the solution will show for him 2 Tabs and for each tab one grid with the corresponding data.
Regards,
I'm facing the following problem, I need to create Grids dynamically depends on the parameters, in other words for each param combination i'll create different Grids with different columns, for this i've solve my problem creating them on server side like this:
private GridPanel BuildGridPanel(FuturesPositionOutputParameter futureOut)
{
var grid = new GridPanel();
grid.Store.Add(BuildStore(futureOut.Position));
grid.SelectionModel.Add(new RowSelectionModel() { Mode = SelectionMode.Single });
grid.ColumnModel.Add(this.BuildColumns(futureOut.Position.First()).Columns);
grid.View.Add(new GridView() { StripeRows = true, TrackOver = true });
return grid;
}
These parameters is made of a combination of multi selects, meaning that I can create more then one Grid result. to solve this problem i want to create these Grids inside Tabs.And now my question, how can i create TabPanels in server side and add one Grid.
And return all these Data to for the Ext can render.
"List of Tabs and for each tab i need a Grid inside"
To illustrate my question:
the User selected 2 items on parameters, that means the solution will show for him 2 Tabs and for each tab one grid with the corresponding data.
Regards,