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

Different Resource Height

2 Answers 12 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Jerry
Top achievements
Rank 1
Jerry asked on 19 Dec 2013, 04:19 AM
I have the height on each resource set to something different because i want to implement an expand option to show more appointments per resource.

Its not behaving as expected as you can see. it adds some padding. It seems that the tallest resource applies to all other resources unfortunately.

Any ideas?

2 Answers, 1 is accepted

Sort by
0
Jerry
Top achievements
Rank 1
answered on 19 Dec 2013, 04:20 AM
<local:OrientedGroupHeaderContentTemplateSelector.VerticalResourceTemplate>
               <DataTemplate>
                   <Border Background="{Binding Name.Brush}"
                           Width="180"     
                           Height="{Binding Name.Height}"
                     
                           Margin="0 2 2 2">
                       <StackPanel Margin="5" Orientation="Horizontal">
                           <Image Width="30"
                                  Height="30"
                                  Margin="0 5 5 5"
                                  HorizontalAlignment="Left"
                                  VerticalAlignment="Top"
                                  Stretch="UniformToFill"
                                  Source="{Binding Name.Photo}" />
                           <StackPanel Margin="5"
                                       Orientation="Vertical">
                               <TextBlock Foreground="{StaticResource GroupHeaderForeground}"
                                      FontSize="14"
                                      Margin="-2 3 0 5"
                                      Text="{Binding Name.Name}" />
                           <Button Tag="{Binding Name.UserId}" Click="ResourceExpand_Click">Expand</Button>
                           <TextBlock Foreground="{StaticResource GroupHeaderForeground}"
                                      FontSize="12"
                                      Text="{Binding Name.Role}" />
                        
                           </StackPanel>
                       </StackPanel>
                   </Border>
               </DataTemplate>
           </local:OrientedGroupHeaderContentTemplateSelector.VerticalResourceTemplate>
       </local:OrientedGroupHeaderContentTemplateSelector>
0
Masha
Telerik team
answered on 19 Dec 2013, 02:37 PM
Hi Jerry,

I'm afraid that there is no way to have different height of each row in ScheduleView.

We're sorry for the inconvenience.

Regards,
Masha
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
ScheduleView
Asked by
Jerry
Top achievements
Rank 1
Answers by
Jerry
Top achievements
Rank 1
Masha
Telerik team
Share this question
or