Thank you for contacting Syncfusion support.We suspect that your requirement is to enable and disable the resource grouping option in Schedule through button actions and for the same we have prepared the sample which can be download from the below location.http://www.syncfusion.com/downloads/support/forum/131950/ze/Sample-943844243<Code>@Html.EJ().ToggleButton("check21").Size(ButtonSize.Normal).ShowRoundedCorner(true).DefaultText("Enable").ActiveText("Diabale").ClientSideEvents(e=>e.Change("onChange"))

function onChange(e) {

var roomData =@Html.Raw(Json.Encode(ViewBag.Rooms));

var ownerData =@Html.Raw(Json.Encode(ViewBag.Owners));

var grupData=@Html.Raw(Json.Encode(ViewBag.Resources));

if (e.isChecked) { //it will show resource

$("#Schedule1").ejSchedule({

group: {

resources: grupData

},

resources: [

{

field: "RoomId",

title: "Room",

name: "Rooms", allowMultiple: false,

resourceSettings: {

dataSource: roomData,

text: "text", id: "id", groupId: "groupId", color: "color"

}

}, {

field: "OwnerId",

title: "Owner",

name: "Owners", allowMultiple: true,

resourceSettings: {

dataSource: ownerData,

text: "text", id: "id", groupId: "groupId", color: "color"

}

}],

appointmentSettings: {

resourceFields: "RoomId,OwnerId"

}

});

}

else { // it will hide resource

$("#Schedule1").ejSchedule({

resources: [], // here we are removing the resources to render default schedule control