diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/api/data-tables-invoker-api.jag b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/api/data-tables-invoker-api.jag index a0ddd0e294f..146abcf0d06 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/api/data-tables-invoker-api.jag +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/api/data-tables-invoker-api.jag @@ -74,6 +74,7 @@ if (uriMatcher.match("/{context}/api/data-tables/invoker/filters")) { } //Adding policy compliance result.compliance = ["MONITOR", "ENFORCE", "WARN", "BLOCK"]; + result.depStatus = ["Empty", "Assigned", "Pushed", "Removed"]; response["status"] = 200; response["content"] = result; response["contentType"] = "application/json"; diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.data-tables-extended/public/js/dataTables.extended.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.data-tables-extended/public/js/dataTables.extended.js index d33cc3b4dfe..7422a3c1f3c 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.data-tables-extended/public/js/dataTables.extended.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.data-tables-extended/public/js/dataTables.extended.js @@ -134,6 +134,14 @@ $.fn.datatables_extended = function (settings) { var compliance = cachedFilterRes.compliance[i]; select.append('') } + } else if (filterColumn.eq(column.index()).hasClass('data-dep-status')) { + for(i = 0; i < cachedFilterRes.deviceTypes.length; i++){ + var depStatus = cachedFilterRes.depStatus[i]; + select.append('') + } + } else if (filterColumn.eq(column.index()).hasClass('data-boolean')) { + select.append(''); + select.append(''); } else if ($(column.nodes()).attr('data-search')) { var values = []; column.nodes().unique().sort().each(function (d, j) { diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.data-tables-extended/public/js/dataTables.extended.serversidepaging.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.data-tables-extended/public/js/dataTables.extended.serversidepaging.js index 85af438c1cb..58a26211d40 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.data-tables-extended/public/js/dataTables.extended.serversidepaging.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.data-tables-extended/public/js/dataTables.extended.serversidepaging.js @@ -202,6 +202,14 @@ $.fn.datatables_extended_serverside_paging = function (settings, url, dataFilter var compliance = cachedFilterRes.compliance[i]; select.append('') } + } else if (filterColumn.eq(column.index()).hasClass('data-dep-status')) { + for(i = 0; i < cachedFilterRes.deviceTypes.length; i++){ + var depStatus = cachedFilterRes.depStatus[i]; + select.append('') + } + } else if (filterColumn.eq(column.index()).hasClass('data-boolean')) { + select.append(''); + select.append(''); } else if ($(column.nodes()).attr('data-search')) { var titles = []; column.nodes().unique().sort().each(function (d, j) {