{"action":"created","issue":{"url":"https://api.github.com/repos/telerik/nativescript-ui-feedback/issues/669","repository_url":"https://api.github.com/repos/telerik/nativescript-ui-feedback","labels_url":"https://api.github.com/repos/telerik/nativescript-ui-feedback/issues/669/labels{/name}","comments_url":"https://api.github.com/repos/telerik/nativescript-ui-feedback/issues/669/comments","events_url":"https://api.github.com/repos/telerik/nativescript-ui-feedback/issues/669/events","html_url":"https://github.com/telerik/nativescript-ui-feedback/issues/669","id":324781274,"node_id":"MDU6SXNzdWUzMjQ3ODEyNzQ=","number":669,"title":"Using loaded event for Progress element in RadListView produce error in console but the list is correctly built on Android emulator","user":{"login":"jgerryl","id":38002122,"node_id":"MDQ6VXNlcjM4MDAyMTIy","avatar_url":"https://avatars3.githubusercontent.com/u/38002122?v=4","gravatar_id":"","url":"https://api.github.com/users/jgerryl","html_url":"https://github.com/jgerryl","followers_url":"https://api.github.com/users/jgerryl/followers","following_url":"https://api.github.com/users/jgerryl/following{/other_user}","gists_url":"https://api.github.com/users/jgerryl/gists{/gist_id}","starred_url":"https://api.github.com/users/jgerryl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgerryl/subscriptions","organizations_url":"https://api.github.com/users/jgerryl/orgs","repos_url":"https://api.github.com/users/jgerryl/repos","events_url":"https://api.github.com/users/jgerryl/events{/privacy}","received_events_url":"https://api.github.com/users/jgerryl/received_events","type":"User","site_admin":false},"labels":[{"id":488065837,"node_id":"MDU6TGFiZWw0ODgwNjU4Mzc=","url":"https://api.github.com/repos/telerik/nativescript-ui-feedback/labels/needs%20more%20info","name":"needs more info","color":"fbca04","default":false},{"id":639675222,"node_id":"MDU6TGFiZWw2Mzk2NzUyMjI=","url":"https://api.github.com/repos/telerik/nativescript-ui-feedback/labels/os:%20ios","name":"os: ios","color":"006b75","default":false}],"state":"open","locked":false,"assignee":{"login":"tsonevn","id":17448734,"node_id":"MDQ6VXNlcjE3NDQ4NzM0","avatar_url":"https://avatars3.githubusercontent.com/u/17448734?v=4","gravatar_id":"","url":"https://api.github.com/users/tsonevn","html_url":"https://github.com/tsonevn","followers_url":"https://api.github.com/users/tsonevn/followers","following_url":"https://api.github.com/users/tsonevn/following{/other_user}","gists_url":"https://api.github.com/users/tsonevn/gists{/gist_id}","starred_url":"https://api.github.com/users/tsonevn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsonevn/subscriptions","organizations_url":"https://api.github.com/users/tsonevn/orgs","repos_url":"https://api.github.com/users/tsonevn/repos","events_url":"https://api.github.com/users/tsonevn/events{/privacy}","received_events_url":"https://api.github.com/users/tsonevn/received_events","type":"User","site_admin":false},"assignees":[{"login":"tsonevn","id":17448734,"node_id":"MDQ6VXNlcjE3NDQ4NzM0","avatar_url":"https://avatars3.githubusercontent.com/u/17448734?v=4","gravatar_id":"","url":"https://api.github.com/users/tsonevn","html_url":"https://github.com/tsonevn","followers_url":"https://api.github.com/users/tsonevn/followers","following_url":"https://api.github.com/users/tsonevn/following{/other_user}","gists_url":"https://api.github.com/users/tsonevn/gists{/gist_id}","starred_url":"https://api.github.com/users/tsonevn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsonevn/subscriptions","organizations_url":"https://api.github.com/users/tsonevn/orgs","repos_url":"https://api.github.com/users/tsonevn/repos","events_url":"https://api.github.com/users/tsonevn/events{/privacy}","received_events_url":"https://api.github.com/users/tsonevn/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2018-05-21T04:06:20Z","updated_at":"2018-07-16T13:19:06Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nPLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.\r\n\r\nIf the below information is not provided we may not be able to respond and/or assist you in time and your report maybe closed without investigation.\r\n-->\r\n\r\n> Please take a minute to read our [NativeScript Code of Conduct](https://github.com/NativeScript/codeofconduct) before proceeding with posting issues or discussing. The purpose of this guide is to make communication and cooperation within our forums a pleasure for you and the other members.\r\n\r\n## Please, provide the details below:\r\n\r\n### Did you verify this is a real problem by searching the [NativeScript Forum](https://discourse.nativescript.org/)?\r\nYes\r\n\r\n### Tell us about the problem\r\nI'm trying to use loaded event for Progress element to modify the progress bar height. This Progress element will be displayed for each item in a RadListView. It produces error in console but the list is correctly built on Android emulator.\r\n\r\nI tried the following:\r\n- do the same but with only 1 item in RadListView in my app -> list correctly built but still produce error.\r\n- do the same using RadListView demo app -> list correctly built but still produce error.\r\n- do the same but with ListView -> works fine.\r\n- modify Progress element's height using loaded event in a view but outside of the RadListView -> works fine.\r\n\r\nHere's the result using RadListView demo app:\r\nerror in console: \r\nJS: ERROR TypeError: Cannot read property 'image' of undefined\r\nJS: ERROR CONTEXT [object Object]\r\n(the same error is repeated for all items in the list)\r\n\r\nbut property 'image' is displayed correctly in view:\r\n![image](https://user-images.githubusercontent.com/38002122/40289844-f6f2275a-5ce4-11e8-9a47-71758c2ceeae.png)\r\n_\r\n\r\n### Which platform(s) does your issue occur on?\r\nCurrently Android\r\n\r\n### Please provide the following version numbers that your issue occurs with:\r\nmy app :\r\n- **Progress NativeScript UI version:** nativescript-ui-listview\": \"^3.5.6\"\r\n- **CLI:** 4.1.0-2018-05-10-11458\r\n- **Cross-platform modules:** \"tns-core-modules\": \"~3.4.0\"\r\n- **Runtime(s):** \"tns-android\": \"4.0.1\"\r\n\r\nRadListView demo app:\r\n- **Progress NativeScript UI version:** nativescript-ui-listview\": \"^3.5.0\"\r\n- **CLI:** 4.1.0-2018-05-10-11458\r\n- **Cross-platform modules:** \"tns-core-modules\": \"~3.4.0\"\r\n- **Runtime(s):** \"tns-android\": \"3.4.0\"\r\n\r\n### Please tell us how to recreate the issue in as much detail as possible.\r\n1. Add Progress element in a RadListView.\r\n2. Use loaded event for Progress element to modify the progress bar height.\r\n3. Start Application and see the console. \r\n\r\nAny help would be really appreciated. Thank you.\r\n\r\n### Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.\r\nView on demo app:\r\n\r\n> <GridLayout tkExampleTitle tkToggleNavButton>\r\n    <RadListView [items]=\"dataItems\" loadOnDemandMode=\"Auto\" (loadMoreDataRequested)=\"onLoadMoreItemsRequested($event)\">\r\n        <ng-template tkListItemTemplate let-item=\"item\">\r\n            <StackLayout class=\"itemTemplateStackLayout\" orientation=\"vertical\">\r\n                <StackLayout class=\"innerOtemTemplateStackLayout\" orientation=\"horizontal\">\r\n                    <Image *tkIfIOS [src]=\"item.image\" stretch=\"aspectFit\" width=\"100\"></Image>\r\n                    <FrescoDrawee *tkIfAndroid height=\"100\" width=\"100\" [imageUri]=\"item.image\"></FrescoDrawee>\r\n                    <StackLayout class=\"labelsStackLayout\" orientation=\"vertical\">\r\n                        <Label class=\"labelName\" [text]=\"item.name\"></Label>\r\n                        <Label class=\"labelTitle\" [text]=\"item.title\" textWrap=\"true\"></Label>\r\n                        <Label class=\"labelText\" [text]=\"item.text\" textWrap=\"true\"></Label>\r\n                    </StackLayout>\r\n                </StackLayout>\r\n                <Progress value=\"50\" maxValue=\"100\" (loaded)=\"onProgressLoaded($event)\"></Progress>\r\n            </StackLayout>\r\n        </ng-template>\r\n        <ListViewLinearLayout *tkIfIOS tkListViewLayout itemHeight=\"120\"></ListViewLinearLayout>\r\n    </RadListView>\r\n</GridLayout>\r\n\r\n==================\r\nThe code for modifying progress bar height in onProgressLoaded():\r\n\r\n> onProgressLoaded(args) {\r\n        let progress = <Progress>args.object;\r\n        if (isAndroid) {\r\n            progress.android.setScaleY(6);  //  progress.android === android.widget.ProgressBar\r\n        } else if (isIOS) {\r\n            let transform = CGAffineTransformMakeScale(1.0, 6.0);\r\n            progress.ios.transform = transform; // progress.ios === UIProgressView\r\n        }\r\n    }\r\n"},"comment":{"url":"https://api.github.com/repos/telerik/nativescript-ui-feedback/issues/comments/405244466","html_url":"https://github.com/telerik/nativescript-ui-feedback/issues/669#issuecomment-405244466","issue_url":"https://api.github.com/repos/telerik/nativescript-ui-feedback/issues/669","id":405244466,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTI0NDQ2Ng==","user":{"login":"shabib3","id":27296296,"node_id":"MDQ6VXNlcjI3Mjk2Mjk2","avatar_url":"https://avatars0.githubusercontent.com/u/27296296?v=4","gravatar_id":"","url":"https://api.github.com/users/shabib3","html_url":"https://github.com/shabib3","followers_url":"https://api.github.com/users/shabib3/followers","following_url":"https://api.github.com/users/shabib3/following{/other_user}","gists_url":"https://api.github.com/users/shabib3/gists{/gist_id}","starred_url":"https://api.github.com/users/shabib3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shabib3/subscriptions","organizations_url":"https://api.github.com/users/shabib3/orgs","repos_url":"https://api.github.com/users/shabib3/repos","events_url":"https://api.github.com/users/shabib3/events{/privacy}","received_events_url":"https://api.github.com/users/shabib3/received_events","type":"User","site_admin":false},"created_at":"2018-07-16T13:19:06Z","updated_at":"2018-07-16T13:19:06Z","author_association":"NONE","body":"@jgerryl - the issue is happening also on real device or only emulator?"}}
{"actor":{"display_login":"shabib3"}}