Missing events in regular dstore using WebSocket and dgrid

I am trying to create my own Store, which should use WebSocket or REST (in case of WebSocket failure).

Rachet-store.js code file

It works almost perfectly. It also works without problems with REST (myRest).

The problem is that wsStore is used, and if I delete a row on the first or second page in a datagrid, then the datagrid is notified and updated. But if I delete the line on the third or any other page, the store will not be updated.

I think the problem might be somewhere with sort() , because the way Grid (or Pagination) works is used. (But this is just a hunch ...)

So the question is, what did I do wrong?

+43
javascript dojo websocket dgrid dstore
Jul 22 '16 at 10:15
source share
1 answer

dstore provides a flexible selection of stores out of the box, but sometimes you need to create a specialized store to better meet the needs of the application. This is a tutorial for this. In our example, we are creating the GitHub API v3 repository for Gists.

http://dstorejs.io/tutorials/custom_stores.html

+1
Nov 10 '16 at 11:40
source share



All Articles