Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

194
Visualizações
Syncfusion Grid Grouping Sort issue

I have an EJ2 grid that is grouped. Before the grid is rendered, the data from the business class is sorted by sequence number which is the requirement. When the grid renders the data, the grouping is changing the initial sort order to alphabetical. I have not been able to change the order back to by Sequence number. Any help would be greatly appreciated. Below is the grid definition.

        var grid = new ej.grids.Grid({
            dataSource: gridDS,
            allowExcelExport: true,
            allowPdfExport: true,
            toolbar: ['ExcelExport', 'PdfExport', 'CsvExport', "Search"],
            allowGrouping: true,
            dataBound: bound,
            allowSorting: true,
            allowMultiSorting: true,
            groupSettings: { captionTemplate: '#captiontemplate', showDropArea: false, columns: ['DistrictTypeName', 'DistrictName'] },
            sortSettings: {
                columns:
                    [{ field: 'DistrictTypeSequence', direction: 'Ascending' },
                     { field: 'DistrictSequence',     direction: 'Ascending' },
                     { field: 'RaceSequence',         direction: 'Ascending' }]
            },
            columns: [
                { field: "DistrictTypeId", visible: false },
                { field: "DistrictId", visible: false},
                { field: "RaceId", visible: false },
                { field: "DistrictTypeName", headerText: "District Type", width: 90},
                { field: "DistrictName",     headerText: "District",      width: 90},
                { field: "RaceName",         headerText: "",              width: 90 },
                { field: "DistrictTypeSequence", visible: false },
                { field: "DistrictSequence",     visible: false },
                { field: "RaceSequence", visible: false },
                {
                    headerText: "",
                    template: "#viewTemplate",
                    textAlign: "center",
                    width: 15
                },
                {
                    headerText: "",
                    template: "#editTemplate",
                    textAlign: "center",
                    width: 15
                },
                {
                    headerText: "",
                    template: "#deleteTemplate",
                    textAlign: "center",
                    width: 15
                },
            ],
        });

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda