// Setup dxGrid with data from Django function OrchestrationGrid(workflows) { console.log(workflows) $("#WorkflowGridContainer").dxDataGrid({ dataSource: workflows, 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: "pk", dataType: "integer", caption: "Cluster" }, { dataField: "fields.online", dataType: "string", caption: "Online" }, { dataField: "fields.bmc", dataType: "boolean", caption: "BMC" }, { dataField: "fields.wr_installed", dataType: "boolean", caption: "WR installed" }, { dataField: "fields.created_at", dataType: "datetime", format: "M/d/yyyy, HH:mm", caption: "Date Updated" } ] }); };