Auto Refresh

2 posts, 0 answers
  1. Srini
    Srini avatar
    1 posts
    Member since:
    Sep 2008

    Posted 27 Sep 2008 Link to this post

    I am working on an application using telerik radtree for Silverlight that shows various staff attendance in a hierarchial tree. The tree is divided into Area - Sub Area - Department - Staff.

    As the staff sign-in for the day, the database is updated by a separate process.

    Is there any way to change the state of the tree nodes to reflect staff attendance. For example if a staff member has attended the image associated to turn green. Similarly when all staff in a department have signed in turn its image to green and so forth.

    I want the tree to dynamically reflect the changes in the database without user refreshing or reloading the tree. Any help will be well appreciated.
  2. Valentin.Stoychev
    Valentin.Stoychev avatar
    2198 posts

    Posted 29 Sep 2008 Link to this post

    Hi Srini,

    you should first build your own mechanism for notifying the Silverlight client that something has happened on the backend (e.g. a user has sign-in, or signed-off). One option for building this mechanism is to have a timer that will check for changes in the Database by using a web service. This web service can return the list of changed users, together with their status and then you can update the appropriate TreeView items to reflect the changes.

    This way you will not need to refresh your application.

    Kind regards,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top