samedi 31 janvier 2015

Change to another component

Good day. Guys tell me how to deal with this situation. insert kompanet

Code:



{
xtype: 'gridpanel',
title: 'Прайс обновлен 00.00.00',
store: 'PriceStore',
columns: [
{
xtype: 'gridcolumn',
dataIndex: 'gr',
text: 'Группа',
width : 70,
},
{
xtype: 'gridcolumn',
dataIndex: 'naimenovanie',
flex : 1,
text: 'Наименование'
},
{
xtype: 'gridcolumn',
dataIndex: 'edIzm',
width : 70,
text: 'Ед.изм.'
},
{
xtype: 'gridcolumn',
dataIndex: 'cenaBezNDS',
width : 70,
text: 'Цена без НДС'
}
]
}



I would like to change it to Ext.ux.LiveSearchGridPanel without changing structure. In general, something like

Code:



{
xtype: 'LiveSearchGridPanel',
title: 'Прайс обновлен 00.00.00',
store: 'PriceStore',
columns: [
{
xtype: 'gridcolumn',
dataIndex: 'gr',
text: 'Группа',
width : 70,
},
{
xtype: 'gridcolumn',
dataIndex: 'naimenovanie',
flex : 1,
text: 'Наименование'
},
{
xtype: 'gridcolumn',
dataIndex: 'edIzm',
width : 70,
text: 'Ед.изм.'
},
{
xtype: 'gridcolumn',
dataIndex: 'cenaBezNDS',
width : 70,
text: 'Цена без НДС'
}
]
}





Change to another component

Aucun commentaire:

Enregistrer un commentaire