Sha256: 686d876982cb37fb979c00f5db5e9c1d552ce7eae36f770dd8f25755f9549347

Contents?: true

Size: 660 Bytes

Versions: 9

Compression:

Stored size: 660 Bytes

Contents

{
  netzkeRememberSelection: function(selModel, selectedRecords) {
    if (!this.rendered || Ext.isEmpty(this.el)) {
      return;
    }

    this.selectedRecords = this.getSelectionModel().getSelection();
  },

  netzkeRestoreSelection: function() {
    if (!this.selectedRecords || 0 >= this.selectedRecords.length) {
      return;
    }

    var newRecordsToSelect = [];
    for (var i = 0; i < this.selectedRecords.length; i++) {
      record = this.getStore().getById(this.selectedRecords[i].getId());
      if (!Ext.isEmpty(record)) {
        newRecordsToSelect.push(record);
      }
    }

    this.getSelectionModel().select(newRecordsToSelect);
  }
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
netzke-basepack-6.5.0.0 lib/netzke/grid/base/client/remember_selection.js
netzke-basepack-6.5.0.0.rc2 lib/netzke/grid/base/client/remember_selection.js
netzke-basepack-6.5.0.0.rc1 lib/netzke/grid/base/client/remember_selection.js
netzke-basepack-1.0.1.0 lib/netzke/grid/base/client/remember_selection.js
netzke-basepack-1.0.0.1 lib/netzke/grid/base/client/remember_selection.js
netzke-basepack-1.0.0.0 lib/netzke/grid/base/client/remember_selection.js
netzke-basepack-1.0.0.0.pre3 lib/netzke/grid/base/client/remember_selection.js
netzke-basepack-1.0.0.0.pre2 lib/netzke/grid/base/client/remember_selection.js
netzke-basepack-1.0.0.0.pre lib/netzke/grid/base/client/remember_selection.js