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

Refresh current view

1 Answer 99 Views
HTML5, CSS, JavaScript
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ibrahim Khan
Top achievements
Rank 1
Ibrahim Khan asked on 06 Apr 2016, 01:35 PM
I am using telerik appbuilder for developing a hybrid app. How can I refresh current view on click of a button?

1 Answer, 1 is accepted

Sort by
0
Anton Dobrev
Telerik team
answered on 11 Apr 2016, 01:54 PM
Hi,

Thanks for posting to the Telerik Developer Forums.

Depending in the UI framework you are using in your app, you may use its integrated tools to do this.

For example, if you are using the Kendo Hybrid UI and its MVVM framework in a view that is bound to a data or to a property of a view model is refreshed if any of the data or UI properties changes.

Let's say, for instance, that you have a list view bound to a data source - invoking the read method of the  data source will automatically refresh the list view too.

In an implementation without any UI framework, you should be able to use the web approach like:
window.location.reload(true);
 I hope that this answers your question.


Regards,
Anton Dobrev
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
HTML5, CSS, JavaScript
Asked by
Ibrahim Khan
Top achievements
Rank 1
Answers by
Anton Dobrev
Telerik team
Share this question
or