简体   繁体   English

如果列中没有数据,引导表删除行

[英]Bootstrap Table remove row if column have no data

Hi have this WCF Service and consuming that is working. 嗨,有这个WCF服务正在使用。 My problem is column 7 may be empty, so in the client side i want to remove all rows that have column 7 empty. 我的问题是列7可能为空,因此在客户端,我想删除列7为空的所有行。 Any help will be welcome. 任何帮助都将受到欢迎。

function GetPedidosAll(muser) {
jQuery.ajax({
    cache: false,
    type: "GET",
    url: "/_vti_bin/XP/Requests.svc/GetPedidosListAll/" + muser +
         "/" + $("#sel_state").val() + "/" + $("#sel_project").val(),

    contentType: "application/json; charset=utf-8",
    dataType: "json",
    success: function (data) {
        $("#lista_pedidos").bootstrapTable({
            data: data
        });
    },
    error: function (jqXhr, status) {
        $("#img_Progress").hide();
        MessPopups("e", status.message);
    }
});}

Thank You, JL 谢谢你,JL

  success: function (data) {
        data = jQuery.grep(data, function (a) {
            return a.Permissao !== "";
        });

        $("#lista_pedidos").bootstrapTable({
            data: data
        });
    }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM