Refresh scheduler with webservice call

5 posts, 0 answers
  1. Datamex
    Datamex avatar
    161 posts
    Member since:
    Jun 2012

    Posted 09 Jun 2009 Link to this post

    Hi,

    For a page with a scheduler control on it, I would like to have a refresh function. The scheduler gets it's data from a WCF webservice. I would like to use that to read appointments again and to prevent a postback begin fired. What clientside JS method is available for reading / refreshing all appointments on the current timeframe of the scheduler control?
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 09 Jun 2009 Link to this post

    Hello iCe01,

    We plan to implement auto-refresh (with polling) and/or expose a public Refresh method in the client API of RadScheduler.
    Meanwhile, you can use the following workaroud:
    function refreshSchedulerClientSide()       
    {       
     var scheduler = $find('<%= RadScheduler1.ClientID %>');       
     scheduler.set_selectedDate(scheduler.get_selectedDate());       
    }      
     





    Greetings,
    Peter
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Datamex
    Datamex avatar
    161 posts
    Member since:
    Jun 2012

    Posted 09 Jun 2009 Link to this post

    Works like a charm, thanks very much!
  5. Jose Granja
    Jose Granja avatar
    84 posts
    Member since:
    Oct 2009

    Posted 10 Dec 2010 Link to this post

    Hi,

    I saw this as well but I would like that my resources refresh as well... I have the resources grouped (a list of persons) and I want to view more or less depending of the user! Initially he sees all the persons diary but he might want to see only one for example! I tried using the rebind method but it won't refresh the resources!

    Is there a way to call the getresources method from the webservice? I would like to change the color of my background as well! I have a diferent background for the user availibility! 

    maybe is there was a way to hide certains resources that would be fine! like I have resoures from person 1 2 3 and I want to hide those from 3.

    is there a way? I hope I expalined myself clearly, I'm afraid my english is not that good


    regards,
    jose
  6. Nikolay Tsenkov
    Admin
    Nikolay Tsenkov avatar
    734 posts

    Posted 16 Dec 2010 Link to this post

    Hi Jose Granja,

    You need to postback in order to change the resource grouping. This change cannot be performed on the client-side - the scheduler comes already rendered on the client side and only smaller parts such as the appointments are rendered there.

    Of course there is a chance that you meant something else. If this is the case, could you, please, explain it in a bit more detail?


    Regards,
    Nikolay Tsenkov
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017