[bug] ui.pager doesn't refresh properly when no record returned from server

Hi,

I found ui.pager won’t refresh itself when no record found.
It looks quite strange to user.

sample: https://snippet.webix.com/ifqld9px

  1. By default, it shows: << < 1 2 3 > >> Page 1 of 3, 6 items and two records shown

  2. If I enter a X in Title filter input, then no record found, however pager is not changed, still shows Page 1 of 3, 6 items. I think it should show something like Page 0 of 0, 0 items, and without pages.

  3. If I enter other filter with records found, pager will refresh properly

Best Regards
Wicky

Hello,

Webix pager is designed to work with some existing data.
You can redefine its template, if you want to show some “no data” text after filtering:

https://snippet.webix.com/oj18xwb5