{"action":"created","issue":{"url":"https://api.github.com/repos/axisj/axisj/issues/619","labels_url":"https://api.github.com/repos/axisj/axisj/issues/619/labels{/name}","comments_url":"https://api.github.com/repos/axisj/axisj/issues/619/comments","events_url":"https://api.github.com/repos/axisj/axisj/issues/619/events","html_url":"https://github.com/axisj/axisj/issues/619","id":90019268,"number":619,"title":"Grid Editor 관련 질문입니다.","user":{"login":"kingwhale","id":12793072,"avatar_url":"https://avatars.githubusercontent.com/u/12793072?v=3","gravatar_id":"","url":"https://api.github.com/users/kingwhale","html_url":"https://github.com/kingwhale","followers_url":"https://api.github.com/users/kingwhale/followers","following_url":"https://api.github.com/users/kingwhale/following{/other_user}","gists_url":"https://api.github.com/users/kingwhale/gists{/gist_id}","starred_url":"https://api.github.com/users/kingwhale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kingwhale/subscriptions","organizations_url":"https://api.github.com/users/kingwhale/orgs","repos_url":"https://api.github.com/users/kingwhale/repos","events_url":"https://api.github.com/users/kingwhale/events{/privacy}","received_events_url":"https://api.github.com/users/kingwhale/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-22T05:54:42Z","updated_at":"2015-06-23T00:23:34Z","closed_at":null,"body":"특정 칼럼에 데이터를 등록할때는 readonly가 안되고,\r\n데이터를 수정할때만 readonly를 적용시켜야 할때는 어떻게 해야하나요?\r\n\r\nAPI를 찾아봤지만 특별한 답을 얻지못해 질문드립니다.\r\n\r\n감사합니다.\r\n\r\n*관련 없는 질문이지만.. gitgub 소스코드 깔끔하게 올리는 방법도좀 알려주세요.. ㅠ.ㅠ\r\n\r\neditor : [\r\n\t{form: \"\",formatter: function(){return \"\";}},\r\n\t{},\r\n\t{form:{type:\"readonly\", value:\"itemValue\"}},\r\n\t{form:{type:\"radio\", value:\"itemValue\",\r\n\t\toptions:[\r\n\t\t\t{value:'Y', text:'사용'}, {value:'N', text:'미사용'}\r\n\t\t]}\r\n\t},\r\n\t{AXBind:{type:\"number\", config:{min:0, max:100}}},\r\n\t{}\r\n]\r\n"},"comment":{"url":"https://api.github.com/repos/axisj/axisj/issues/comments/114311296","html_url":"https://github.com/axisj/axisj/issues/619#issuecomment-114311296","issue_url":"https://api.github.com/repos/axisj/axisj/issues/619","id":114311296,"user":{"login":"kingwhale","id":12793072,"avatar_url":"https://avatars.githubusercontent.com/u/12793072?v=3","gravatar_id":"","url":"https://api.github.com/users/kingwhale","html_url":"https://github.com/kingwhale","followers_url":"https://api.github.com/users/kingwhale/followers","following_url":"https://api.github.com/users/kingwhale/following{/other_user}","gists_url":"https://api.github.com/users/kingwhale/gists{/gist_id}","starred_url":"https://api.github.com/users/kingwhale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kingwhale/subscriptions","organizations_url":"https://api.github.com/users/kingwhale/orgs","repos_url":"https://api.github.com/users/kingwhale/repos","events_url":"https://api.github.com/users/kingwhale/events{/privacy}","received_events_url":"https://api.github.com/users/kingwhale/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T00:23:34Z","updated_at":"2015-06-23T00:23:34Z","body":"인라인 Edit 방식이 아닌 Editor 를 띄어주는 방식이여서 알려주신 방법을 써서 해보려 했으나 잘 되지 않네요..\r\n\r\n추가일땐 form type에 \"text\" 타입을 수정일땐 \"readonly\" 타입을 적용하고 싶습니다.. ㅠ.ㅠ\r\n\r\n다시 한번 도움 부탁드립니다.\r\n\r\n```javascript\r\n\r\n{form:{\r\n\ttype:function(){\r\n\t\tif(this.item._CUD != \"C\"){\r\n\t\t\treturn \"readonly\";\r\n\t\t}\r\n\t\treturn \"text\";\r\n\t}, \r\n\tvalue:\"itemValue\"\r\n}},\r\n\r\n```\r\n"}}