Results 1 to 3 of 3

Thread: [ExtJs 5.1.1] Unable to set RawValue on comboBox inside roweditor

  1. #1
    Ext JS Premium Member
    Join Date
    Jan 2010
    Location
    Italy
    Posts
    44

    Default [ExtJs 5.1.1] Unable to set RawValue on comboBox inside roweditor

    Hi,
    I'm using Grid.RowEditor plugin and I have the need to set in some circumstances the RawValue on a combobox of one column editor.
    The only way I found is to use the beforeedit event of the RowEditor and try to set the value as shown below:
    Code:
        onRowEditingBeforeEdit: function(editor, context, eOpts) {
            var cmb=editor.grid.columns[3].getEditor(context.record);
            if(context.record.data.MediumType!=3){
                cmb.setRawValue('Default');//this value will be overwritten
                cmb.setDisabled(true);
            }
        }
    Unfortunately seems that the raw value is overwritten when the combo is activated.
    I tried to map some events to such combobox (show,activate ecc.) to try to change the value but none is fired.
    Anyone have some idea to how to set the raw value in some other way?

    Thanks in advance

  2. #2
    Sencha - Support Team bjdurham85's Avatar
    Join Date
    Mar 2014
    Posts
    962
    Answers
    55

    Default

    Hi--,

    Can you put your example (and what you've tried thus far) in a fiddle (https://fiddle.sencha.com) so we can review and advise?

    Regards,
    Bryan

  3. #3
    Ext JS Premium Member
    Join Date
    Jan 2010
    Location
    Italy
    Posts
    44

    Default

    I don't have an example right now.. just my complex app code.
    I think that the code in my post can be enough to reproduce the behaviour.
    Just create a grid with roweditor and try to set raw value as I do.

    Thanks

Similar Threads

  1. Replies: 2
    Last Post: 25 Jul 2016, 2:00 AM
  2. Replies: 5
    Last Post: 11 May 2015, 12:31 AM
  3. Replies: 1
    Last Post: 14 Dec 2014, 9:42 PM
  4. Getting values from a ComboBox, only get rawValue()
    By jamone in forum Ext GWT: Discussion
    Replies: 0
    Last Post: 29 May 2012, 11:24 PM
  5. [CLOSED] Ext.getCmp('ID').getValue() or rawValue in IE8 and IE9 with Extjs 4.1
    By punith.mailme in forum Ext:Bugs
    Replies: 1
    Last Post: 13 May 2012, 5:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •