This is a migrated thread and some comments may be shown as answers.

Schedule View Group Width

3 Answers 85 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 1
Marc asked on 03 Sep 2014, 05:31 AM
Hi,

I followed the "GroupHeader template" example in the wpf demo. I would like to edit the categories default width. For exemple, with 3 categories, I would like the first two categories to take 50% of the space, and the last one the 50% remaining, instead of having 33% for each. I tried editing my template used for "GroupHeaderContentTemplateSelector" but it only changes the header width, not all the column width. Thank you in advance.

Marc

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 03 Sep 2014, 11:02 AM
Hi Marc,

I am afraid that the Width of the GroupHeaders cannot be set to percentages - actually it depends on a few other things except the GroupHeaderContentTemplateSelector, such as the count of the intersecting appointments inside certain groups, and is calculated in the internal code of the ScheduleView. In the GroupHeaderContentTemplateSelector the set Width will be considered as a MinWidth.

Regards,
Yana
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Martin
Top achievements
Rank 1
answered on 08 Oct 2018, 02:57 PM

Hello Yana,

 

I tried to achieve something similar to Marc's scenario but something is still missing. I would like to get the first GroupHeader to be e.g. twice the width of the next groupHeader.

Something like this:

|      FIrst Header           |  second |

| Mon | Tue | Wed | Thu |M|T|W|T|

To achieve this, I tried to use a GroupHeaderStyleSelector and set the binding of the Min- and MaxColumnWidth according to the positional condition.

Unfortunately, I only get something you can see on the attached file. I also looked through your examples and the documentation on styling the GroupHeader with no luck.

Is the desired behaviour possible? Any help would be appreciated.

Best regards

0
Dilyan Traykov
Telerik team
answered on 11 Oct 2018, 07:25 AM
Hello Martin,

As specified by my colleague, setting a specific width for the group panels is not possible. You can, however, try to control these widths using the approach specified in this article.

Could you please have a look and let me know whether such an approach would work for you? I look forward to your reply.

Regards,
Dilyan Traykov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
ScheduleView
Asked by
Marc
Top achievements
Rank 1
Answers by
Yana
Telerik team
Martin
Top achievements
Rank 1
Dilyan Traykov
Telerik team
Share this question
or