Hi all! :)
I run into an issue regarding using the *same* datagrid with different request parameters on a single page after updating OroPlatform from 1.2 to 1.3: the displayed data inside *all* datagrids (of same type) is always the data from the *first* datagrid that is rendered. It seems that something important has been changed here that makes this use case impossible. Did those changes happen on purpose?
Use case: I am “grouping” entities by timeframes and using multiple datagrids for that. One datagrid for “current month”, one for “last month” and one for “all months mefore”. I introduced a custom parameter and registered filter listener via DIC and then calling dataGrid.renderGrid() multiple times in twig template with different parameters. Worked like a charm in 1.2 but now… Probably the data is “cached” somehow in memory? Maybe a “sub service” is shared between datagrid “instances” when calling getData() method?
Is this a bug? Should I create a bug report on github? Or is using multiple datagrids of same type not supported anymore?
Thanks for help/answer! :)
The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.