I'm working on an app that will have different grid views for the the same data based on user privileges and the current business process phase. As an example, as a process progresses there are more columns with meaningful data. All of these grids share some common data. Truly Dynamic and Re-usable DataGrids / ASP.NET Controls / ASP :: TemplateLoader – Object that inherits from the Page object and hides the LoadTemplate Config file. The Column and Grid objects are serialized into the http://netcode.ru/dotnet/?lang=&katID=27&skatID=214&artID=5498HOME |
Instead of creating individual configurations for each "view" is it possible to start with a single 'base' configuration and build upon (or take away from) it as needed? I suspect this is possible, but don't have a clue how to implement it.
If anyone has done this a how to description or examples would be greatly appreciated.
Thanks in advance.
That definitely helps. Ext.apply is what I was looking for.
Something like:
var defaultConfig = {
title: 'myTitle',
stripeRows: true
};
var config = Ext.apply( Ext.apply({}, defaultConfig), {title: 'myTitleOverride'} );
grid1 = new Ext.....GridPanel(config);
config = Ext.apply( Ext.apply({}, defaultConfig), {title: 'myTitleOverride2'} );
grid2 = new Ext.....GridPanel(config);
Is that what you are looking for?
Red Hat's Rough Recovery From CFO Exit
Windows Live Finds a New, Pre-installed Home |