Different Resource Height

3 posts, 0 answers
  1. Jerry
    Jerry avatar
    70 posts
    Member since:
    Jan 2011

    Posted 18 Dec 2013 Link to this post

    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. Jerry
    Jerry avatar
    70 posts
    Member since:
    Jan 2011

    Posted 18 Dec 2013 Link to this post

    <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>
  3. DevCraft banner
  4. Masha
    Admin
    Masha avatar
    355 posts

    Posted 19 Dec 2013 Link to this post

    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 >>
Back to Top