Skip to content

Commit

Permalink
auto column indexes on setState
Browse files Browse the repository at this point in the history
  • Loading branch information
stevewirts committed Nov 5, 2015
1 parent 955c2a2 commit 3c26db7
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 17 deletions.
15 changes: 11 additions & 4 deletions examples/bclys/fin-hypergrid.dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -26313,7 +26313,7 @@
isRightClick: this.isRightClick(e)
}
}));
//console.log('dblclick', this.currentKeys);
console.log('dblclick', this.currentKeys);
},

getCharMap: function() {
Expand Down Expand Up @@ -28036,6 +28036,13 @@
setState: function(memento) {

//we don't want to clobber the column properties completely
if (!memento.columnIndexes) {
var fields = this.getFields();
memento.columnIndexes = [];
for (var i = 0; i < fields.length; i++) {
memento.columnIndexes[i] = i;
}
}
var colProperties = memento.columnProperties;
delete memento.columnProperties;
this.tableState = null;
Expand Down Expand Up @@ -36447,9 +36454,9 @@
return this.getRenderer().isViewableButton(c, r);
},

fireSyntheticButtonPressedEvent: function(event) {
var dataCell = event.dataCell;
var gridCell = event.gridCell;
fireSyntheticButtonPressedEvent: function(evt) {
var dataCell = evt.dataCell;
var gridCell = evt.gridCell;
if (!this.isViewableButton(dataCell.x, dataCell.y)) {
return;
}
Expand Down
Loading

0 comments on commit 3c26db7

Please sign in to comment.