BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
<script type="text/javascript">
function refreshSchedule(args) {
var schObj = $("#Schedule1").data("ejSchedule"); //Create schedule object to use refreshAppointments method
schObj.refreshAppointments();
}
</script>
//You can use the refreshAppointments method using schedule object at anywhere in script page
</code>
Query 2: Please give me an example of how the Query property works in the schedule.
We filter the schedule appointment data using the query property in schedule. In the above provided sample, we have filtered the appointments collection using the query field. Please refer to the following code example.
<code>
@(Html.EJ().Schedule("Schedule1")
.Width("100%")
.Height("525px")
.AppointmentSettings(fields => fields.Datasource("http://mvc.syncfusion.com/OdataServices/Northwnd.svc/")
.Query("ej.Query().from('Events').take(2)") //Get the appointments collection from Events table only 2 records
.Id("Id")
.Subject("Subject")
.Description("Description")
.StartTime("StartTime")
.EndTime("EndTime")
.AllDay("AllDay")
.Recurrence("Recurrence")
.RecurrenceRule("RecurrenceRule"))
)
</code>
To know more about the query property, please refer the following links.
Schedule databinding : http://help.syncfusion.com/js/schedule/data-binding
Schedule Online Sample : http://mvc.syncfusion.com/demos/web/schedule/remotedatabinding
Default query property: http://help.syncfusion.com/aspnetmvc/datamanager/query
Regards,
Sarath Kumar P K
var schObj = $("#Schedule1").data("ejSchedule"); //Create schedule object to use refreshAppointments method schObj.refreshAppointments(); //You have mentioned the object “chObj.refreshAppointments”, check that chObj have schedule object to access refreshAppointments method. |