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

View not updating

1 Answer 68 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
JT
Top achievements
Rank 1
JT asked on 14 Dec 2012, 08:54 PM
I have 2 views that are loaded via json calls to a remote server, in both cases the templates work fine.

<div data-role="view" data-title="Activities" data-layout="inner" id="actividades" data-init="activity">
    <ul id="view_actividades" data-role="listview"></ul>
</div>
<div data-role="view" data-title="View Activities" data-layout="inner" id="article" data-init="article_load">
    <div id="article_holder"></div>
</div>

<script type="text/x-kendo-tmpl" id="tmpl_view_activities">
    <a href="\#article?id=${id}&cat=activities">
        <div class="title">${title}</div>
    </a>
</script>

<script type="text/x-kendo-tmpl" id="tmpl_view">
    <div class="title">${title}</div>
    <div class="date">${date}</div>
    <div class="content">${content}</div>
</script>


I can select and item in the listview and the article view loads fine, once I go back to the list view and select a different item the view doesn't update the previous activity remains displayed... 

My search-fu is failing me and I can't find any method to force the refresh. How can I force the refresh?

1 Answer, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 17 Dec 2012, 09:11 AM
Hi,

It sounds like you are facing a case similar to the one discussed in this forum thread. If this is not the case, is it possible for you to provide a sample runnable project, so that we can take a look?

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