解决方案 »

  1.   

    自己解决 , 晚上资料太少 ,留名下 var table;
    $("button[name='btnType']").bind("click", function () { //按钮 触发table重新请求服务器
            table.fnDraw();
        });  $(function () {
                 table= $('#PeopleListTable').dataTable({
                    bServerSide: true,
                    bProcessing: true,
                    sServerMethod: "POST",
                    sAjaxSource: "@Url.Action("All", "Person")",
    "fnServerParams": function (aoData) {  //查询条件
                        aoData.push(
                            { "name": "EventNO", "value": $("#EventNO").val() },
                            { "name": "EventContent", "value": $("#EventContent").val() },
                            );
                    },
                    aoColumns: [
                        { mData: "EventNO", sTitle: "First Name" },
                        { mData: "EventContent", sTitle: "Last Name"},
                        { mData: "BirthDateFormatted", sTitle: "Birth Date",iDataSort:3 }, //Allow post TSQL server side processing
                        { mData: "BirthDate", bVisible:false },
                        { mData: "Weight", sTitle: "Weight" },
                        { mData: "Height", sTitle: "Height" },
                        { mData: "Children", sTitle: "Children" }                ]
                });
            });