Setting resource header width; Programmatically select appointments

Hi, i have 2 questions regarding SfScheduler:

1)

 How to set resource header width? i've tried with the following xaml code:


        <Style TargetType="syncfusion:ResourceHeaderControl">

            <Setter Property="Width"

                    Value="300" />

        </Style>


But it does nothing, on the other hand, if i set "Height" instead of Width it does actually work, but nothing with Width or MinWidth, is it a bug? 

My scheduler view is set to:

                                    ViewType="TimelineDay"

                                    ResourceGroupType="Resource"


2)

How do I highlight/select an appointment in the scheduler from code? i have a logic that finds appointment in other control and i want it to also select/highlight/focus on the appointment in the scheduler control


Thanks,

Dmitri.


3 Replies

SS SaiGanesh Sakthivel Syncfusion Team February 23, 2022 02:22 PM UTC

Hi Dmitri, 
 
#Regarding Increase the width of the Resourceview 
Your requirement can be achieved with the help of ResourceHeaderSize in the TimelineViewSettings in SfScheduler. Please refer to the following code snippet for your reference. 
 
Code snippet 
<syncfusion:SfScheduler.TimelineViewSettings> 
    <syncfusion:TimelineViewSettings ResourceHeaderSize="100"/> 
</syncfusion:SfScheduler.TimelineViewSettings> 
 
Please refer to the following UG documentation for your reference. 
 
#Regarding SelectedAppointment property in SfScheduler 
As of now scheduler doesn’t have the support for the same. We have already logged a feature request for the same. We will implement this feature in any of our upcoming release.  
 
 
If you have any more specification/suggestions to the feature request, you can add it as a comment in the portal and cast your vote to make it count. 
 
Regards, 
SaiGanesh Sakthivel 



DM Dmitri February 23, 2022 09:18 PM UTC

Hi SaiGanesh ,


ResourceHeaderSize  Has worked!


Thanks,

Dmitri.



SS SaiGanesh Sakthivel Syncfusion Team February 24, 2022 10:55 AM UTC

Hi Dmitri, 
 
We are glad to know that the given solution helped to achieve your requirement. Please let us know if you need any further assistance.  
 
Regards,
SaiGanesh Sakthivel
 


Loader.
Up arrow icon