DataView .show(itemid) does not show when paged

using dataview.show(itemid) doesn’t show item if item is in another page.
Any work around/fix? :exclamation:

Best regards!

Juan

Juan,

show() method doesn’t change page. You need to select the necessary page by the following approach:

dataview.config.pager.select(pageIndex);

and then call show method:

[code]
var index = data.indexById(itemId);
var pageNumber = Math.ceil((index+1)/21); /21 is page size/

data.config.pager.select(pageNumber-1);

data.show(itemId);[/code]

Hey Alexandra, the page change works lika a charm, but: dataview.show(itemId); only works on the first page, any clue? :confused:

Hi,

we have not reproduced the problem locally. Could you attach the sample ?