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
50
Igx Grid State Persistence for Multi Header Columns
posted

Hi Team,

I am using Version 9. I have implemented toolbar and columnHiding property using [showToolbar] and [columnHiding] for hiding. I am using Igx State directive to save the state and restore them. While restoring i am facing the below issues.

1. Multiheader Columns - Parent and Child columns are merged as single column

2. Igx switch is not appearing only the values true or false is displayed.

3. pipes used are not being applied.

Please find a sample structure of my grid - Infragistics Angular Components - StackBlitz

Kindly let me know how to resolve these issues

  • 1560
    Offline posted

    Hello,

    I have been looking into your question, however, what I could say is that Ignite UI for Angular version 9 is considered retired and no longer eligible for Developer Support Services.

    Also, regarding your first requirement, I have determined that restoring the state of multi-column headers was introduced in version 12.2.0. Having this in mind, in order to be able to take advantage of this feature, my suggestion is to update to the latest version.

    Regarding the 2nd and 3rd requirements, my assumption is that you are applying both - igx-switch and pipe formatting via the cell templates. So, as it is mentioned in the Angular Grid State Persistence topic,  IgxGridState will not persist columns templates, column formatters, etc. by default. Restoring any of these can be achieved with code on application level by handling the columnInit event and setting the required template or format programmatically. A demo that demonstrates a possible approach could be found here.

    If you require any further assistance on the matter, please let me know.


    Sincerely,
    Teodosia Hristodorova
    Software Developer