This is a migrated thread and some comments may be shown as answers.

ListView navigation bug

4 Answers 55 Views
ListView (Mobile)
This is a migrated thread and some comments may be shown as answers.
Travis
Top achievements
Rank 1
Travis asked on 15 Apr 2013, 03:41 PM
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.

4 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 17 Apr 2013, 08:53 AM
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!
0
Travis
Top achievements
Rank 1
answered on 30 Apr 2013, 08:48 PM
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.
0
Accepted
Petyo
Telerik team
answered on 01 May 2013, 10:46 AM
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!
0
Travis
Top achievements
Rank 1
answered on 02 May 2013, 01:54 AM
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.
Tags
ListView (Mobile)
Asked by
Travis
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Travis
Top achievements
Rank 1
Petyo
Telerik team
Share this question
or