{"action":"created","issue":{"url":"https://api.github.com/repos/vitmalina/w2ui/issues/1372","repository_url":"https://api.github.com/repos/vitmalina/w2ui","labels_url":"https://api.github.com/repos/vitmalina/w2ui/issues/1372/labels{/name}","comments_url":"https://api.github.com/repos/vitmalina/w2ui/issues/1372/comments","events_url":"https://api.github.com/repos/vitmalina/w2ui/issues/1372/events","html_url":"https://github.com/vitmalina/w2ui/issues/1372","id":187806368,"number":1372,"title":"I had defined the row style in the records, but is invalid","user":{"login":"chenduansheng","id":17996066,"avatar_url":"https://avatars.githubusercontent.com/u/17996066?v=3","gravatar_id":"","url":"https://api.github.com/users/chenduansheng","html_url":"https://github.com/chenduansheng","followers_url":"https://api.github.com/users/chenduansheng/followers","following_url":"https://api.github.com/users/chenduansheng/following{/other_user}","gists_url":"https://api.github.com/users/chenduansheng/gists{/gist_id}","starred_url":"https://api.github.com/users/chenduansheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenduansheng/subscriptions","organizations_url":"https://api.github.com/users/chenduansheng/orgs","repos_url":"https://api.github.com/users/chenduansheng/repos","events_url":"https://api.github.com/users/chenduansheng/events{/privacy}","received_events_url":"https://api.github.com/users/chenduansheng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-11-07T19:36:57Z","updated_at":"2016-11-08T10:48:51Z","closed_at":null,"body":"Hi, I meeted a bug,\r\nI had defined the row style [\"background-color: red\"] in the records, but is invalid.\r\nsee  http://jsfiddle.net/api/post/jquery/2.1/"},"comment":{"url":"https://api.github.com/repos/vitmalina/w2ui/issues/comments/259105369","html_url":"https://github.com/vitmalina/w2ui/issues/1372#issuecomment-259105369","issue_url":"https://api.github.com/repos/vitmalina/w2ui/issues/1372","id":259105369,"user":{"login":"chenduansheng","id":17996066,"avatar_url":"https://avatars.githubusercontent.com/u/17996066?v=3","gravatar_id":"","url":"https://api.github.com/users/chenduansheng","html_url":"https://github.com/chenduansheng","followers_url":"https://api.github.com/users/chenduansheng/followers","following_url":"https://api.github.com/users/chenduansheng/following{/other_user}","gists_url":"https://api.github.com/users/chenduansheng/gists{/gist_id}","starred_url":"https://api.github.com/users/chenduansheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenduansheng/subscriptions","organizations_url":"https://api.github.com/users/chenduansheng/orgs","repos_url":"https://api.github.com/users/chenduansheng/repos","events_url":"https://api.github.com/users/chenduansheng/events{/privacy}","received_events_url":"https://api.github.com/users/chenduansheng/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T10:48:50Z","updated_at":"2016-11-08T10:48:50Z","body":"thanks, I try it, and now it works perfectly.\r\n\r\nBy the way, i suggest that the 'render' function can work on the row, not only on the cell.  i know there is already a cell 'render' function. but sometimes we need to control a row, not only a cell, for example: i have a list of persons in w2ui grid and i want to do this:\r\n\r\n//if age less than 10, to make the row's color is red; if age less than 18,to make the row's color is yellow...\r\nif( record.age<10 ){\r\n     record.w2ui = { \"style\": \"background-color: RED\" };\r\n} else if ( record.age<18 ){\r\n     record.w2ui = { \"style\": \"background-color: YELLOW\" };\r\n} else {\r\n    ... ...\r\n}\r\n\r\nbecause the broswer reg data from the remote server, and i want the data's volume be less.\r\nthe above way will make's the server no longer need to return the data of  'w2ui{\"style:.....\"}' because it would be made by w2grid, so it will save more server resources and save more network transmission.\r\n\r\nthanks again."}}
{"actor":{"display_login":"chenduansheng"}}