[CLOSED] GridPanel and CheckBoxSelectionModel

  1. #1

    [CLOSED] GridPanel and CheckBoxSelectionModel

    Hi!

    I'm using in gridPanel two plugins...

    Ext.selection.CheckboxModel and cellediting...

    I wish when I edit one cell in grid, I select/unselect (depends of value) the row...
    How I can do this?

    The follow event is fired after edit cell:


    afterEdit: function (editor, e) {
                /*
                Properties of 'e' include:
                    e.grid - This grid
                    e.record - The record being edited
                    e.field - The field name being edited
                    e.value - The value being set
                    e.originalValue - The original value for the field, before the edit.
                    e.row - The grid row index
                    e.column - The grid column index
                */
            
                if (e.record.data['QUANTIDADEDIARIA'] < 0) {
                    e.record.data['QUANTIDADEDIARIA'] = 0;
                }
    
                // Call DirectMethod
                //CompanyX.AfterEdit(e.record.data.ID, e.field, e.originalValue, e.value, e.record.data);
                //depois de editar, vou atualizar todos o summary
                this.updateSummary();
    
            }
    Last edited by Daniil; Jun 25, 2012 at 4:27 PM. Reason: [CLOSED]
  2. #2
  3. #3
    Hi Daniil!

    Works very fine!

    Thanks a lot.

Similar Threads

  1. [CLOSED] GridPanel and CheckBoxSelectionModel
    By supera in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 25, 2012, 12:45 PM
  2. [CLOSED] GridPanel CheckboxSelectionModel & contiguous selection
    By bogc in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 15, 2012, 10:04 AM
  3. GridPanel CheckboxSelectionModel
    By winner0819 in forum 1.x Help
    Replies: 2
    Last Post: Dec 12, 2011, 4:00 AM
  4. [CLOSED] GridPanel multiselect rows (CheckboxSelectionModel)
    By rnfigueira in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Sep 14, 2011, 6:24 PM
  5. [CLOSED] GridPanel multiselect rows (CheckboxSelectionModel)
    By rnfigueira in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 02, 2011, 7:03 PM

Posting Permissions