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
15
Choosing the order for multiple sorted columns
posted

I'm trying to have two columns sorted when the grid is loading: Rank, and Date.  I would like it to be sorted first by rank and then by date.  How can I configure this on igGrid?  Right now it sorts by whatever column is in the grid first but I would like the Date column to be to the left but to sort by the Rank column first.  What I'm doing right now is

                features.
                    Sorting().
                    Mode(SortingMode.Multiple)
                    .ColumnSettings(settings =>
                    {
                        settings.ColumnSetting().ColumnKey("Rank").CurrentSortDirection("descending");
                        settings.ColumnSetting().ColumnKey("Date").CurrentSortDirection("descending");
                        });

Parents
No Data
Reply Children
No Data