This is a migrated thread and some comments may be shown as answers.
kendoMobileListView datasource binding with object.field
1 Answer 35 Views
This is a migrated thread and some comments may be shown as answers.
Manish
Top achievements
Rank 1
Manish asked on 07 Nov 2014, 12:36 AM
hello, I am using remote data to load the data and its like in "basedata.json" file, now kendomobileListview transport and data source works fine if I have 1 level object so I can map in the template like below 

<script type="text/x-kendo-tmpl" id="mobile-listview-filtering-template">
<div class="product">
<h3>#:name#</h3>
<p>#:siteID#</p>
</div>
</script>

however when I am trying to do somelike this to match with my json data, kendo is not loading the data. appreciate your help..

<script type="text/x-kendo-tmpl" id="mobile-listview-filtering-template">
<div class="product">
<h3>#:InstallSite.name#</h3>
<p>#:InstallSite.siteID#</p>
</div>
</script>



1 Answer, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 10 Nov 2014, 03:44 PM
Hi Manish,

as far as I see, the InstallSite and InstallProduct fields of your datasource item are arrays, but you are trying to query them like objects. That's the most likely reason for the issue. You may try to replicate it in a dojo (using local data) - we will be able to help you further. 

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Asked by
Manish
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Share this question
or