Note that there are some explanatory texts on larger screens.

plurals
  1. POdgrid's OnDemandGrid keeps sending requests to the server
    primarykey
    data
    text
    <p>I have an OnDemandGrid setup to display product data (called parts) for a project i am working on. I currently have only two entries in the product database. </p> <p>My OnDemandGrid is setup with only the basic options: store, and columns. I am hoping it will be a virtual scrolling grid. the store was setup as a JsonRest store, with Cache </p> <p>what happens when i open up the page and startup the grid is, the grid keeps sending requests to the server for data continuously - approximately 2 requests per second. </p> <p>I also realize that for a grid with only two rows, it has a scrollbar on the right. when i try to use this scrollbar to scroll, I find that the grid seems to flicker and reset itself. many times. </p> <p>I suspect the virtual scroll feature is doing something funky, somehow not acknowledging that there are only two entries. can some one help me out in this? am willing to provide more details should that be necessary. </p> <p>Here is my code by the way:</p> <pre><code>require(["dgrid/OnDemandGrid", "dojo/store/Memory", "dojo/store/Cache"], function(OnDemandGrid, Memory, Cache){ var partsCache = new Memory(); App.Store.parts = new Cache(partsMaster, partsCache); var grid = new OnDemandGrid({ store: App.Store.parts, columns: { name:'Part Name', part_no:'Part Number' }, }, "grid"); grid.startup(); }) </code></pre> <p>partsMaster is a JsonRest store defined earlier (global at the moment - taking the grid for a spin) in the code. I've done some tests to safely determine that JsonRest is not the issue.</p> <p>here is a screenshot of the grid currently (note the existence of the scrollbar): <img src="https://i.stack.imgur.com/JoA1C.png" alt="enter image description here"></p> <p>Any help is appreciated!</p> <p>EDIT: attached is a screen shot of the first request response header from chrome: <img src="https://i.stack.imgur.com/Sgm2N.png" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload