AnsweredAssumed Answered

Dojo Enhanced Grid Sort on Selection

Question asked by hko@tfnsw on Dec 1, 2019
Latest reply on Dec 1, 2019 by hko@tfnsw

Hi, I have an Enhanced Grid with the Indirect Selecion plugin, so the users can select and deselect rows with checkboxes. My question is, is there a way I can make the grid to sort on the selection?

 

 

In the image above I can sort on the column "crash ID". But is there a way I can click on the header (i.e. where the red question mark is) so that I can sort by checkboxes/selections?

 

My grid creation code is as follows:

 

                this.resultsGrid = new EnhancedGrid({
                    style: 'height: 100%; width: 100%',
                    id: 'resultsGrid',
                    structure: layout,
                    plugins: {indirectSelection: {headerSelector:truewidth:"100px"styles:"text-align: center;"}},
                    rowSelector: '20px',
                    keepSelection: true
                });

Outcomes