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

Month View empty Subject

3 Answers 39 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Pooja
Top achievements
Rank 1
Pooja asked on 26 Sep 2011, 12:47 PM
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?

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 29 Sep 2011, 11:20 AM
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 >>

0
Pooja
Top achievements
Rank 1
answered on 30 Sep 2011, 05:06 AM
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>
0
Yana
Telerik team
answered on 05 Oct 2011, 09:55 AM
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 >>

Tags
ScheduleView
Asked by
Pooja
Top achievements
Rank 1
Answers by
Yana
Telerik team
Pooja
Top achievements
Rank 1
Share this question
or