// Setup dxGrid with data from Django function FirmwareVersionGrid(firmware_versions) { $("#FirmwareGridContainer").dxDataGrid({ dataSource: firmware_versions, showColumnLines: false, showRowLines: true, rowAlternationEnabled: true, columnAutoWidth: true, showBorders: true, searchPanel: { visible: true, width: 240, placeholder: "Search..." }, groupPanel: { visible: true }, paging: { pageSize: 50 }, pager: { showPageSizeSelector: true, allowedPageSizes: [5, 10, 20], showInfo: true }, columns: [{ dataField: "id", dataType: "integer", caption: "Server ID" }, { dataField: "oam_hostname", dataType: "string", caption: "OAM Hostname" }, { dataField: "ilo_host_address", dataType: "string", caption: "ilo Host Address" }, { dataField: "intel_nic_firmware_version", dataType: "string", caption: "Firmware Version" }, { dataField: "date_completed", dataType: "datetime", format: "M/d/yyyy, HH:mm", caption: "Date Completed" }, { dataField: "date_last_failed", dataType: "datetime", format: "M/d/yyyy, HH:mm", caption: "Last failed on" } ] }); };