简体   繁体   中英

Bootstrap Table remove row if column have no data

Hi have this WCF Service and consuming that is working. My problem is column 7 may be empty, so in the client side i want to remove all rows that have column 7 empty. 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

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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