Comments (7)
If you want to avoid the GET request there are a couple options. You could set the grid.getBeforePut property to false. Or you could use the dojo/store/Cache wrapper with the JsonRest store to use a store level cache. If you are looking to get a PUT request rather than a POST request, you probably need to set the idProperty on the JsonRest store to a valid unique property on the objects. Does this help?
from dgrid.
Hello, thank you for the replies. Its not so much the number or type of requests that i'm concerned about, its more the fact that the request to store the document ( the POST / PUT ) seems to have exactly the same content as the original rather than to contain the updated information taken from the grid.
I'm not really sure that the comments above have resolved this. Thanks.
from dgrid.
I see, sorry for the misunderstanding. However, I am not able to reproduce this problem. When I setup an Editor with a checkbox and autoSave, the data that is sent to the server has a property value of true when the checkbox is checked and false otherwise. Do you think you could include a test case for this issue?
from dgrid.
Thank you for re-opening and no problem about the confusion. My code is quite embeded in my application and so might be difficult to pull out. I will see what i can do though. However, it sounds like you have a simple test case... does that use a JsonRest Store also? If so, would you mind making that available to me so that i could test it and perhaps see what the differences are with my code? Thanks.
from dgrid.
Yes, here is the latest test case for using the JsonRest store:
https://github.com/kriszyp/dgrid/blob/rest/test/JsonRest.html
It includes a column with autoSave on.
from dgrid.
For what it's worth, that updated test should be available in the master branch of the SitePen repository now as well.
Is this still an issue for you? Can you manage to reproduce it using the simple JsonRest test in the dgrid repository as a base?
from dgrid.
Closing this since we haven't heard back in a while. Feel free to open a new issue if you have further reproducible problems.
from dgrid.
Related Issues (20)
- ColumnSets with CompoundColumns and ColumnResizer does not always resize correctly.
- horizontal scrolling alignment issue dgrid
- horizontal HOT 1
- rowindex HOT 1
- Is this project still maintained? HOT 2
- DGrid 'select all' checkbox is not working as expected HOT 2
- OnDemandList does not refresh on store.setData HOT 2
- build issues with dojo 1.16 HOT 7
- Editor focusout handler is stopped when a row is removed
- CheckBox Editor does not work as expected in Safari HOT 3
- Removed row handing in Editor onblur HOT 2
- Editor: browser blur with active Select leads to bugged editor
- Update Intern from 3 to 4
- (ColumnSet +) CompoundColumns_findSortArrowParent(field) fails to find parent out of the 1st column set
- Website still points to v1.2.1
- Dgrid selector inconsistently working in touch screen devices like ipad dgrid/v1.1.0 HOT 10
- dgrid version 1.3.3 is breaking formatter function in dgrid HOT 2
- How to set dgrid editor checkbox readonly conditionally ?
- dgrid does not throw error on scroll (http-status-code) HOT 2
- dgrid.cell().element is undefined
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dgrid.