get all rows from the current page in datatable

Hi, suppose we have a datatable with 1000 rows and grouped in pages with size 10. How to get the only rows of the current page or page x?
Thanks

There’s no ready solution. I can suggest using thesize property from the pager’s config to calculate the index of the first visible row and then get the others:

http://webix.com/snippet/60e87a3e

Actually, you can use table.data.getRange() to get all objects from a current page ( when range borders are not provided, they will be aligned with current page )

thanks you both.

i’m using something like this :
$$(“tabData”).selectRange(
$$(“tabData”).getIdByIndex(
$$(“tabData”).config.pager.page*$$(“tabData”).config.pager.size),
$$(“tabData”).getIdByIndex( $$(“tabData”).config.pager.page*$$(“tabData”).config.pager.size + $$(“tabData”).config.pager.size - 1))