ListView navigation bug

5 posts, 1 answers
  1. Travis
    Travis avatar
    6 posts
    Member since:
    Mar 2013

    Posted 15 Apr 2013 Link to this post

    I have an application based off of the mobile music store example. I have cut everything down to the following in order to illustrate the problem.
    I have 2 views, initial-view and detail-view.
    The first view initial-view contains a listview of Ids pulled from a DataSource.
    The second view performs a datasource.get on the id passed in the query string link to the view using the show event in order to grab the correct details from the datasource. However when you attempt to navigate from the listview link to the detail view, you get an immediate error after the view is shown with a #! in the url.

    If you bind the initial-view listview to something else, a static array, or hard code the links to detail-view the show event and navigation to the detail-view works as expected.

    Example attached.
    Edit: Found that if I create another DataSource from the same original data.
    var detailDS2 = new kendo.data.DataSource(
     {
             data:details,
             schema: {model: {id:"Id"}}
      });


    If I then use that datasource in the show event of the detail-view to bind it works. Kind of a major hack though, I'd prefer to know what I am doing wrong or if this is a bug that will be fixed.
  2. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 17 Apr 2013 Link to this post

    Hello Travis,

    Are you by any chance testing in Firefox? Kendo UI Mobile does not support Firefox - browser compatibility is listed here. For development we recommend using Google Chrome.

    I was not able to reproduce the problem on mobile devices (tested on iOS and Android 4.1.2) or Chrome (desktop).

    Regards,
    Alexander Valchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Travis
    Travis avatar
    6 posts
    Member since:
    Mar 2013

    Posted 30 Apr 2013 Link to this post

    Yes this was apparently a Firefox issue, I however have a similar related issue that is repeatable on the device and in chrome. It's a bit more complex setup, but basically once you create a listview from a datasource and then create a listview from a collection found from a get request on the datasource, at some point 2-3 levels deep in the object graph things break. If you however bind to a new datasource from the same source it works.
  5. Answer
    Petyo
    Admin
    Petyo avatar
    2438 posts

    Posted 01 May 2013 Link to this post

    Hi Travis,

    I am not sure what happens in your case. We have a code library which demonstrates the best practices in such master detail drill navigation. Can you please verify that you are using the same approach to databinding/navigation?

    All the best,
    Petyo
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  6. Travis
    Travis avatar
    6 posts
    Member since:
    Mar 2013

    Posted 01 May 2013 Link to this post

    After looking at the ListView code example for hierarchy. I was using a deep object graph datasource, which had quite a few problems. Binding to flatter datasources does seem to be working and I was able to solve my current problems.
Back to Top
Kendo UI is VS 2017 Ready