Feb 26, 2018, 10:23 AM
[CLOSED] Cannot read property 'getStyle' of null - When setting text of label present inside a collapsed panel
I have an ext label with the ID "LabelText" inside an ext panel.
I am using Ext.getCmp("panelid").togglecollapse(); to expand or collapse the panel based on another button click.
I also have an ext grid-panel with checkbox selection model. When a row is selected or de-selected the count of selected rows is updated in the label "LabelText" with App.LabelText.SetText(counter) where counter is based on App.gridPanelRecipients.getSelectionMemory().selec tedIds.
The problem is when the panel on my page is collapsed and the text of the label is being set it gives the error as
"Uncaught TypeError: Cannot read property 'getStyle' of null"
This occurs intermittently.
Please note that this works fine on Ext.Net 2.5.
I am using Ext.getCmp("panelid").togglecollapse(); to expand or collapse the panel based on another button click.
I also have an ext grid-panel with checkbox selection model. When a row is selected or de-selected the count of selected rows is updated in the label "LabelText" with App.LabelText.SetText(counter) where counter is based on App.gridPanelRecipients.getSelectionMemory().selec tedIds.
The problem is when the panel on my page is collapsed and the text of the label is being set it gives the error as
"Uncaught TypeError: Cannot read property 'getStyle' of null"
This occurs intermittently.
Please note that this works fine on Ext.Net 2.5.
Last edited by fabricio.murta; Apr 27, 2018 at 2:38 PM.