Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing events in custom dstore using WebSocket and dgrid

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

Code file rachet-store.js

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

Problem is if the wsStore is used and If i delete a row on first or second page in the datagrid, the datagrid is notified and refresh itself. But if I delete a row on the third or any other page, the store is not refreshed.

I think the problem could be somewhere with the sort(), because using that how the Grid (or Pagination) works. (But its just a guess ...)

So, the question is, what did I do wrong?

like image 984
Petr Avatar asked Jul 22 '16 10:07

Petr


1 Answers

dstore provides a flexible selection of stores out of the box, but sometimes, it is necessary to create a custom store to better suit the needs of an application. This is a tutorial for doing just that. For our example, we create a store around the GitHub API v3 for Gists.

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

like image 160
Anurag_Soni Avatar answered Sep 23 '22 17:09

Anurag_Soni