mhubert
20 May 2007, 8:55 PM
reader: new Ext.data.XmlReader({
// records will have an "row" tag
record: 'row',
totalRecords: 'total'
}, ['id','carrier','detail'])
});
I would like to take the definition ['id','carrier','detail'] from the xmlstream -- e.g. <columns>id,carrier,detail</columns>
how would I do that?
on a similar note
var cm = new Ext.grid.ColumnModel([
{header: "id", width: 120, dataIndex: 'id'},
{header: "carrier", width: 80, dataIndex: 'carrier'},
{header: "detail", width: 285, dataIndex: 'detail'}
]);
is there a way to set width: autofit? and could I read the above also from the XML data stream? If so how.
Thanks for any help and pointers
// records will have an "row" tag
record: 'row',
totalRecords: 'total'
}, ['id','carrier','detail'])
});
I would like to take the definition ['id','carrier','detail'] from the xmlstream -- e.g. <columns>id,carrier,detail</columns>
how would I do that?
on a similar note
var cm = new Ext.grid.ColumnModel([
{header: "id", width: 120, dataIndex: 'id'},
{header: "carrier", width: 80, dataIndex: 'carrier'},
{header: "detail", width: 285, dataIndex: 'detail'}
]);
is there a way to set width: autofit? and could I read the above also from the XML data stream? If so how.
Thanks for any help and pointers