Summary Display
Hi, not sure if this is possible but can we display a summary of hours logged and remaining target instead of the date? See below John Edwards.
Thanks for all the help!
SIGN IN To post a reply.
11 Replies
AK
Alagumeena Kalaiselvan
Syncfusion Team
April 13, 2020 09:42 AM UTC
Hi Alex,
Thanks for contacting Syncfusion support!
We have checked your reported case and the Scheduler have support to customize the appearance of date header cells. It can be achievable by using DateHeaderTemplate option. Refer the below code for that.
|
<SfSchedule TValue="ResourceConferenceData" Width="100%" Height="650px" CurrentView="View.Day" SelectedDate="@(new DateTime(2020, 1, 7))">
<ScheduleGroup EnableCompactView="false" AllowGroupEdit="true" Resources="@GroupData"></ScheduleGroup>
<ScheduleResources>
<ScheduleResource TValue="ConferenceData" DataSource="@Conferences" Field="ConferenceId" Title="Attendees" Name="Conferences" TextField="Text" IdField="Id" ColorField="Color" AllowMultiple="true"></ScheduleResource>
</ScheduleResources>
<ScheduleTemplates>
<DateHeaderTemplate>
<div><b>Target</b></div> // Here you can define your customization code for DateHeader cell
<div class="date-text">@(getDateHeaderText((context as TemplateContext).Date))</div>
</DateHeaderTemplate>
</ScheduleTemplates>
...
</SfSchedule>
@code{
public static string getDateHeaderText(DateTime date)
{
return date.ToString("dd ddd", CultureInfo.InvariantCulture);
}
...
} |
Also, you can get this sample using the following link
Sample Link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/ScheduleComponent1440428933
Online Sample Link: https://blazor.syncfusion.com/demos/scheduler/shared-events?theme=bootstrap4
Kindly let us know whether the solution meets your requirement.
Regards
Alagumeena.K
AL
Alex
April 14, 2020 09:44 AM UTC
Thanks - almost what we need but how do we reference the ConferenceData and how can we calculate how many event hours have been added to a resource?
AK
Alagumeena Kalaiselvan
Syncfusion Team
April 15, 2020 01:14 PM UTC
Hi Alex,
Thanks for your update.
Query #1: how to reference the conferenceData ?
The conferenceData can be accessed by defining it’s datasource with static as like below.
|
Public static List<ConferenceData> Conferences { get; set; } = new List<ConferenceData> {
...
}; |
Query #2: how can we calculate how many event hours have been added to a resource?
You can calculate the event hours for a particular resource by filtering the events based on Resource data and calculate the total hours of a specified resource. We modified the already shared sample for your reference which can be get by the below link.
Sample Link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/ScheduleComponent1570800447
Kindly let us know, If the solution helps.
Regards
Alagumeena.K
AL
Alex
April 21, 2020 09:04 AM UTC
Again, not quite working - we need only the selected day's events to be included when calculating event(s) time and we need an individual total for each employee
AK
Alagumeena Kalaiselvan
Syncfusion Team
April 22, 2020 03:52 PM UTC
Hi Alex,
We have validated your query and it can be achievable by filtering the events based on the Resource details but currently the support “Access the resource details via DateHeaderTemplate” is not feasible. So. We considered this as defect and logged the defect report which can be tracked from the following link. Meanwhile, We have prepared a sample which has filtered events hours based on date. Refer the below sample link for that.
Feedback Link: https://www.syncfusion.com/feedback/13721/provide-support-to-access-the-resource-details-in-dateheadertemplate
Also we will include this fix for our upcoming patch release.
Regards
Alagumeena.K
AL
Alex
April 22, 2020 04:06 PM UTC
Thanks - really appreciate all the help although I get an error when running

AL
Alex
April 22, 2020 04:09 PM UTC
Also, there is another issue - as well as not being able to get the Resource Data in the DateHeaderTemplate, I can't see how to get the date in the resource template header?
AK
Alagumeena Kalaiselvan
Syncfusion Team
April 23, 2020 02:29 PM UTC
Hi Alex,
Thanks for your update.
Query #1: Getting console error while running sample
We have checked with your reported error and the currently the latest package version 18.1.0.45 supports the default system region with scheduler. We will update the further details on tomorrow.
Query #2: How to get the date in Resource template header.
In scheduler, every resource associates with all dates. For example, In the case of scheduler week the resource mess with all dates. So, you can use the Scheduler current date for your scenario.
Kindly let us know, If you need further assistance.
Regards
Alagumeena.K
AK
Alagumeena Kalaiselvan
Syncfusion Team
April 24, 2020 02:11 PM UTC
Hi Alex,
As we informed in our previous update, the reported console error has been considered as defect and logged the defect report in the below feedback link. We will fix the issue and update the solution in our upcoming patch release which is scheduled to be rolled out by the end of April, 2020. We appreciate your patience until then.
Feedback Link: https://www.syncfusion.com/feedback/13817/scheduler-loads-with-error-when-the-system-culture-is-other-than-en-us
Regards
Alagumeena.K
AK
Alagumeena Kalaiselvan
Syncfusion Team
May 6, 2020 11:24 AM UTC
Hi Alex,
Sorry for the delay!
We are glad to inform that your reported issue has been fixed and included in our latest package version v18.1.0.48. So, you can upgrade the package to overcome this issue.
Please let us know, If you need further assistance.
Regards
Alagumeena.K
AK
Alagumeena Kalaiselvan
Syncfusion Team
May 6, 2020 12:22 PM UTC
Hi Alex,
Query #1: Getting console error while running the sample
We have fixed the above issue also included in our latest package version.
Query #2: Provide support to access the resource details in DateHeaderTemplate
Currently we are working this issue and we will provide this support for our upcoming patch release. We will notify you, if once the fix is available
Regards
Alagumeena.K
SIGN IN To post a reply.
- 11 Replies
- 2 Participants
-
AL Alex
- Apr 10, 2020 12:23 PM UTC
- May 6, 2020 12:22 PM UTC