Hello,
I could use a bit of advice.
I am working with a listview that has tiered sections. I can click on each branch in the tree to drill down to the next level. It looks like this:
This is working - the problem occurs if I revisit a view. If I click through the list, updating the dataSource and showing the new options, I can't go back and choose a different option. If I try, I am met with an "Uncaught TypeError: Cannot read property 'sectionId' of undefined".
It's a category list with sub-categories underneath. If I click Shoes > Sandals > Flip-Flops everything works, but if I try to go back and change from Flip-Flops to something else, I'm met with the TypeError.
This tells me that the data isn't getting bound to the view when I go back (right?). I currently use onShow() to set up the dataSource. When using onBeforeShow() the list won't update with new data after the first time through, so going back and selecting Hiking Boots instead of Sandals will still show me the results for Sandals.
Is there another method I could use to get this data to show up correctly on subsequent passes through the list?
Thanks!
I could use a bit of advice.
I am working with a listview that has tiered sections. I can click on each branch in the tree to drill down to the next level. It looks like this:
$(
"#listview"
).kendoMobileListView({
dataSource: data,
template: kendo.template($(
"#exampleTemplate"
).html()),
click:
function
(e) {
// event to handle change in dataSource
$(
"#listivew"
).data(
"kendoMobileListView"
).setDataSource(dataSource);
}
});
It's a category list with sub-categories underneath. If I click Shoes > Sandals > Flip-Flops everything works, but if I try to go back and change from Flip-Flops to something else, I'm met with the TypeError.
This tells me that the data isn't getting bound to the view when I go back (right?). I currently use onShow() to set up the dataSource. When using onBeforeShow() the list won't update with new data after the first time through, so going back and selecting Hiking Boots instead of Sandals will still show me the results for Sandals.
Is there another method I could use to get this data to show up correctly on subsequent passes through the list?
Thanks!