{"action":"closed","issue":{"url":"https://api.github.com/repos/SitePen/dgrid/issues/806","labels_url":"https://api.github.com/repos/SitePen/dgrid/issues/806/labels{/name}","comments_url":"https://api.github.com/repos/SitePen/dgrid/issues/806/comments","events_url":"https://api.github.com/repos/SitePen/dgrid/issues/806/events","html_url":"https://github.com/SitePen/dgrid/issues/806","id":25082451,"number":806,"title":"Emit a dgrid-error when there is a problem with AJAX operations","user":{"login":"mercmobily","id":2128734,"avatar_url":"https://avatars.githubusercontent.com/u/2128734?v=3","gravatar_id":"","url":"https://api.github.com/users/mercmobily","html_url":"https://github.com/mercmobily","followers_url":"https://api.github.com/users/mercmobily/followers","following_url":"https://api.github.com/users/mercmobily/following{/other_user}","gists_url":"https://api.github.com/users/mercmobily/gists{/gist_id}","starred_url":"https://api.github.com/users/mercmobily/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mercmobily/subscriptions","organizations_url":"https://api.github.com/users/mercmobily/orgs","repos_url":"https://api.github.com/users/mercmobily/repos","events_url":"https://api.github.com/users/mercmobily/events{/privacy}","received_events_url":"https://api.github.com/users/mercmobily/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-01-06T01:56:03Z","updated_at":"2015-09-25T20:24:34Z","closed_at":"2015-09-25T20:24:34Z","body":"Hi,\r\n\r\nI am writing an application where I display an error bar at the top if there is an error of any sort.\r\nAt the moment, I am implementing DnD. When dragging things from A to B, and the PUT onto B fails, I would like to display something.\r\n\r\nI've been looking and looking, and I haven't yet found a way to do that.\r\n\r\nIn DnD.js, I see:\r\n\r\n    // TODOs\r\n    // * consider sending items rather than nodes to onDropExternal/Internal\r\n    // * consider emitting store errors via OnDemandList._trackError\r\n\r\nAlso, the code that does the putting is:\r\n\r\n    nodes.forEach(function(node){\r\n        Deferred.when(targetSource.getObject(node), function(object){\r\n          // For copy DnD operations, copy object, if supported by store;\r\n          // otherwise settle for put anyway.\r\n          // (put will relocate an existing item with the same id, i.e. move).\r\n          store[copy && store.copy ? \"copy\" : \"put\"](object, {\r\n            before: targetItem\r\n          });\r\n        });\r\n\r\nSo... is there another way you can think of to make the bar happening?\r\nI thought about using aspect() on the store's put and get the result. However, I *already* in my application have a centralised way of checking for error, and things would probably be pretty messy.\r\n\r\nAm I missing something very obvious here?\r\n\r\nMerc."}}