Posted 22 November 2017, 1:50 am EST
Hi Ruchir,
We are using C1Schedular version 4.0.20111.125 and switching between Day view to Work Week view getting following error can you please what might be the issue ?
Object reference not set to an instance of an object. at C1.Silverlight.Schedule.AppointmentsCoverPane.IsPaneElementInternal(FrameworkElement element)
Following code is defined in xaml
<sr:ToolBar x:Name="tbarButtons" HorizontalAlignment="Stretch" Grid.Row="0">
<StackPanel Orientation="Horizontal" >
<Button x:Name="btnToday" Content="Today"
Style="{StaticResource buttonStyle}" Click="btnToday_Click"/>
<!--<Rectangle Width="0.5" Height="Auto" VerticalAlignment="Stretch" Margin="0,3"
Fill="{StaticResource BorderBrush}"/>-->
<RadioButton x:Name="btnDay" Style="{StaticResource radioButtonStyle}" Content="Day"
c1:CommandExtensions.CommandTarget="{Binding ElementName=sched1}"
c1:CommandExtensions.Command="sched:C1Scheduler.ChangeStyleCommand"
c1:CommandExtensions.CommandParameter="{Binding Path=OneDayStyle, ElementName=sched1}" />
<RadioButton x:Name="btnWorkWeek" Style="{StaticResource radioButtonStyle}" Content="Work Week"
c1:CommandExtensions.CommandTarget="{Binding ElementName=sched1}"
c1:CommandExtensions.Command="sched:C1Scheduler.ChangeStyleCommand"
c1:CommandExtensions.CommandParameter="{Binding Path=WorkingWeekStyle, ElementName=sched1}"/>
<RadioButton x:Name="btnWeek" Style="{StaticResource radioButtonStyle}" Content="Week"
c1:CommandExtensions.CommandTarget="{Binding ElementName=sched1}"
c1:CommandExtensions.Command="sched:C1Scheduler.ChangeStyleCommand"
c1:CommandExtensions.CommandParameter="{Binding Path=WeekStyle, ElementName=sched1}"/>
<RadioButton x:Name="btnMonth" Style="{StaticResource radioButtonStyle}" Content="Month"
c1:CommandExtensions.CommandTarget="{Binding ElementName=sched1}"
c1:CommandExtensions.Command="sched:C1Scheduler.ChangeStyleCommand"
c1:CommandExtensions.CommandParameter="{Binding Path=MonthStyle, ElementName=sched1}"/>
<!--<Rectangle Width="0.5" Height="Auto" VerticalAlignment="Stretch" Margin="0,3"
Fill="{StaticResource BorderBrush}"/>-->
<Button x:Name="hypArrowPrevious" Style="{StaticResource ImageButtonStyle}" Margin="5,0,5,0" >
<Image x:Name="imgArrowPrevious" Source="resources/icons/Back 16 n p.png"/>
</Button>
<gControls:gDateTimePicker x:Name="dtScheduleDateTime" TimeZoneSource="None" Style="{StaticResource gDateTimePickerStyle}"/>
<!--<basics:DatePicker x:Name="dtScheduleDateTime" />-->
<Button x:Name="hypArrowNext" Style="{StaticResource ImageButtonStyle}" Margin="5,0,5,0">
<Image x:Name="imgArrowNext" Source="resources/icons/Forward 16 h p.png"/>
</Button>
</StackPanel>
</sr:ToolBar>