Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-editing changed value with autoSave via JsonRest shows original value #309

Open
usethe4ce opened this issue Oct 13, 2012 · 1 comment

Comments

@usethe4ce
Copy link

grid.set("store", new JsonRest({ target: "/whatever" }));
grid.set("columns", [
    editor({
        field: "name",
        label: "name",
        autoSave: true
    }, "text", "click")
]);

As illustrated above, make a grid with an editor on a text column. Click the column, change the value, save the change. The change gets PUT to the REST server. Now click to edit again. The edit box shows the original value!

BUT this doesn't happen if you wrap the JsonRest in a Cache. Nor does it happen if you turn off getBeforePut, which is my workaround of choice at present.

@amuraco
Copy link
Contributor

amuraco commented Oct 19, 2012

Try wrapping the JsonRest in Observable, it might fix the situation you have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants