Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

176
Views
Syncfusion Grid Not Loading Dates When Filtering

Using an syncfusion grid to render a table of data. When filtering the "Line Approved Date", the mini window remains in a loading state indefinitely.

enter image description here

The filter function is working for the other columns. Any ideas on how to make it so that the dates appear in filter window?

Here is some code for context:


//note - order of grouping header columns is hard coded
function GetColumns() {
    var output = [
        {
            field: "LineApprovedDate",
            headerText: "Line Approved Date",
            type: "date",
            format: { type: 'date', format: 'MM/dd/yyyy' },
            clipMode: 'EllipsisWithTooltip',
            width: 70
         }
    ];
            
    return output;
}

window.groupingHeader = function (args) {
    '<table class="e-table history-grid-group-headers" style="background: #fafafa;">' + '<tbody>' +
    '<td class="e-rowcell group-headercell" role="gridcell" aria-colindex="12">' 
    + (item.LineApprovedDate === null ? "" : moment(item.LineApprovedDate).format("MM/DD/YYYY"))+ '</td>' +
    '</tr >' + '</tbody></table>';
     return groupHeader;
}

//grid configurations
window.SetupGrid = function () {
    SetUpGroupingHeaderData();

    var opts = {
        dataSource: coData,
        allowSorting: true,
        allowFiltering: true,
        filterSettings: { type: 'Excel' },
        allowGrouping: true,
        groupSettings: {
            captionTemplate: '#groupingheader-template',
            showDropArea: false,
            columns: ["PoLineNumber"]
        },
        enableHover: false,
        allowSelection: false,
        height: GetHistoryGridHeight(),
        width: '100%',
        columns: GetColumns(),
        showColumnMenu: true,
        columnMenuItems: ['SortAscending', 'SortDescending', 'AutoFit', 'AutoFitAll', 'Filter'],
        enableVirtualization: true,
        allowResizing: true,
        resizeStop: function (args) {
            var index = args.column.index;
            $('.history-grid-group-headers td:nth-of-type(' + index + ')').outerWidth(args.column.width);
        },
        clipMode: "EllipsisWithTooltip",
        gridLines: "Both",
 
    }

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Checking the data from the API call showed that the date related data was being received as a string. Adding the following function converts the date related data to a date type.

data.forEach(function (d) {
    if (d.LineApprovedDate != null) {
         d.LineApprovedDate = new Date(d.LineApprovedDate);
    }
})

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!