Category row template

Hello!

Given the following demo: 

https://blazor.syncfusion.com/demos/scheduler/timeline-grouping?theme=bootstrap4&_gl=1*e46nq6*_ga*MzAzOTM3OTk2LjE2NTcxMDEyODI.*_ga_WC4JKKPHH0*MTY2MTI0MjkxNy4yMS4xLjE2NjEyNDUwNDcuMC4wLjA.&_ga=2.176824357.1605772683.1661149594-303937996.1657101282


Is it possible to control the category / subcategory row template? For example to have a total or events planned in that day for that specific project and the total number of hours?

Like in the mock-up bellow:




Thanks a lot!


3 Replies

RM Ruksar Moosa Sait Syncfusion Team August 24, 2022 10:32 AM UTC

Hi Cernat ,


We have checked on your requirement Control the category / subcategory row templateat our end and we regret to let you know that we do not have inbuild support to provide row template in the current Scheduler architecture.


Kindly let us know if you need any further assistance.


Regards,

Ruksar Moosa Sait



CE Cernat September 15, 2022 10:19 AM UTC

Hi,

Thank you for the reply.

 

I have another question related to templating. In the snippet bellow, the OnClick event does not fire.

Is this a limitation of the template for ScheduleHeaderRow? You cannot add components in it?




RM Ruksar Moosa Sait Syncfusion Team September 16, 2022 07:49 AM UTC

Hi Cernat,


We have checked on your requirement and let you know that the ScheduleHeaderRows with option Date does not have template support. You can use the DateHeaderTemplate property of the Scheduler to customize the date header like the below code.


[Index.razor]

<ScheduleTemplates>

        <DateHeaderTemplate>

            @{

                var context = new TemplateContext();

                    <div><SfButton IsPrimary="true" @onclick="OnPrintClick">Button</SfButton>@(context.Date.ToString("dddd"))</div>

            }                    

        </DateHeaderTemplate>

    </ScheduleTemplates>


Output:

Graphical user interface, application, table, Excel

Description automatically generated


Kindly try the attached sample and let us know if you need further assistance.


Regards,

Ruksar Moosa Sait


Attachment: BlazorDateHeaderTemplate_4d3ad13b.zip

Loader.
Up arrow icon