Results 1 to 2 of 2

Thread: Selection event passes wrong arguments.

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-8201 in 4.2.0.489.
  1. #1
    Sencha Premium Member
    Join Date
    Sep 2009
    Posts
    42
    Vote Rating
    1
      0  

    Default Selection event passes wrong arguments.

    and the Grid event beforeselect param 'record' is array ,not a record.

    add this test code
    Code:
    grid2.on("beforeselect", function(mme,
                                record, index, eOpts) {
                            
                            if (record.data['company'] == 'abc') {
                                return false;
                            }
                            return true;
    
    
                        });
    
    
            var newrow = grid2.store.add({'company':'abc'});
            grid2.getSelectionModel().select(newrow);

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,029
    Vote Rating
    1368
      0  

    Default

    Thanks for the report
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

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