{"action":"created","issue":{"url":"https://api.github.com/repos/telerik/kendo-angular/issues/1283","repository_url":"https://api.github.com/repos/telerik/kendo-angular","labels_url":"https://api.github.com/repos/telerik/kendo-angular/issues/1283/labels{/name}","comments_url":"https://api.github.com/repos/telerik/kendo-angular/issues/1283/comments","events_url":"https://api.github.com/repos/telerik/kendo-angular/issues/1283/events","html_url":"https://github.com/telerik/kendo-angular/issues/1283","id":293632232,"number":1283,"title":"k-alt applied to wrong rows on grid component","user":{"login":"jmaronge","id":7478272,"avatar_url":"https://avatars3.githubusercontent.com/u/7478272?v=4","gravatar_id":"","url":"https://api.github.com/users/jmaronge","html_url":"https://github.com/jmaronge","followers_url":"https://api.github.com/users/jmaronge/followers","following_url":"https://api.github.com/users/jmaronge/following{/other_user}","gists_url":"https://api.github.com/users/jmaronge/gists{/gist_id}","starred_url":"https://api.github.com/users/jmaronge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmaronge/subscriptions","organizations_url":"https://api.github.com/users/jmaronge/orgs","repos_url":"https://api.github.com/users/jmaronge/repos","events_url":"https://api.github.com/users/jmaronge/events{/privacy}","received_events_url":"https://api.github.com/users/jmaronge/received_events","type":"User","site_admin":false},"labels":[{"id":385282588,"url":"https://api.github.com/repos/telerik/kendo-angular/labels/Bug","name":"Bug","color":"ee0701","default":false},{"id":620088891,"url":"https://api.github.com/repos/telerik/kendo-angular/labels/Passed-QA","name":"Passed-QA","color":"0e8a16","default":false},{"id":499831587,"url":"https://api.github.com/repos/telerik/kendo-angular/labels/pkg:grid","name":"pkg:grid","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-01T18:14:44Z","updated_at":"2018-02-05T12:46:42Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n  Please help us process GitHub issues faster by providing the necessary information in the template format that follows.\r\n  We might not be able to assist with issues which lack important information.\r\n-->\r\n\r\n## I'm submitting a...\r\n<!--\r\n  Please submit:\r\n  * Feature requests to our UserVoice Portal at https://goo.gl/HsVr7R.\r\n  * Support requests to https://www.telerik.com/account/support-tickets.\r\n-->\r\n\r\n<!--  Leave one of the following options. -->\r\n* Bug report <!-- Please search for a similar issue before you submit a bug report. -->\r\n\r\n## Current behavior\r\n<!--\r\n  * Describe the current (faulty) behavior which is caused by the issue.\r\n  * In the latest package versions, check whether this behavior still represents an issue.\r\n-->\r\n\r\nThe k-alt class is applied to the wrong rows.  The first row should never be the \"alt\" row.  This is true of just about all other grids out there including the Kendo JQuery one.  It appears the error is in the isOdd function for the tr elements. \r\n\r\n`    public isOdd(item: any): boolean {\r\n        return item.index % 2 === 0;\r\n    }\r\n`\r\n\r\nThe first row is 0 based causing it to start as the k-alt row.  If you inspect the first two rows in the [JQuery version ](https://demos.telerik.com/kendo-ui/grid/index)you will see it is done correctly.  \r\n\r\n## Expected behavior\r\n<!-- Describe what the desired behavior would be. -->\r\nOnly odd number rows should be marked with k-alt class.\r\n`    public isOdd(item: any): boolean {\r\n        return item.index % 2;\r\n    }\r\n`\r\n\r\n## Minimal reproduction of the problem with instructions\r\n<!--\r\nFor bug reports, please provide the **STEPS TO REPRODUCE** and, if possible, a **MINIMAL DEMO** of the issue. You can use https://plnkr.co or share your project in a public repository.\r\n\r\n  1. Find an example in [the documentation](http://www.telerik.com/kendo-angular-ui/components/) that looks similar to your case.\r\n  2. Open it in Plunker by using the **OPEN AS PLUNKER** button.\r\n  3. Modify the plunk, so that the issue is reproducible in it. Try to include the minimum possible amount of code.\r\n  4. Save the plunk by using the blue **Save** button at the top.\r\n  5. Copy the link from the address bar of the browser.\r\n-->\r\n\r\nhttps://run.plnkr.co/NOEx9l2f2vESzEMj/\r\n\r\n "},"comment":{"url":"https://api.github.com/repos/telerik/kendo-angular/issues/comments/363074638","html_url":"https://github.com/telerik/kendo-angular/issues/1283#issuecomment-363074638","issue_url":"https://api.github.com/repos/telerik/kendo-angular/issues/1283","id":363074638,"user":{"login":"ipeshev","id":4143177,"avatar_url":"https://avatars0.githubusercontent.com/u/4143177?v=4","gravatar_id":"","url":"https://api.github.com/users/ipeshev","html_url":"https://github.com/ipeshev","followers_url":"https://api.github.com/users/ipeshev/followers","following_url":"https://api.github.com/users/ipeshev/following{/other_user}","gists_url":"https://api.github.com/users/ipeshev/gists{/gist_id}","starred_url":"https://api.github.com/users/ipeshev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipeshev/subscriptions","organizations_url":"https://api.github.com/users/ipeshev/orgs","repos_url":"https://api.github.com/users/ipeshev/repos","events_url":"https://api.github.com/users/ipeshev/events{/privacy}","received_events_url":"https://api.github.com/users/ipeshev/received_events","type":"User","site_admin":false},"created_at":"2018-02-05T12:46:42Z","updated_at":"2018-02-05T12:46:42Z","author_association":"NONE","body":"Fixed in v2.0.2-dev.201802021006"}}
{"actor":{"display_login":"ipeshev"}}