View Full Version : Dynamic Rendering Grid problem

5 Feb 2010, 9:10 AM
Hi every one,

i am using Ext3.0 for rendering Grid. i got Grid with dynamic column values using Ext.data.DynamicJsonReader.

Myexample jsonobject:::: {"total":10,"results":[{"id":"AITRC-11","ApplicationName":"Issue Tracking","Status":"5 - Needs Acknowledgement","modifiedTime":"02/04/10 16:01","Title":"IssueTrackingTest","Assignee":null,"Priority":"3 - Medium","Assigned Group":"IT Special Projects"}]}.

i can read rows in front end using below code:

Ext.grid.DynamicColumnModel = function(store){
var cols = [];
var recordType = store.recordType;
var fields = recordType.prototype.fields;
for (var i = 0; i < fields.keys.length; i++)
var fieldName = fields.keys[i];
var field = recordType.getField(fieldName);
cols[i] = {header:field.name,dataIndex: field.name,width:300})};
Ext.grid.DynamicColumnModel.superclass.constructor.call(this, cols);
Ext.extend(Ext.grid.DynamicColumnModel, Ext.grid.ColumnModel, {});

now, i need to get addtional column definitions like width,link etc . (note: here width is hard coded.)
how can i send via json and how to read in front end. since i can get only field.name.
i am unable to send addtional parameters.

please help me.