Bug in datatable count when count is smaller than pagesize

I think I found a bug the pager template. I have a datatable with a search. The pager indicates the total number of records found. When the resultset is smaller than the current page size, the template-function is not executed.

I have made a snippet to illustrate. To reproduce, flick the bottom buttons in this order:

  1. large
  2. medium
  3. small (template-function not executed)
  4. medium (template-function not executed)
  5. small (template-function not executed)
  6. large

http://webix.com/snippet/bbbf654e

Can someone confirm? Is there a way around this problem? Should I recreate my pager after every data load?

anyone?

Hello,

I can confirm the problem. The fix will be included into the next update. As the workaround please call render() for pager after data reloading:

$$("my-table").clearAll();
$$("my-table").parse(data);
$$("my-pager").render();

That seems to fix the issue for now, thank you!