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

How to Keeping TreeView in sync with DB using webservice?

1 Answer 134 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 29 May 2013, 01:44 AM
Problem: Ensure TreeView is constantly checking for updates?
--------------------------------------------------------------------------------------------
I need to keep data shown in treeview constantly in sync and up-to-date with the tables in my database.  How can i do this when my webpage never interacts directly with the database and only talks directly with a web service( which does the hands on communication with the actual database ).


Html/javascript page
                   |
                   |
ASP.NET MVC Web Service( WEB API )
                   |
                   |
SQL Server 2012 Database


1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 30 May 2013, 04:26 PM
Hello Michael,

Thank you for contacting us.
To keep the treeview constantly in synchronization with the DataBase when there is no indication on the client side that it was changed you need to read the DataSource in a given interval of time. For more information please check the following resources:
To perform a refresh you need to use the read method of the DataSource:

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