Results 1 to 2 of 2

Thread: [SOLVED] EditorGridPanel-set same value for all selected rows after editing a field

  1. #1
    Touch Premium Member msinn's Avatar
    Join Date
    Jul 2009
    Location
    in front of my pc
    Posts
    280

    Question [SOLVED] EditorGridPanel-set same value for all selected rows after editing a field

    Hello everybody,

    I have an EditorGridPanel with RowSelectionModel with singleSelect: false.
    I have to select multiple rows and then to edit a random field of one of the selected rows. After editing that value should be set to all fields of the same column of all selected rows.

    Would you be nice to give me some hints, how to achieve this goal?

    Thank you
    Marius
    First I would like to thank you for your time and knowledge

    Win 7 Ext JS 4.1.3 IE(6-9), FF17

  2. #2
    Touch Premium Member msinn's Avatar
    Join Date
    Jul 2009
    Location
    in front of my pc
    Posts
    280

    Default

    I found a solution

    I have to add this code to the grid listener afteredit:

    PHP Code:
    afteredit: function(e){
                    var 
    sel e.grid.getSelectionModel();
                    if(
    sel.getCount() > 0){
                        
    sel.each(function(rec){
                            if(
    sel.isIdSelected(rec.data.IPS_ID)){
                                
    rec.set('PLANED_DATE'e.value);
                            }
                        });
                    } 
    maybe there is a better way and I'll be very happy if you'll share a hint
    First I would like to thank you for your time and knowledge

    Win 7 Ext JS 4.1.3 IE(6-9), FF17

Similar Threads

  1. Set all rows in grid to be selected
    By jpartogi in forum Ext GWT: Discussion
    Replies: 1
    Last Post: 4 Nov 2009, 10:16 AM
  2. Replies: 3
    Last Post: 2 Nov 2009, 4:13 AM
  3. ComboBox selected value not set when changing field focus
    By spotk in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 24 Nov 2008, 11:10 PM
  4. GRID!! set rows selected by default
    By ragunalth in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 30 Aug 2008, 6:00 PM

Tags for this Thread

Posting Permissions

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