Hi Jimmy,
I'm implementing a similar method where I put the calendar inside the updatepanel also, so I think I can shed some light on this.
After you do a click on the button inside the updatepanel, your page should automatically do a callback (that means you hit page load, and then maybe an event function like button_submit(){}). Inside the page load/ or in the button_submit function, you'll need to do an update on the calendar like this(in vb.net):
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
'you can add if conditions here
BindDPC(BegDate, EndDate)
End Sub
or
protectedsub BtnAdd_Click(byval sender as object , byvale as EventArgs)
'you can add if conditions here
BindDPC(BegDate, EndDate)
end sub
Inside this bindDPC function, you need to rebind the data, so something like this:
Private Sub BindDPC(ByVal CompID As Integer, ByVal OfficeID As Integer, ByVal BegDate As String, ByVal Enddate As String, ByVal StaffType As Integer)
Ds = objViewAppt.Loaddata(BegDate, Enddate)
DayPilotCalendar1.StartDate = BegDate
DayPilotCalendar1.DataSource = Ds
DayPilotCalendar1.DataStartField = "McDate"
DayPilotCalendar1.DataEndField = "McEndDate"
DayPilotCalendar1.DataTextField = "Title"
DayPilotCalendar1.DataValueField = "ID"
DayPilotCalendar1.DataBind()
DayPilotCalendar1.Update()
End Sub
The DayPilotCalendar1.Update() isn't necessary I believe, but I put it in there just to be safe. Once you do this, every time the button in the panel is clicked, you should come to the bindDPC function, and it'll reload the calendar for you this way. Hope that helped.