View Full Version : Property Grid with dynmaic fields

23 Mar 2012, 12:42 AM
I have set up a property grid to popup som details form a tree node. The number of properties may vary and the type of data it holds may also vary.

My model is set up as follows:

Ext.define('nodedetails', {
extend: 'Ext.data.Model',
fields: [
{name: 'name', type: 'string' },
{name: 'value', type: 'string'},
{name: 'type', type: 'string'}

How can I display this correctly in a property grid?

Rgds Jan

23 Mar 2012, 11:05 AM
You can use the Ext.grid.property.Store with the model but most uses you can use the source and setSource

26 Mar 2012, 4:37 AM
I solved the problem by using form panel. When the store has loaded I add items to the form with the field type required.