{"action":"created","issue":{"url":"https://api.github.com/repos/dsuryd/dotNetify/issues/9","repository_url":"https://api.github.com/repos/dsuryd/dotNetify","labels_url":"https://api.github.com/repos/dsuryd/dotNetify/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/dsuryd/dotNetify/issues/9/comments","events_url":"https://api.github.com/repos/dsuryd/dotNetify/issues/9/events","html_url":"https://github.com/dsuryd/dotNetify/issues/9","id":164549279,"number":9,"title":"problem when navigation property is introduced in model","user":{"login":"Ajitweb","id":5118787,"avatar_url":"https://avatars.githubusercontent.com/u/5118787?v=3","gravatar_id":"","url":"https://api.github.com/users/Ajitweb","html_url":"https://github.com/Ajitweb","followers_url":"https://api.github.com/users/Ajitweb/followers","following_url":"https://api.github.com/users/Ajitweb/following{/other_user}","gists_url":"https://api.github.com/users/Ajitweb/gists{/gist_id}","starred_url":"https://api.github.com/users/Ajitweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ajitweb/subscriptions","organizations_url":"https://api.github.com/users/Ajitweb/orgs","repos_url":"https://api.github.com/users/Ajitweb/repos","events_url":"https://api.github.com/users/Ajitweb/events{/privacy}","received_events_url":"https://api.github.com/users/Ajitweb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dsuryd/dotNetify/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2016-07-08T14:57:43Z","updated_at":"2016-10-03T13:08:48Z","closed_at":"2016-07-12T19:40:57Z","body":"Hi Dicky,\r\n\r\nGreat utility ! \r\nI am still in the learning curve.\r\nMy data model 'Company' contains the following navigation property \r\npublic virtual ICollection<Location> Locations { get; set; }\r\n\r\nIn the view model (which inherits from BaseVM), I have the following property\r\n       public IEnumerable<Company> Companys\r\n        {\r\n            get { return db.Companys.ToList();}\r\n        }\r\n\r\nOn execution, I don't get the data in the browser. I have stepped through the code and the data is being populated at the View Model.\r\nAs soon as I remove the navigation property from the Model, it works !\r\nWhat might I be doing wrong? \r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/dsuryd/dotNetify/issues/comments/251101207","html_url":"https://github.com/dsuryd/dotNetify/issues/9#issuecomment-251101207","issue_url":"https://api.github.com/repos/dsuryd/dotNetify/issues/9","id":251101207,"user":{"login":"Ajitweb","id":5118787,"avatar_url":"https://avatars.githubusercontent.com/u/5118787?v=3","gravatar_id":"","url":"https://api.github.com/users/Ajitweb","html_url":"https://github.com/Ajitweb","followers_url":"https://api.github.com/users/Ajitweb/followers","following_url":"https://api.github.com/users/Ajitweb/following{/other_user}","gists_url":"https://api.github.com/users/Ajitweb/gists{/gist_id}","starred_url":"https://api.github.com/users/Ajitweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ajitweb/subscriptions","organizations_url":"https://api.github.com/users/Ajitweb/orgs","repos_url":"https://api.github.com/users/Ajitweb/repos","events_url":"https://api.github.com/users/Ajitweb/events{/privacy}","received_events_url":"https://api.github.com/users/Ajitweb/received_events","type":"User","site_admin":false},"created_at":"2016-10-03T13:08:48Z","updated_at":"2016-10-03T13:08:48Z","body":"Hello Dicky, I used your refactor on the first page load. But for subsequent page loads (clicking on navigation buttons), I wanted to notifiy the user that the server is busy while it is fetching data. \r\n\r\nThis is the span\r\n```\r\n<div data-bind=\"visible:LoadList\">\r\n  <span> Loading Data Please wait....</span>\r\n</div>\r\n```\r\n\r\n\r\nThis is what I tried to do in the app.js file ;\r\nAll navigation buttons has a class - 'fetchdata'\r\nIn the click events of the navigation button, I removed the style (which KO puts when LoadList is false)  This shows up the notification to the user and also the data is fetched and shown, But the notification does not disappear even though I change the value of LoadList to false on the server.\r\n```\r\n$(\".fetchdata\").click(function () {\r\n$(\"*[data-bind*='visible:LoadList']\").each(function (idx, element) { element.style.display = \"\"; });\r\n```\r\n\r\nI feel that, I have to change the value of LoadList property in javascript before the backend button function is called. Is this correct? and if yes, how do I change the property value in javascript.\r\nThanks\r\n"}}
{"actor":{"display_login":"Ajitweb"}}