Giter Club home page Giter Club logo

Comments (7)

kriszyp avatar kriszyp commented on September 27, 2024

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.

afeltahm avatar afeltahm commented on September 27, 2024

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.

kriszyp avatar kriszyp commented on September 27, 2024

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.

afeltahm avatar afeltahm commented on September 27, 2024

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.

kriszyp avatar kriszyp commented on September 27, 2024

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.

 avatar commented on September 27, 2024

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.

 avatar commented on September 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.