deployment - Best method to deploy ExtJs Grid in large scale project -
deployment - Best method to deploy ExtJs Grid in large scale project -
its been quite sometime, i've been evaluating extjs grid. far , love command , api. have genuine doubts regarding deploying extjs grid in production environment. here goes:
how can deploy extjs grid large-scale project? suppose have huge project, contains more 100 grids. in case, how can handle grids?
do have maintain seperate javascript file each grid? means, if have 100 grids, need maintain 100 js files? do have maintain wrapper js file, can create 100 grids, per ther arguments pass method?which 1 better? or there improve methods available? can please shed info on deploying extjs grid in large-scale project?
any help appreciated. thanks!
can explain project? 100 grids or 100 models/datastores?
i create database model/source/grid column definitions, , build ext grids dynamically mapping info json. pretty trivial 1 time create beforerender listener has ajax request within it, in success routine of ajax create or populate model/source/grid definitions , ... done.
you can see technique (non grid) illustration ...
var areaeast = ext.create('ext.panel', { region: 'east', collapsible: true, split: true, width: 200, title: 'east', items: [ ], layout:'accordion', autoscroll: true, listeners : { beforerender : function() { ext.ajax.request({ url: './js/tabs.pl', disablecaching: false, success: function(response){ var text = ext.decode(response.responsetext); ext.each( text.rows, function(row, index) { areaeast.add( row ); }); }, }); }, }, });
... , json follows produce couple of ext items[] on fly ...
content-type: application/json {"rows":[{"html":"str_0.720264353647025","iconcls":"ico_home","title":"tab_1","xtype":"panel"}, {"html":"str_0.967244391419577","iconcls":"ico_gear","title":"tab_2","xtype":"panel"}, {"html":"str_0.713014552355148","iconcls":"ico_home","title":"tab_3","xtype":"panel"}, {"html":"str_0.0254531761575763","iconcls":"ico_gear","title":"tab_4","xtype":"panel"}]}
deployment extjs grid
Comments
Post a Comment