ssamayoa
16 Jun 2011, 11:02 PM
Hi.
I have a very annoying problem with Ext.ux.RowExpander, let me explain:
I have an grid panel which is meant to be instantiated multiple times with its own store.
It works as expected but when I add the RowExpander plugin, each time I instantiate the panel grid I got another expand column: first istantiation = 1 expand column, second instantiation = 2 expand columns and so.
I looked at the pluing code and found that plugin allways add the column without checking if already exists. I modified the code so headerId of the plugin´s config is looked in the columns array and if is there dont create the column.
So far, this seems to work but each time I expand or collapse a record in 2d and further instances I get the following error:
Uncaught TypeError: Cannot read property 'internalId' of undefined
There is a plugin´s internal property called recordsExpanded which I dont understand what is for.
Some help here please.
Regards.
I have a very annoying problem with Ext.ux.RowExpander, let me explain:
I have an grid panel which is meant to be instantiated multiple times with its own store.
It works as expected but when I add the RowExpander plugin, each time I instantiate the panel grid I got another expand column: first istantiation = 1 expand column, second instantiation = 2 expand columns and so.
I looked at the pluing code and found that plugin allways add the column without checking if already exists. I modified the code so headerId of the plugin´s config is looked in the columns array and if is there dont create the column.
So far, this seems to work but each time I expand or collapse a record in 2d and further instances I get the following error:
Uncaught TypeError: Cannot read property 'internalId' of undefined
There is a plugin´s internal property called recordsExpanded which I dont understand what is for.
Some help here please.
Regards.