We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

repopulate scheduler with changed resource groups

Thread ID:





129357 Mar 14,2017 12:30 PM UTC Mar 15,2017 07:16 AM UTC JavaScript 1
Tags: ejSchedule
Asked On March 14, 2017 12:30 PM UTC

This article shows how to change the data source for the appointments: https://www.syncfusion.com/kb/2706/how-to-bind-the-data-to-the-schedule-control-through-the-ajax-call
But I'm using resource groups end those change as well. However I cant update the resource dataSource with similar code. This is what I tried:

$("#BookingOverview").ejSchedule("option", "resources.resourceSettings.dataSource", data.companies); // While this is an array I still get Invalid input for property :resources - Expected type - array

How can I update both appointments and resources?

Karthigeyan Krishnamurthi [Syncfusion]
Replied On March 15, 2017 07:16 AM UTC

Thank you for contacting Syncfusion support.   
We have prepared the sample to dynamically load the resource group by using ajax post which can be download from the below location.   
Kindly refer the below code example used in the sample.   
                type: "POST", 
                url: "/Schedule/Resgroup", 
                data: { name: args.model.text }, 
                dataType: "json", 
                success: function (result) { 
                        group: { 
                            resources: ["Rooms", "Owners"] 
                        resources: [ 
                            field: "roomId", 
                            title: "Room", 
                            name: "Rooms", allowMultiple: false, 
                            resourceSettings: { 
                                dataSource: result.rooms, // assigning the data source from controller 
                                text: "text", id: "id", color: "color" 
                        }, { 
                            field: "ownerId", 
                            title: "Owner", 
                            name: "Owners", allowMultiple: true, 
                            resourceSettings: { 
                                dataSource: result.owners, // assigning the data source from controller 
                                text: "resText", id: "resId", groupId: "groupid", color: "rescolor" 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon