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

MobileListView does not call read method

3 Answers 27 Views
ListView (Mobile)
This is a migrated thread and some comments may be shown as answers.
Sean
Top achievements
Rank 2
Sean asked on 14 Mar 2014, 05:42 PM
Something strange is baffling me with regard to the mobile list view. Here is the syntax:

@(Html.Kendo().MobileView()
      .Name("detail")
      .Title("Attendance Monitor")
      .Layout("MobileLayout")
      .Content(obj =>
          Html.Kendo().MobileListView()
                  .Name("ParkListDetail")
                      .TemplateId("detailTemplate").AutoBind(true)
                      .DataSource(dataSource => dataSource.Read(read => read.Action("ReadDetails", "Mobile"))))
  )

The method, 'ReadDetails' is not getting called. However, if I put a regular list view on the page, it loads just fine:

@(Html.Kendo().ListView(Model)
                  .Name("ParkListSummary")
                  .TagName("div")
                      .ClientTemplateId("summaryTemplate").AutoBind(true)
                      .DataSource(dataSource => dataSource
                          .Read("ReadDetails", "Mobile")
                          .Model(model => model.Id(park => park.ParkID))
                      ))


What am I missing? I want to have a certain portion of my application as mobile-friendly, but the mobile widgets are not playing nice. I have been through every demo on the site for the list view, but nothing works for me.

Sean~

3 Answers, 1 is accepted

Sort by
0
Accepted
Kiril Nikolov
Telerik team
answered on 18 Mar 2014, 11:36 AM
Hi Sean,

Do you get any JavaScript errors when you run the application? Can you please provide us with a runnable sample, where this issue is reproduced?

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Sean
Top achievements
Rank 2
answered on 18 Mar 2014, 01:35 PM
Hi Kiril,

Thanks for the reply. I actually discovered my issue. I was leaving off the application start. Once I added  @(Html.Kendo().MobileApplication()), everything worked as desired.

Great thus far! I am still learning the ins and outs of the mobile stuff, but as usual, the controls are really nice.

Thanks again,




0
Accepted
Kiril Nikolov
Telerik team
answered on 20 Mar 2014, 07:57 AM
Hello Sean,

I am really happy to hear that you like the controls. In case you have any questions, please do not hesitate to contact us.

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
ListView (Mobile)
Asked by
Sean
Top achievements
Rank 2
Answers by
Kiril Nikolov
Telerik team
Sean
Top achievements
Rank 2
Share this question
or