Re-selecting a picked date from calender don't refresh the Control Board

5 replies. Last post: May 20, 2014 10:58 PM by Bernard Xiang
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Frank GaryMember

Hi Team -

We just encountered a problem which might be just a setting issue in scheduler and it would be great if you guys can provide us some insight over the same.

So whats happening is , when we re-select a already picked date from our calender it do re-render all the events in the control board but not the latest records which are updated after that date was first picked from the calender. To be brief here is an example : 

Suppose user1 picked todays date and he can see the latest bookings in the scheduler and after that other users made some new bookings or updates for that particular day and to see those user1 re-selects that date again and he won't see all those updates. User1 needs to refresh the whole page with a f5 to see those changes.

We tried to do some trouble shooting from our end and this is what we found. In the browser developer tool we looked at the calls being made in the Network console when we pick a date from calender. So when we pick up a date which is not picked up before in calender we can see a server side call is made to get the data but when we re-select that date there is no server side request. So we believe that somehow the control is caching the data once it is bind to a particular date at the first time and when we select that date  second time it just renders the same data in the control.We actually able to make it work by using client side event "OnCalenderCellClicked" in which we are forcing page to do a complete post back every time a date is picked and which actually looks very ugly and not the best method to resolve it (code snippet for the same is attached below)

function WebSchedulerSummary_OnCalenderCellClicked() {

            try {
                setTimeout(function () {
                   __doPostBack('', '');
                }, 500);
            }
            catch (exception) {
            }
            return false;
        }

 

A quick response will be appreciated which we know that you guys always do.

Thanks - Frank

All times are GMT -5. The time now is 3:30 PM.
Previous Next