View Full Version : Change viewConfig attributes dynamically

25 May 2014, 11:39 PM
Hi there,

is there any possibility to change the viewConfig attributes from gridpanel after it has been rendered?

Ext.create('Ext.grid.Panel', {
viewConfig: { enableTextSelection: false}

At the beginning I want the grid to be not selectable and later on I want to enable textselection (programmatically) depending on the data that is shown.

Thank you.

2 Jun 2014, 12:56 PM

I'm afraid there's not a way to re-render the grid with new viewConfig options such as altering the enableTextSelection configuration. You'll need to destroy / re-create the grid instance with the new configs.

2 Jun 2014, 10:31 PM
Okay, thank you!