{"action":"created","issue":{"url":"https://api.github.com/repos/openpsa/jsgrid/issues/106","labels_url":"https://api.github.com/repos/openpsa/jsgrid/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/openpsa/jsgrid/issues/106/comments","events_url":"https://api.github.com/repos/openpsa/jsgrid/issues/106/events","html_url":"https://github.com/openpsa/jsgrid/issues/106","id":56836871,"number":106,"title":"grid not updating when editing","user":{"login":"bchr02","id":10158167,"avatar_url":"https://avatars.githubusercontent.com/u/10158167?v=3","gravatar_id":"","url":"https://api.github.com/users/bchr02","html_url":"https://github.com/bchr02","followers_url":"https://api.github.com/users/bchr02/followers","following_url":"https://api.github.com/users/bchr02/following{/other_user}","gists_url":"https://api.github.com/users/bchr02/gists{/gist_id}","starred_url":"https://api.github.com/users/bchr02/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bchr02/subscriptions","organizations_url":"https://api.github.com/users/bchr02/orgs","repos_url":"https://api.github.com/users/bchr02/repos","events_url":"https://api.github.com/users/bchr02/events{/privacy}","received_events_url":"https://api.github.com/users/bchr02/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-02-06T16:53:02Z","updated_at":"2015-02-06T20:07:30Z","closed_at":null,"body":"I am using datatype json to pull data from back-end server and doing edits like this:\r\n````javascript\r\n$.extend(true, $.jgrid.edit, {\r\n\trecreateForm: true,\r\n\turl: \"./test.php\",\r\n\tmtype: \"POST\",\r\n\teditData: {route:'edit'},\r\n});\r\n````\r\n\r\nWhat I realized is that searching wouldn't work with this configuration unless I use loadonce: true. So I enabled that but now whenever I make an edit the grid does not update with the changes. On the other hand the server does get updated.\r\n\r\nI created a demo site here: http://www.tesllc.aero/temp/jqgrid/\r\n\r\nThis is what the php page looks like. It's just to demonstrate the issue.\r\n````php\r\n<?php\r\n\r\nheader('Content-Type: application/json');\r\n\r\n$route = $_POST[\"route\"];\r\n\r\n$json = '[{\r\n\t    \"CQD_AUTO_KEY\": \"id0\",\r\n\t    \"COMPANY_NAME\": \"Company 0\",\r\n\t    \"COMPANY_REF_NUMBER\": \"ref 1\",\r\n\t    \"SALESPERSON_NAME\": \"Brad\",\r\n\t    \"PN\": \"2135s42354f\"\r\n\t}, {\r\n\t    \"CQD_AUTO_KEY\": \"id1\",\r\n\t    \"COMPANY_NAME\": \"Company 1\",\r\n\t    \"COMPANY_REF_NUMBER\": \"ref 1\",\r\n\t    \"SALESPERSON_NAME\": \"Brad\",\r\n\t    \"PN\": \"2135s42354f\"\r\n\t}, {\r\n\t    \"CQD_AUTO_KEY\": \"id2\",\r\n\t    \"COMPANY_NAME\": \"Company 1\",\r\n\t    \"COMPANY_REF_NUMBER\": \"ref 1\",\r\n\t    \"SALESPERSON_NAME\": \"Brad\",\r\n\t    \"PN\": \"2135s42354f\"\r\n\t}, {\r\n\t    \"CQD_AUTO_KEY\": \"id3\",\r\n\t    \"COMPANY_NAME\": \"Company 3\",\r\n\t    \"COMPANY_REF_NUMBER\": \"ref 1\",\r\n\t    \"SALESPERSON_NAME\": \"Brad\",\r\n\t    \"PN\": \"2135s42354f\"\r\n\t}, {\r\n\t    \"CQD_AUTO_KEY\": \"id4\",\r\n\t    \"COMPANY_NAME\": \"Company 4\",\r\n\t    \"COMPANY_REF_NUMBER\": \"ref 1\",\r\n\t    \"SALESPERSON_NAME\": \"Brad\",\r\n\t    \"PN\": \"2135s42354f\"\r\n\t}, {\r\n\t    \"CQD_AUTO_KEY\": \"id5\",\r\n\t    \"COMPANY_NAME\": \"Company 5\",\r\n\t    \"COMPANY_REF_NUMBER\": \"ref 1\",\r\n\t    \"SALESPERSON_NAME\": \"Brad\",\r\n\t    \"PN\": \"2135s42354f\"\r\n\t}, {\r\n\t    \"CQD_AUTO_KEY\": \"id6\",\r\n\t    \"COMPANY_NAME\": \"Company 5\",\r\n\t    \"COMPANY_REF_NUMBER\": \"ref 1\",\r\n\t    \"SALESPERSON_NAME\": \"Brad\",\r\n\t    \"PN\": \"2135s42354f\"\r\n\t}, {\r\n\t    \"CQD_AUTO_KEY\": \"id7\",\r\n\t    \"COMPANY_NAME\": \"Company 0\",\r\n\t    \"COMPANY_REF_NUMBER\": \"ref 1\",\r\n\t    \"SALESPERSON_NAME\": \"Steve\",\r\n\t    \"PN\": \"2135s42354f\"\r\n\t}, {\r\n\t    \"CQD_AUTO_KEY\": \"id8\",\r\n\t    \"COMPANY_NAME\": \"Company 1\",\r\n\t    \"COMPANY_REF_NUMBER\": \"ref 1\",\r\n\t    \"SALESPERSON_NAME\": \"Steve\",\r\n\t    \"PN\": \"2135s42354f\"\r\n\t}, {\r\n\t    \"CQD_AUTO_KEY\": \"id9\",\r\n\t    \"COMPANY_NAME\": \"Company 1\",\r\n\t    \"COMPANY_REF_NUMBER\": \"ref 1\",\r\n\t    \"SALESPERSON_NAME\": \"Steve\",\r\n\t    \"PN\": \"2135s42354f\"\r\n\t}, {\r\n\t    \"CQD_AUTO_KEY\": \"id10\",\r\n\t    \"COMPANY_NAME\": \"Company 3\",\r\n\t    \"COMPANY_REF_NUMBER\": \"ref 1\",\r\n\t    \"SALESPERSON_NAME\": \"Steve\",\r\n\t    \"PN\": \"2135s42354f\"\r\n\t}, {\r\n\t    \"CQD_AUTO_KEY\": \"id11\",\r\n\t    \"COMPANY_NAME\": \"Company 4\",\r\n\t    \"COMPANY_REF_NUMBER\": \"ref 1\",\r\n\t    \"SALESPERSON_NAME\": \"Steve\",\r\n\t    \"PN\": \"2135s42354f\"\r\n\t}, {\r\n\t    \"CQD_AUTO_KEY\": \"id12\",\r\n\t    \"COMPANY_NAME\": \"Company 5\",\r\n\t    \"COMPANY_REF_NUMBER\": \"ref 1\",\r\n\t    \"SALESPERSON_NAME\": \"Steve\",\r\n\t    \"PN\": \"2135s42354f\"\r\n\t}, {\r\n\t    \"CQD_AUTO_KEY\": \"id13\",\r\n\t    \"COMPANY_NAME\": \"Company 5\",\r\n\t    \"COMPANY_REF_NUMBER\": \"ref 1\",\r\n\t    \"SALESPERSON_NAME\": \"Steve\",\r\n\t    \"PN\": \"2135s42354f\"\r\n\t}]';\r\n\t\r\n\r\nif ($route == 'edit') {\r\n\r\n\techo(\"{}\");\r\n\r\n} else if ($route == 'load') {\r\n\t\r\n\techo($json);\r\n\t\r\n} else {\r\n\t\r\n\techo(\"{}\");\r\n\t\r\n}\r\n\r\n\r\n?>\r\n````"},"comment":{"url":"https://api.github.com/repos/openpsa/jsgrid/issues/comments/73303642","html_url":"https://github.com/openpsa/jsgrid/issues/106#issuecomment-73303642","issue_url":"https://api.github.com/repos/openpsa/jsgrid/issues/106","id":73303642,"user":{"login":"bouks","id":2734718,"avatar_url":"https://avatars.githubusercontent.com/u/2734718?v=3","gravatar_id":"","url":"https://api.github.com/users/bouks","html_url":"https://github.com/bouks","followers_url":"https://api.github.com/users/bouks/followers","following_url":"https://api.github.com/users/bouks/following{/other_user}","gists_url":"https://api.github.com/users/bouks/gists{/gist_id}","starred_url":"https://api.github.com/users/bouks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bouks/subscriptions","organizations_url":"https://api.github.com/users/bouks/orgs","repos_url":"https://api.github.com/users/bouks/repos","events_url":"https://api.github.com/users/bouks/events{/privacy}","received_events_url":"https://api.github.com/users/bouks/received_events","type":"User","site_admin":false},"created_at":"2015-02-06T20:07:30Z","updated_at":"2015-02-06T20:07:30Z","body":"Why would you like to reload the grid after editing ? It takes much network and server ressources..."}}