BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
Hi Andreas,
Thank you for using Syncfusion products.
We have prepared a schedule sample to bind the categorize collection from database using controller action which can be downloaded from the following location.
http://www.syncfusion.com/downloads/support/forum/119908/ze/ScheduleCRUD-50086585
In the above sample we have used dataManager to get the categorize collection and also queried that collection to assign it to the "categorizeSettings.dataSource" value. Please refer the following code snippet.
<code>
[Index.cshtml]
var Category = ej.DataManager({
url: "/Home/GetCategory", //Assign the url path to get category data
offline: false
});
Category.adaptor = new ej.UrlAdaptor();
var categoryCollection = Category.executeQuery(ej.Query().take(10)); //Get the category collection using query
categoryCollection.done(function (e) {
var schObj = $("#Schedule1").data("ejSchedule");
schObj.option("categorizeSettings.dataSource", e.result); //Assign the collection to categorize dataSource
});
[HomeController.cs]
public JsonResult GetCategory()
{
IEnumerable data = new ScheduleDataDataContext().Categories.Take(100); //Get the database value
return Json(data, JsonRequestBehavior.AllowGet);
}
</code>
Kindly try the above provided sample and let us know if you need any further assistance.
Regards,
Sarath Kumar P K
Hi Andreas,
Thanks for your update.
We are glad to hear that the provided solution has met with your requirement. We regret for such inconvenience that the default way of using datamanager with owners and appointments doesn’t worked on categoriesSettings due to some internal issue which will be fixed and included in our upcoming release. Regarding the approach which we have suggested you in our previous update for categorySettings, we will consider and include the necessary details to achieve this scenario in our UG documentation.
Please let us know, if you require any further assistance. As always, we will be happy to assist you.
Regards,
Sarath Kumar P K