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
385
How do I Make the first row group fixed in the igx tree grid and exclude it from sorting
posted

Hi,

I have a scenario where I have to display a row group all time at the top of list as fixed in the tree grid and should exclude it from sorting the list of row groups as it always have to stay on top.

can you help me with this?

Thanks,

Mani

Parents
No Data
Reply
  • 2680
    Offline posted
    Hello Mani,

     

    Thank you for posting to Infragistics Community.

     

    I have been looking into your question and created a small sample with an IgxTreeGrid demonstrating row pinning and sortable columns. You can find it here.

     

    To start with, you can enable row pinning by initializing an IgxActionStrip component in the context of Tree Grid, for example:

     

    <igx-action-strip #actionStrip>
            <igx-grid-pinning-actions></igx-grid-pinning-actions>
        </igx-action-strip>

     

    You could read all about the row pinning functionality in its dedicated documentation topic here.

     

    In the sample, you can observe how the tree grid behaves upon sorting when there are some pinned rows. The pinned rows are affected by the sorting, however they remain fixed on their position and are only sorted between them. This is the tree grid’s default behavior and it seems to correspond with your requirement.

     

    In case of any other questions, please do not hesitate to ask.

     

    Sincerely,
    Bozhidara Pachilova
    Associate Software Developer
Children