Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #113611
    linda05
    Participant

    Hi everyone, I am working on a CRM-like back-office app with Grid. I am currently trying to solve this: Is Smart Grid compatible with routing? So far, I can reproduce it consistently in a small demo, but performance drops once the dataset grows. What approach would you recommend here?

    #113619
    admin
    Keymaster

    Hi linda,

    In our case, we keep the grid state (filters, sorting, pagination, etc.) synchronized with the Angular Router using query parameters, so users can navigate away and back without losing their current view.

    If you’re seeing performance degradation with larger datasets, I’d first check whether route changes are causing the grid component to be recreated. Also, make sure you’re using OnPush change detection, trackBy for row rendering, and server-side paging/filtering if the dataset is large. In most cases, routing itself isn’t the bottleneck—it’s the component lifecycle or unnecessary grid re-renders triggered by navigation.

    Regards,
    Peter

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.