nl_tokens: Selects a range of rows if the selection model {
pl_tokens: function ( startRow , endRow , keepExisting ) { var me = this , store = me . store , i , toSelect = [ ] ; if ( me . isLocked ( ) ) { return ; } if ( ! keepExisting ) { me . deselectAll ( <mask> ) ; } if ( ! Ext . isNumber ( startRow ) ) { startRow = store . indexOf ( startRow ) ; } if ( ! Ext . isNumber ( endRow ) ) { endRow = store . indexOf ( endRow ) ; } // swap values if ( startRow > endRow ) { i = endRow ; endRow = startRow ; startRow = i ; } for ( i = startRow ; i <= endRow ; i ++ ) { if ( ! me . isSelected ( store . getAt ( i ) ) ) { toSelect . push ( store . getAt ( i ) ) ; } } me . doMultiSelect ( toSelect , true ) ; }