Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
230
How to preserve column templates on bind
posted

My column templates disappear upon re-binding the grid. I have successfully reset the templates using the setColumnTemplate method. However, I must do this after all igGrid events have fired and it causes unnecessary rendering. I'm currently doing this on a delay just for testing. If I try calling this method inside the dataBound or dataRendered, it results in infinite recursion. I can stop the recursion by setting render = false; However, then it sets the template but doesn't render the display. What is the proper way to preserve column templates when re-binding the grid?

Thanks

John

Parents
  • 15320
    Offline posted

    Hello John,

    I made a sample in order to test the behavior that you're experiencing, however I was unable to reproduce your issue. The column template does not disappear upon re-binding the grid. I'm attaching a sample for your reference which you may modify and try reproducing the issue on it. If you have any further questions, please let me know.

    Regards,

    Tsanna

    columnTemplate.zip
Reply Children