ExtJS RowEditor on Grid

Posted by Ian Warner on Stack Overflow See other posts from Stack Overflow or by Ian Warner
Published on 2010-03-31T09:29:38Z Indexed on 2010/03/31 9:33 UTC
Read the original article Hit count: 996

Filed under:
|

Hi

When my users edits the Grid via RowEditor combo entries and checkboxes are annoying

1 Apple 2 Orange 3 Pear

For instance with the combo above the user will select Orange then update - the Grid now instead of saying orange will display the number 2 - I would like it to show orange when a successful edit has been made.

code for my combo

           editor : {
       allowBlank     : false,
       displayField   : 'team',
       editable       : false,
       emptyText      : 'Select Team',
       forceSelection : true,
       lazyRender     : true,
       mode           : 'remote',
       name           : 'team',
       store          : storeTeam,
       triggerAction  : 'all',
       valueField     : 'id',
       xtype          : 'combo'
     }

I think I read that you could send the complete row back to insert or I should listen to the update of the grid and then change the field but I need some guidance on what is best

Cheers

© Stack Overflow or respective owner

Related posts about extjs

Related posts about grid