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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Hide ScheduleResources on Schedule

Thread ID:

Created:

Updated:

Platform:

Replies:

146112 Jul 20,2019 10:06 AM UTC Aug 5,2019 04:50 AM UTC Blazor 9
loading
Tags: Scheduler
Riyan Afriyanto
Asked On July 20, 2019 10:06 AM UTC

How to hide ScheduleResources on Schedule, but I want it exist for Add new Event

Riyan Afriyanto
Replied On July 20, 2019 10:19 AM UTC

img like this

Attachment: Sch_resource_1f007ec7.zip

Arun Palaniyandi [Syncfusion]
Replied On July 22, 2019 12:46 PM UTC

Hi Riyan , 
Thanks for contacting Syncfusion support. 
Kindly remove the ScheduleGroup property (as highlighted) to render default Schedule in UI and to display resource option only in editor window.  
 

<EjsSchedule ID="schedule" Width="100%" Height="650px" SelectedDate="new DateTime(2018, 3, 4)">
  <ScheduleGroup Resources="@GroupData"></ScheduleGroup>   // don’t give 
            <ScheduleResources>                <ScheduleResource DataSource="@ResourceData" Field="AirlineId" Title="Airline Name" Name="Airlines" TextField="AirlineName" IdField="AirlineId" ColorField="AirlineColor" AllowMultiple="true"></ScheduleResource>            </ScheduleResources>            <ScheduleEventSettings DataSource="@GenerateEvents()">                <ScheduleField>                    <FieldSubject Title="Travel Summary" Name="Subject"></FieldSubject>                    <FieldLocation Title="Place" Name="Location"></FieldLocation>                    <FieldDescription Title="Comments" Name="Description"></FieldDescription>                    <FieldStartTime Title="Departure Time" Name="StartTime"></FieldStartTime>                    <FieldEndTime Title="Arrival Time" Name="EndTime"></FieldEndTime>                </ScheduleField>            </ScheduleEventSettings>        </EjsSchedule>
 




Please let us know if you need further assistance.  

Regards,  
Arun P.  


Riyan Afriyanto
Replied On July 23, 2019 03:12 AM UTC

Hi Arun,
thank you for your answer. But can I create 2 resource option in editor window, like as parent to child dropdown

I've follow your code, but It's cannot to create 2 resource option

Arun Palaniyandi [Syncfusion]
Replied On July 24, 2019 11:20 AM UTC

Hi Riyan, 

Thanks for your update. 

Based on your requirement, we have modified our previous sample to display parent-child resource options in editor window. 
 

  <div class="content-wrapper">
        <EjsSchedule ID="schedule" Width="100%" Height="650px" SelectedDate="new DateTime(2018, 4, 4)" CurrentView="View.TimelineWeek">
            <ScheduleResources>
 
// 2 resources
                <ScheduleResource DataSource="@ProjectData" Field="ProjectId" Title="Choose Project" Name="Projects" TextField="text" IdField="id" ColorField="color"></ScheduleResource>
                <ScheduleResource DataSource="@TaskData" Field="TaskId" Title="Category" Name="Categories" TextField="text" IdField="id" GroupIDField="groupId" ColorField="color" AllowMultiple="true"></ScheduleResource>

            </ScheduleResources>
            <ScheduleViews>
                <ScheduleView Option="View.TimelineDay"></ScheduleView>
                <ScheduleView Option="View.TimelineWeek"></ScheduleView>
                <ScheduleView Option="View.TimelineWorkWeek"></ScheduleView>
                <ScheduleView Option="View.TimelineMonth"></ScheduleView>
                <ScheduleView Option="View.Agenda"></ScheduleView>
            </ScheduleViews>
            <ScheduleEventSettings DataSource="@Data.GetResourceData()"></ScheduleEventSettings>
        </EjsSchedule>
    </div>
</div>
 
  
  

@functions{
 
  
    static ScheduleData Data = new ScheduleData(); 
  
    public string[] GroupData = new string[] { "Projects", "Categories" };
    private List<object> ProjectData { get; set; } = new List<object> {
        new {text = "PROJECT 1", id= 1, color= "#cb6bb2"},
        new {text = "PROJECT 2", id= 2, color= "#56ca85"},
        new {text = "PROJECT 3", id= 3, color= "#df5286"}
    };
    private List<object> TaskData { get; set; } = new List<object> {
        new { text = "Nancy", id= 1, groupId = 1, color = "#df5286" },
        new { text = "Steven", id= 2, groupId = 1, color = "#7fa900" },
        new { text = "Robert", id= 3, groupId = 2, color = "#ea7a57" },
        new { text = "Smith", id= 4, groupId = 2, color = "#5978ee" },
        new { text = "Micheal", id= 5, groupId = 3, color = "#df5286" },
        new { text = "Root", id= 6, groupId = 3, color = "#00bdae" }
    };
 
  
} 

 


Please check the above shared sample and let us know if you need further assistance.  

Regards,  
Arun P.  


Riyan Afriyanto
Replied On July 30, 2019 08:14 AM UTC

Hi Arun, 
  It works for now

  Thank You so much

Regards
  Riyan

Riyan Afriyanto
Replied On July 30, 2019 11:31 AM UTC

there is an example for CRUD operation on schedule from API?

Hareesh Balasubramanian [Syncfusion]
Replied On July 31, 2019 02:43 PM UTC

Hi Riyan, 

Thanks for your update. 

Currently DataManger will not support for WebApiAdaptor, we have already logged the below feature task and will be implemented in Volume 3, 2019 main release which is expected to be rollout by the end of September 2019. 

Alternatively we have prepared a CRUD sample using ODATAV4Adaptor, which can be downloaded from the following link, 

Regards, 
Hareesh 


Riyan Afriyanto
Replied On August 5, 2019 02:24 AM UTC

Hi,
Hareesh

     Thank you for the information

Karthigeyan Krishnamurthi [Syncfusion]
Replied On August 5, 2019 04:50 AM UTC

Hi Ryan, 

Most welcome 😊 

Regards, 
Karthi 


CONFIRMATION

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

Live Chat Icon For mobile
Live Chat Icon