{"action":"created","issue":{"url":"https://api.github.com/repos/telerik/nativescript-ui-samples-angular/issues/28","repository_url":"https://api.github.com/repos/telerik/nativescript-ui-samples-angular","labels_url":"https://api.github.com/repos/telerik/nativescript-ui-samples-angular/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/telerik/nativescript-ui-samples-angular/issues/28/comments","events_url":"https://api.github.com/repos/telerik/nativescript-ui-samples-angular/issues/28/events","html_url":"https://github.com/telerik/nativescript-ui-samples-angular/issues/28","id":174289994,"number":28,"title":"inlineEventSelectedEvent will not be fire for iOS","user":{"login":"tsonevn","id":17448734,"avatar_url":"https://avatars.githubusercontent.com/u/17448734?v=3","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},"labels":[{"url":"https://api.github.com/repos/telerik/nativescript-ui-samples-angular/labels/Done","name":"Done","color":"c2e0c6"}],"state":"closed","locked":false,"assignee":{"login":"VladimirAmiorkov","id":4989411,"avatar_url":"https://avatars.githubusercontent.com/u/4989411?v=3","gravatar_id":"","url":"https://api.github.com/users/VladimirAmiorkov","html_url":"https://github.com/VladimirAmiorkov","followers_url":"https://api.github.com/users/VladimirAmiorkov/followers","following_url":"https://api.github.com/users/VladimirAmiorkov/following{/other_user}","gists_url":"https://api.github.com/users/VladimirAmiorkov/gists{/gist_id}","starred_url":"https://api.github.com/users/VladimirAmiorkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VladimirAmiorkov/subscriptions","organizations_url":"https://api.github.com/users/VladimirAmiorkov/orgs","repos_url":"https://api.github.com/users/VladimirAmiorkov/repos","events_url":"https://api.github.com/users/VladimirAmiorkov/events{/privacy}","received_events_url":"https://api.github.com/users/VladimirAmiorkov/received_events","type":"User","site_admin":false},"assignees":[{"login":"VladimirAmiorkov","id":4989411,"avatar_url":"https://avatars.githubusercontent.com/u/4989411?v=3","gravatar_id":"","url":"https://api.github.com/users/VladimirAmiorkov","html_url":"https://github.com/VladimirAmiorkov","followers_url":"https://api.github.com/users/VladimirAmiorkov/followers","following_url":"https://api.github.com/users/VladimirAmiorkov/following{/other_user}","gists_url":"https://api.github.com/users/VladimirAmiorkov/gists{/gist_id}","starred_url":"https://api.github.com/users/VladimirAmiorkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VladimirAmiorkov/subscriptions","organizations_url":"https://api.github.com/users/VladimirAmiorkov/orgs","repos_url":"https://api.github.com/users/VladimirAmiorkov/repos","events_url":"https://api.github.com/users/VladimirAmiorkov/events{/privacy}","received_events_url":"https://api.github.com/users/VladimirAmiorkov/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2016-08-31T14:34:47Z","updated_at":"2016-09-19T14:59:10Z","closed_at":"2016-09-16T14:12:05Z","body":"`inlineEventSelected`  event will not be fire in case you would like to get the data for the selected event from the ListView inside the RadCalendar for iOS.\r\n\r\nHTML Code:\r\n\r\n```\r\n<ActionBar title=\"Events view modes\">\r\n    <NavigationButton text=\"Back\" icon=\"res://ic_arrow_back_black_24dp\" (tap)=\"onNavigationButtonTap()\"></NavigationButton>\r\n    <ActionItem text=\"Options\" ios.position=\"right\" (tap)=\"onOptionsTapped()\"></ActionItem>\r\n</ActionBar>\r\n<StackLayout>\r\n    <RadCalendar id=\"calendar\" (dateSelected)=\"onDateSelected($event)\" \r\n                (inlineEventSelected)=\"inlineEvent($event)\" [eventSource]=\"eventSource\" [eventsViewMode]=\"eventsViewMode\"></RadCalendar>\r\n</StackLayout>\r\n```\r\n\r\nTypeScript Code\r\n\r\n```\r\nimport { OptionsExampleBase } from \"../../options-example-base\";\r\nimport {Component, OnInit, Inject} from \"@angular/core\";\r\nimport { Router } from '@angular/router';\r\nimport {CalendarEventsService} from \"../calendar-events.service\";\r\nimport { OptionsService } from \"../../navigation/options/options.service\";\r\nimport calendarModule = require(\"nativescript-telerik-ui-pro/calendar\");\r\nimport { Page } from \"ui/page\";\r\nimport * as applicationModule from \"application\";\r\nimport {CalendarInlineEventSelectedData, CalendarSelectionEventData} from \"nativescript-telerik-ui-pro/calendar\"\r\n\r\n@Component({\r\n    moduleId: module.id,\r\n    selector: \"calendar-events-view-modes\",\r\n    templateUrl: \"calendar-events-view-modes.component.html\",\r\n    providers: [CalendarEventsService]\r\n})\r\n\r\nexport class CalendarEventsViewModesComponent extends OptionsExampleBase implements OnInit {\r\n    private _events: Array<calendarModule.CalendarEvent>;\r\n    private _calendar: calendarModule.RadCalendar;\r\n    private _optionsParamName: string;\r\n    private _eventsViewMode;\r\n    constructor( @Inject(Page) private _page: Page, private _calendarService: CalendarEventsService,\r\n        private _optionsService: OptionsService, private _router: Router) {\r\n        super();\r\n        if (applicationModule.ios) {            \r\n            this._page.on(\"navigatingTo\", this.onNavigatingTo, this);\r\n            this._optionsParamName = \"eventsViewMode\";\r\n            this._optionsService.paramName = this._optionsParamName;\r\n            this.router = _router;\r\n            this.navigationParameters = { selectedIndex: 0, paramName: this._optionsParamName, items: [\"None\", \"Inline\", \"Popover (iPad only)\"] };\r\n        }\r\n        this._eventsViewMode = calendarModule.CalendarEventsViewMode.None;\r\n    }\r\n    \r\n    get eventSource() {\r\n        return this._events;\r\n    }\r\n    \r\n    get eventsViewMode() {\r\n        return this._eventsViewMode;\r\n    }\r\n    \r\n    ngOnInit() {\r\n        this._events = this._calendarService.getCalendarEvents();\r\n        this._calendar = <calendarModule.RadCalendar>this._page.getViewById(\"calendar\");\r\n    }   \r\n    \r\n    onNoneTap() {\r\n        this._eventsViewMode = calendarModule.CalendarEventsViewMode.None;\r\n    }\r\n    \r\n    onInlineTap() {\r\n        this._eventsViewMode = calendarModule.CalendarEventsViewMode.Inline;\r\n    }\r\n    \r\n    onPopoverTap() {       \r\n        this._eventsViewMode = calendarModule.CalendarEventsViewMode.Popover;\r\n    }\r\n    \r\n     public onNavigatingTo(args) {\r\n        if (args.isBackNavigation) {\r\n            if (this._optionsService.paramName === this._optionsParamName) {\r\n                switch (this._optionsService.paramValue) {\r\n                    case \"None\":\r\n                        this.onNoneTap();\r\n                        this.navigationParameters.selectedIndex = 0;\r\n                        break;\r\n                    case \"Inline\":\r\n                        this.onInlineTap();\r\n                        this.navigationParameters.selectedIndex = 1;\r\n                        break;\r\n                    case \"Popover\":\r\n                        if (UIDevice.currentDevice().userInterfaceIdiom === UIUserInterfaceIdiomPad) {\r\n                            this.onPopoverTap();\r\n                            this.navigationParameters.selectedIndex = 2;\r\n                        }\r\n                        break;\r\n                    default:\r\n                        break;\r\n                }\r\n            }\r\n        }\r\n    }\r\n\r\n    public inlineEvent(args:CalendarInlineEventSelectedData){\r\n        console.log(\"event \"+args.eventData.title);\r\n        \r\n    }\r\n\r\n    public onDateSelected(args: CalendarSelectionEventData) {\r\n        console.log(\"date\");\r\n        console.log(args.eventName);\r\n        console.log(args.date);\r\n    }\r\n\r\n}\r\n```\r\n\r\nCLI: 2.2.1\r\nnativescript-telerik-ui-pro: 1.3.1\r\nnativescript-angular: 0.3.0\r\ntns-core-modules: 2.2.0\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/telerik/nativescript-ui-samples-angular/issues/comments/248018082","html_url":"https://github.com/telerik/nativescript-ui-samples-angular/issues/28#issuecomment-248018082","issue_url":"https://api.github.com/repos/telerik/nativescript-ui-samples-angular/issues/28","id":248018082,"user":{"login":"mattgalvin","id":3188630,"avatar_url":"https://avatars.githubusercontent.com/u/3188630?v=3","gravatar_id":"","url":"https://api.github.com/users/mattgalvin","html_url":"https://github.com/mattgalvin","followers_url":"https://api.github.com/users/mattgalvin/followers","following_url":"https://api.github.com/users/mattgalvin/following{/other_user}","gists_url":"https://api.github.com/users/mattgalvin/gists{/gist_id}","starred_url":"https://api.github.com/users/mattgalvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattgalvin/subscriptions","organizations_url":"https://api.github.com/users/mattgalvin/orgs","repos_url":"https://api.github.com/users/mattgalvin/repos","events_url":"https://api.github.com/users/mattgalvin/events{/privacy}","received_events_url":"https://api.github.com/users/mattgalvin/received_events","type":"User","site_admin":false},"created_at":"2016-09-19T14:59:10Z","updated_at":"2016-09-19T14:59:10Z","body":"Hmm.. I'll see what I can figure out. I have tried deleting those with no success. It's actually a clean project created with the latest libraries from scratch and source code copied over so there never was an earlier version to have been cached. I'll post whatever I find back here in case anyone else runs into it. Thanks for the help."}}
{"actor":{"display_login":"mattgalvin"}}