YaoRaoLov 2015-10-13 17:56 采纳率: 50%
浏览 29

Ajax动态JSON JQuery

I am new to jquery and I really need help on a quick bug. Below is the code

success: function(data,status)
var records = [];   
records = JSON.stringify(data);
var newr = JSON.parse(records);
$('#tablegrid').dynatable({
  dataset: {
   records: newr,
   perPageDefault: perpage(25)},
   features: {paginate: true, recordCount:true,sorting:true,search:true}
    });
    var table = $('#tablegrid').data('dynatable');
     table.records.updateFromJson(newr);
      table.dom.update();

When I click on search with text in the search bar, The table updates perfectly using the data in the success function and that is what I want. But when I click on page two , the table clears and it says "Showing 0 of 0 records" (filtered from 107 records). Somehow,the filtering disappears somehow. Could someone please help me???? I have been working on this for hours? :(. The goal is to click on page two and see more filtered results. Again, the goal is click on page 2 to see the filtered results. The problem is that it is not working properly

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥100 求三轴之间相互配合画圆以及直线的算法
    • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
    • ¥15 名为“Product”的列已属于此 DataTable
    • ¥15 安卓adb backup备份应用数据失败
    • ¥15 eclipse运行项目时遇到的问题
    • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
    • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
    • ¥15 自己瞎改改,结果现在又运行不了了
    • ¥15 链式存储应该如何解决
    • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站