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?
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?
OK, the escape characters were a red herring - that wasn't the issue at all.
So it seems this is the issue with Firefox:
If you have a igGrid and you specify an update URL the post to the update needs a blocking call before it will hit. You can reproduce this easily by binding a infragistics jquery grid to a Json data source - providing the data source and update urls.
Load the grid - and allow updating. Update a cell, call igGrid("SaveChanges") on the click event of a button and then let your update url action execute
Firefox 21 will not reach the update url action at all, it will just ignore it like nothing happened.
To workaround this - add a blocking call. We first discovered this when we did an alert('hello') and it worked.
Subsequently we added a fake ajax call to make this work:
$("#grid").igGrid("saveChanges");$.ajax({ url: "", type: "GET", cache: false, async: false });