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. Image for the cookie policy date
close icon

MVC Schedule issues

-Does DayStartHour property exist in MVC? If yes how do I set it? If not, Is there
a work around to achive the same?

-Need to reduce the CellWidth only when clicking the Day view mode on the control in
order to display several resources without scrolling horizontaly


1 Reply

DK Divyaprasuna K Syncfusion Team February 14, 2011 01:49 PM UTC

Hi Carlos,

Thanks for your interest in Syncfusion products.


The cellwidth can be reduced in the day view mode by adjusting the cellWidth property value by dividing the total width into equal parts based on the number of resources we need to add. With this change you can display several resources without scrolling horizontally. In the below sample we have added three resources and the schedule total width is ‘711’, dividing this by ‘3’ we get ‘~237’ as the resultant width of each resource, in order to avoid the scrolling issue we reduced '22px' from the resultant value, hence the cellWidth value is '215px' for each resource.

Following code snippet illustrates how to acheive this :

<%=Html.Syncfusion().Schedule("MySchedule", "ScheduleModel")
. . .

.Width(711)
.cellWidth(215)

. . .
. . .

%>

Here is the sample :

Schedule476463463.zip

With regards to your second query, we dont have DayStartHour, however, we have ‘BusinessStartHour’ and ‘BusinessEndHour’ properties for the working hours in the schedule, and it is differentiated with color in display.You may refer to our online samples for this requirement. Would you please let us know, whether you are expecting this property or the timeline view (i.e. nothing else will be displayed except the working hours)?



Regards,
Divyaprasuna. K





Loader.
Live Chat Icon For mobile
Up arrow icon