Crash when loading Page with multiple RadListViews embedded in TabView

4 posts, 0 answers
  1. Marc
    Marc avatar
    39 posts
    Member since:
    Oct 2013

    Posted 21 Jul Link to this post

    Hello,

    we want to put a TabView in our page, where each tab contains one RadListView.

    Unfortunately the app crashes when I navigate to this page and the RadListViews should be filled with data items coming from a sample-webservice.

    In the attachment, you can see the log from Xcode. I created a sample project, so I hope you can reproduce the issue. Here is the Link to the sample project

     

    The project is tested with the following configuration:

    • NativeScript CLI version 2.1.1
    • tns-core-modules 2.1.0
    • devices: iPhone 4s & iPhone 6 with iOS 9.3.3

     I hope you can reproduce the issue and I am thankful for any advice.

     

    Best regards

  2. Marc
    Marc avatar
    39 posts
    Member since:
    Oct 2013

    Posted 21 Jul in reply to Marc Link to this post

    Marc said:

    ...

    The project is tested with the following configuration:

    • NativeScript CLI version 2.1.1
    • tns-core-modules 2.1.0
    • devices used: iPhone 4s & iPhone 6 with iOS 9.3.3

    ...

    The issue occurs only on iOS. Everything works fine on Android.

  3. Marc
    Marc avatar
    39 posts
    Member since:
    Oct 2013

    Posted 21 Jul in reply to Marc Link to this post

    Something went wrong with the link.... here is the correct one:

    Updated link to the sample project

  4. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 22 Jul Link to this post

    Hi Marc,

    As discussed in a previous ticket you've opened regarding RadListView, there seems to be a bug in the native iOS UICollectionView that causes issues in certain cases:

    http://stackoverflow.com/questions/12611292/uicollectionview-assertion-failure

    There are several suggestions for effective workarounds and we are going to evaluate them before committing to any fixes. For the time being, here is a slightly updated code snippet from your app that addresses the erroneous behaviour:

    loadCountries: function() {
            var self = this;
            self.set("statusWorking", true);
            // self.set("countries1", new observableArrayModule.ObservableArray([]));
            // self.set("countries2", new observableArrayModule.ObservableArray([]));
     
            httpModule.request({
                url: "http://services.groupkt.com/country/get/all",
                method: "GET",
                headers: {
                    "Content-Type": "application/x-www-form-urlencoded"
                }
            }).then(function(response) {
                var list = response.content.toJSON().RestResponse.result;
                var c1 = new observableArrayModule.ObservableArray();
                var c2 = new observableArrayModule.ObservableArray();
                list.forEach(function(country) {
                    c1.push(country);
                    c2.push(country);
                });
     
                self.set("countries1", c1);
                self.set("countries2", c2);
     
                self.set("statusWorking", false);
            }, function(e) {
                console.log(e);
                self.set("statusWorking", false);
            });
        }

    I am sorry for the inconvenience caused.

    Let me know in case of further questions.

    Regards,
    Deyan
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top