PDA

View Full Version : Drop Down in Extjs is not Working(Update value issue)



ysonni
5 Jun 2014, 6:28 AM
Currently we are using ext-4.2.2.1144 EXTJS Version, After populating the data in grid when we edit the writing company column and select a different value from dropdown store and clicks on update button. It is not reflecting the updated value in grid. This was working fine in earlier Extjs version(i.e. ext-4.2.0.663).

Please refer the attached screen shot and Help

scottmartin
5 Jun 2014, 9:52 AM
Is the store value updated? Do you have a column renderer setup? ( value, displayValue)

ysonni
6 Jun 2014, 6:47 AM
Yes,The value is updating in store and it is showing that updated value in all the records of that grid for 4.2.2 EXTJS version.

But in EXTJS 4.2.0 version,this issue is not occuring.

Please check if something has changed in EXTJS4.2.2 Version.

We are using following code in grid for that column:-
{
editor: new Ext.form.field.ComboBox({
typeAhead: true,
triggerAction: 'all',
dataIndex: 'WritingCompanyName',
store: Ext.data.StoreManager.lookup('wcStoreId'),
typeAhead: true,
mode: 'remote',
lastQuery: '',
triggerAction: 'all',
emptyText: 'Please Select a Contact Type',
displayField: 'WritingCompanyName',
valueField: 'WritingCompanyName'
}),
header: 'Writing Company',
width: 120,
sortable: true,
renderer: this.changeRenderer,
align: 'left',
style: 'text-align:left',
dataIndex: 'WritingCompany'
},

scottmartin
6 Jun 2014, 8:40 AM
We would need a working example. We cannot debug a snippet.

Something like this:
https://fiddle.sencha.com/#fiddle/1s0

ysonni
17 Jul 2014, 3:36 AM
Hi,

Greetings

we have uploaded the zip file which contains Extjs source file and document explaining issue.Please use js file in your working example and provide your feedback.

Note:-We are using EXTJS Version-4.2.2.1144