Our blazing fast Grid component built with pure JavaScript


Post by janan »

Hi,
I would like to divide the cell in to sub-cell or group the rows? Please find attached screenshot. Image.
We also have a filter to select 'activity1, activity2' and so on. On filter we would like to just update the data from backend and not to render the grid columns again. Could you help with it?

Attachments
Screenshot 2020-11-12 at 08.09.00.png
Screenshot 2020-11-12 at 08.09.00.png (37.75 KiB) Viewed 806 times

Post by saki »

The Grid currently does not support combining rows into one as shown on your picture.

One possibility of a workaround would be to use a custom cell renderer that would render sub-cells, if the full cell functionality is not required in the sub-cells

Regarding data update, setting https://bryntum.com/docs/grid/#Core/data/mixin/StoreSync#config-syncDataOnLoad to true should help because then the whole dataset is not replaced, but updated.


Post by janan »

Hi,
Thanks for response. Referring to the same picture, if 'activity3' is not there in the beginning and we get it on from ajax response, do we have to update all 'activity1, activity2 again or is it just activity3 that is updated?


Post by saki »

If you would use the custom cell renderer approach then yes, you have to re-run the renderers so that it would require to run all that would produce the different display. You do not need to do that manually, the view is refreshed whenever the underlying data changes.

https://bryntum.com/docs/grid/#Core/data/mixin/StoreSync#config-syncDataOnLoad can be helpful in that that it compares received data and the data existing in the store and only updates changed records.


Post Reply