Month View empty Subject

4 posts, 0 answers
  1. Pooja
    Pooja avatar
    55 posts
    Member since:
    Feb 2011

    Posted 26 Sep 2011 Link to this post

    I have my AppointmentTemplate as 

    <DataTemplate x:Key="AppointmentItemTemplate">
           <StackPanel>
               <TextBlock telerik:DragDropManager.AllowDrag="False" TextWrapping="Wrap" Text="{Binding Subject}" TextTrimming="WordEllipsis"/>
               <TextBlock telerik:DragDropManager.AllowDrag="False" TextWrapping="Wrap" Text="{Binding Appointment.Location}" TextTrimming="WordEllipsis"/>
               <TextBlock telerik:DragDropManager.AllowDrag="False" TextWrapping="Wrap" Text="{Binding AuthorName}" TextTrimming="WordEllipsis"/>
           </StackPanel>
       </DataTemplate>

    If Subject does not have value, I want the Location data to be shown. Week and Day View shows it correctly, but Month View have empty entries. Please refer the attached screenshot. How can I change this behavior?
  2. Yana
    Admin
    Yana avatar
    4709 posts

    Posted 29 Sep 2011 Link to this post

    Hi Pooja,

    I've tried to reproduce the described issue but to no avail. Please check the attached project for a reference. Am I missing something?

    Best wishes,
    Yana
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. Pooja
    Pooja avatar
    55 posts
    Member since:
    Feb 2011

    Posted 30 Sep 2011 Link to this post

    This issue does not comes always. Try the below datatemplate. Add some appointment that have empty subject, switch between Month and Week views randomly. At some point of time you will see empty appointments.
    <DataTemplate x:Key="AppointmentItemTemplate">
                   <Grid>
                       <Grid.RowDefinitions>
                           <RowDefinition Height="Auto" />
                           <RowDefinition Height="Auto" />
                           <RowDefinition Height="Auto" />
                           <RowDefinition Height="*"/>
                       </Grid.RowDefinitions>
                       <TextBlock telerik:DragDropManager.AllowDrag="False" Text="{Binding Subject}" TextTrimming="WordEllipsis" Grid.Row="0"   TextWrapping="Wrap" />
                   <TextBlock telerik:DragDropManager.AllowDrag="False"  Text="{Binding Appointment.Location}" TextTrimming="WordEllipsis"   Grid.Row="1"   />
                   <TextBlock telerik:DragDropManager.AllowDrag="False"  Text="{Binding Appointment.Organizer}" TextTrimming="WordEllipsis"   Grid.Row="2" />
                       <StackPanel Orientation="Horizontal"   HorizontalAlignment="Right"  Grid.Row="3" >
                           <Image Source="{Binding Appointment.ImportanceImageSource}" Width="16" Height="16" HorizontalAlignment="Right" />
                           <Image Source="{Binding Appointment.AttachmentImageSource}" Width="16" Height="16" HorizontalAlignment="Right" />
                       </StackPanel>
                   </Grid>
               </DataTemplate>
  4. Yana
    Admin
    Yana avatar
    4709 posts

    Posted 05 Oct 2011 Link to this post

    Hello Pooja,

    I've attached a short video showing our attempt to reproduce the issue, still without much success.  Can you open a support ticket and send us a runnable project there? Thanks in advance

    Kind regards,
    Yana
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top