user1389920
user1389920

Reputation: 423

Updating SlickGrid Options after initialization

My question regarding SlickGrid is this.

If I create a grid with options { enableCellNavigation: true }, can I later, edit the grid options to set this value to false?

I can access the options via the getOptions(); function but assigning a new value does nothing. Have also tried calling the render() and init() methods again afterwards but no change.

Wondering if this is possible?

Many thanks.

Upvotes: 1

Views: 4181

Answers (1)

ganeshk
ganeshk

Reputation: 5621

This has always worked for me:

grid.setOptions({
  editable: false,
  autoEdit: false
});
grid.invalidate();

Upvotes: 2

Related Questions