Forums

Forums / Developing Portals / JS command to refresh a scheduler page widget?

JS command to refresh a scheduler page widget?

2 posts, 1 answered
  1. Mike Cohen
    Mike Cohen avatar
    31 posts
    Registered:
    10 Aug 2021
    10 Feb 2023
    Link to this post
    What is the javascript command to refresh a widget's display?  

    We are using a calendar/scheduler control along with some show/hide js logic. We are finding that when we .show() the scheduler widget , the widget does not display correctly until we've clicked the refresh button on the top right corner of the calendar.  
    Whats the code to force this item to refresh?  I can't seem to find it in the api docs but I know Kasun showed it to me once. 

    Thanks, 
    Mike
  2. Mike Cohen
    Mike Cohen avatar
    31 posts
    Registered:
    10 Aug 2021
    Answered
    10 Feb 2023 in reply to Mike Cohen
    Link to this post
    Found it.  Replying to my own thread. 
     Tpc.page.TpcSchedulerModel.get_scheduler().refresh()
2 posts, 1 answered