Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
435
Firefox 21 not obeying igGrid("saveChanges")
posted

Having a weird issue with the igGrid.

Chrome/IE(!)/Safari work fine.

Firefox 21.0 - is not obeying $("#grid").igGrid("saveChanges") - unless you step through and debug with Firebug.

When I step through and give the page some "time" to submit by the act of stepping through, the saveChanges works correctly. Have you ever run into this or have a workaround?

Parents
  • 435
    posted

    It seems that Firefox does not like the JSON the grid puts out to push to  the Update Url.

    It generates things like:

    "[{\"type\":\"cell\",\"rowId\":\"d98e577f-f695-42b3-a9d5-fc7e358740b5\",\"tid\":\"313e\",\"col\":\"Wages\",\"value\":2},{\"type\":\"cell\",\"rowId\":\"7e06e3d4-7e0f-4b42-8397-42340e5d297e\",\"tid\":\"3eb1\",\"col\":\"Wages\",\"value\":2},{\"type\":\"cell\",\"rowId\":\"04740cb5-6d94-47fa-9c46-17c61614b6ac\",\"tid\":\"4534\",\"col\":\"Wages\",\"value\":2},{\"type\":\"cell\",\"rowId\":\"baa3c174-a556-452d-9528-562d7417daac\",\"tid\":\"8e35\",\"col\":\"Wages\",\"value\":32}]"

    When you actually validate this json against a validator - it doesn't like the "\" , if you remove the "\" from the json array it validates. Is there anyway to alter the generated json?

Reply Children
No Data