# The Repeater layout work incorrectly

**URL:** <https://forum.wixstudio.com/t/the-repeater-layout-work-incorrectly/60700>\
**Category:** Ask the community\
**Tags:** question, code, wix, wix-studio\
**Created:** [July 10, 2024, 2:10pm UTC](https://forum.wixstudio.com/t/the-repeater-layout-work-incorrectly/60700 "2024-07-10T14:10:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sonpv-hut](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/sonpv-hut/32/38235_2.png) [@sonpv-hut](https://forum.wixstudio.com/u/sonpv-hut)\
**Post date:** [July 10, 2024, 2:10pm UTC](https://forum.wixstudio.com/t/the-repeater-layout-work-incorrectly/60700/1 "2024-07-10T14:10:23Z")

</div>

**Question:**  
I have already created a DatasetA and set the limited items as 4. I tried to connect the Repeater to DatasetA. In each Repeater Item, I added a button with the function to add a corresponding product to the Cart by Code. But I don’t know why the repeater works incorrectly. I still show 5 items as before setting limited items, and at the 5th item, the Add product button also not works as other repeater items.

**Product:**  
[Which editor or feature is your question most relevant to? e.g. Wix Editor, Wix Studio Editor, Editor X.]

**What are you trying to achieve:**

1. I need the repeater to show 4 items as I set the limit for connected dataset.
2. The Repeater have to show 2 pages as repeater’s introduce

**What have you already tried:**  
[Share resources, forum topics, articles, or tutorials you’ve already used to try and answer your question.]

**Additional information:**  
Please help to review the video : [https://drive.google.com/file/d/1hRAHQz0WC1Jg508RlQAgi7962zcoLou6/view?usp=sharing](https://drive.google.com/file/d/1hRAHQz0WC1Jg508RlQAgi7962zcoLou6/view?usp=sharing)  
I can’t capture my desktop screen by other software ☹

---

<div class="post-metadata">

**Author:** ![noahlovell](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/noahlovell/32/118920_2.png) [@noahlovell](https://forum.wixstudio.com/u/noahlovell)\
**Post date:** [July 10, 2024, 3:56pm UTC](https://forum.wixstudio.com/t/the-repeater-layout-work-incorrectly/60700/2 "2024-07-10T15:56:56Z")

</div>

Are you able to share the code you’re using?

While I know generally you can combine code and datasets, I know a lot of developers here would recommend either going for a complete code solution or for a complete dataset.

Either way, if you’re able to share your code, that would help a lot 🙂

---

<div class="post-metadata">

**Author:** ![sonpv-hut](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/sonpv-hut/32/38235_2.png) [@sonpv-hut](https://forum.wixstudio.com/u/sonpv-hut)\
**Post date:** [July 11, 2024, 2:18pm UTC](https://forum.wixstudio.com/t/the-repeater-layout-work-incorrectly/60700/3 "2024-07-11T14:18:32Z")

</div>

> [@sonpv-hut](#):
>
> 1. The Repeater has to show 2 pages as repeater’s introduce

Hi Noahlovell,

Thank you for your response, It’s my mistake 🙂 Based on your comment, I have already checked my source code code and found the repeater’s loading function. Now it works 🙂

Thanks,  
SonPV
