{"action":"created","issue":{"url":"https://api.github.com/repos/NonFactors/MVC5.Grid/issues/160","repository_url":"https://api.github.com/repos/NonFactors/MVC5.Grid","labels_url":"https://api.github.com/repos/NonFactors/MVC5.Grid/issues/160/labels{/name}","comments_url":"https://api.github.com/repos/NonFactors/MVC5.Grid/issues/160/comments","events_url":"https://api.github.com/repos/NonFactors/MVC5.Grid/issues/160/events","html_url":"https://github.com/NonFactors/MVC5.Grid/issues/160","id":394890478,"node_id":"MDU6SXNzdWUzOTQ4OTA0Nzg=","number":160,"title":"Reloading Grid with variable in controller","user":{"login":"junrikson","id":5647735,"node_id":"MDQ6VXNlcjU2NDc3MzU=","avatar_url":"https://avatars3.githubusercontent.com/u/5647735?v=4","gravatar_id":"","url":"https://api.github.com/users/junrikson","html_url":"https://github.com/junrikson","followers_url":"https://api.github.com/users/junrikson/followers","following_url":"https://api.github.com/users/junrikson/following{/other_user}","gists_url":"https://api.github.com/users/junrikson/gists{/gist_id}","starred_url":"https://api.github.com/users/junrikson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junrikson/subscriptions","organizations_url":"https://api.github.com/users/junrikson/orgs","repos_url":"https://api.github.com/users/junrikson/repos","events_url":"https://api.github.com/users/junrikson/events{/privacy}","received_events_url":"https://api.github.com/users/junrikson/received_events","type":"User","site_admin":false},"labels":[{"id":145617871,"node_id":"MDU6TGFiZWwxNDU2MTc4NzE=","url":"https://api.github.com/repos/NonFactors/MVC5.Grid/labels/question","name":"question","color":"c7def8","default":true}],"state":"open","locked":false,"assignee":{"login":"Muchiachio","id":6647444,"node_id":"MDQ6VXNlcjY2NDc0NDQ=","avatar_url":"https://avatars3.githubusercontent.com/u/6647444?v=4","gravatar_id":"","url":"https://api.github.com/users/Muchiachio","html_url":"https://github.com/Muchiachio","followers_url":"https://api.github.com/users/Muchiachio/followers","following_url":"https://api.github.com/users/Muchiachio/following{/other_user}","gists_url":"https://api.github.com/users/Muchiachio/gists{/gist_id}","starred_url":"https://api.github.com/users/Muchiachio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Muchiachio/subscriptions","organizations_url":"https://api.github.com/users/Muchiachio/orgs","repos_url":"https://api.github.com/users/Muchiachio/repos","events_url":"https://api.github.com/users/Muchiachio/events{/privacy}","received_events_url":"https://api.github.com/users/Muchiachio/received_events","type":"User","site_admin":false},"assignees":[{"login":"Muchiachio","id":6647444,"node_id":"MDQ6VXNlcjY2NDc0NDQ=","avatar_url":"https://avatars3.githubusercontent.com/u/6647444?v=4","gravatar_id":"","url":"https://api.github.com/users/Muchiachio","html_url":"https://github.com/Muchiachio","followers_url":"https://api.github.com/users/Muchiachio/followers","following_url":"https://api.github.com/users/Muchiachio/following{/other_user}","gists_url":"https://api.github.com/users/Muchiachio/gists{/gist_id}","starred_url":"https://api.github.com/users/Muchiachio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Muchiachio/subscriptions","organizations_url":"https://api.github.com/users/Muchiachio/orgs","repos_url":"https://api.github.com/users/Muchiachio/repos","events_url":"https://api.github.com/users/Muchiachio/events{/privacy}","received_events_url":"https://api.github.com/users/Muchiachio/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2018-12-30T18:04:59Z","updated_at":"2018-12-31T07:18:25Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hi there,\r\n\r\nActually this is not an issue, but is this possible.\r\n\r\nI have partial view in Controller like this \r\n```\r\n        [HttpGet]\r\n        public PartialViewResult RemainingsGrid(Guid MasterCustomerId, Guid MasterWarehouseId)\r\n        {\r\n            return PartialView(\"_RemainingsGrid\", ExtendedModels.GetRemaining().OrderByDescending(x => x.WarehouseInput.Code)\r\n                .Where(x => (x.WarehouseInput.MasterCustomerId == MasterCustomerId) && (x.WarehouseInput.MasterWarehouseId == MasterWarehouseId)));\r\n        }\r\n```\r\n\r\nAnd called in view like this \r\n```\r\n                            <div id=\"RemainingsGrid\" class=\"box-body\" style=\"overflow:auto; white-space: nowrap\">\r\n                                @Html.AjaxGrid(Url.Action(\"RemainingsGrid\", new { MasterCustomerId = Html.ValueFor(model => model.MasterCustomerId), MasterWarehouseId = Html.ValueFor(model => model.MasterWarehouseId) }))\r\n                            </div>\r\n```\r\n\r\nIs it possible to do ajax reload with changing variable in controller?\r\nExample \r\n```\r\n        $(\"#MasterWarehouseId\").on(\"change\", function () {\r\n            $('#RemainingTable').mvcgrid({\r\n                reload: true\r\n            });\r\n        }).change();\r\n```\r\n\r\nThat's wont work because new value wont updated while reload. Is is possible to do that?"},"comment":{"url":"https://api.github.com/repos/NonFactors/MVC5.Grid/issues/comments/450615353","html_url":"https://github.com/NonFactors/MVC5.Grid/issues/160#issuecomment-450615353","issue_url":"https://api.github.com/repos/NonFactors/MVC5.Grid/issues/160","id":450615353,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDYxNTM1Mw==","user":{"login":"junrikson","id":5647735,"node_id":"MDQ6VXNlcjU2NDc3MzU=","avatar_url":"https://avatars3.githubusercontent.com/u/5647735?v=4","gravatar_id":"","url":"https://api.github.com/users/junrikson","html_url":"https://github.com/junrikson","followers_url":"https://api.github.com/users/junrikson/followers","following_url":"https://api.github.com/users/junrikson/following{/other_user}","gists_url":"https://api.github.com/users/junrikson/gists{/gist_id}","starred_url":"https://api.github.com/users/junrikson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junrikson/subscriptions","organizations_url":"https://api.github.com/users/junrikson/orgs","repos_url":"https://api.github.com/users/junrikson/repos","events_url":"https://api.github.com/users/junrikson/events{/privacy}","received_events_url":"https://api.github.com/users/junrikson/received_events","type":"User","site_admin":false},"created_at":"2018-12-31T07:18:25Z","updated_at":"2018-12-31T07:18:25Z","author_association":"CONTRIBUTOR","body":"Owh ok, \r\n\r\nThat's why I can't find `$('.mvc-grid').mvcgrid();` I will take a look and post a new question if found a problem. Thank you."}}
{"actor":{"display_login":"junrikson"}}