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

Why does "MinTimeRulerExtent" change "VisibleRangeChangedCommand" execute?

1 Answer 174 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
samin
Top achievements
Rank 1
samin asked on 16 May 2011, 01:26 PM

Hi,
When user change one of "MinTimeRulerExtent" or "MinorTickLength" or "MajorTickLength" VisibleRangeChangedCommand executed!
I load appointment in lazy mode. so each change causes to load appointment again.....

 when VisibleRange doesn't change.....why VisibleRangeChangedCommand  execute!


<telerik:RadDropDownButton  Width="30" Height="22" telerik:StyleManager.Theme="Office_Blue"  >
                                    <telerik:RadDropDownButton.Content>
                                        <Image Source="../../AppResources/Images/Scheduler/fugue _node_deselect_16x16.png" />
                                    </telerik:RadDropDownButton.Content>
                                    <telerik:RadDropDownButton.DropDownContent>
                                        <Grid x:Name="PopupRoot">
                                            <Path Data="M7.0710683,0 L14.142137,7.0710683 L0,7.0710683 z" Fill="#FFF4F4F4" HorizontalAlignment="Left" Height="7.071" Margin="10,-6,0,0" Stretch="Fill" UseLayoutRounding="False" VerticalAlignment="Top" Width="14.142">
                                                <Path.Effect>
                                                    <DropShadowEffect Direction="90" Opacity="0.4" ShadowDepth="1" BlurRadius="0"/>
                                                </Path.Effect>
                                            </Path>
                                            <StackPanel FlowDirection="RightToLeft">
                                                <TextBlock Text="بزرگنمايي: " VerticalAlignment="Center"  Margin="8" />
                                                <Slider Minimum="{Binding ActualHeight, ElementName=radScheduler}" Maximum="5000" Margin="8 0 8 10"
                        VerticalAlignment="Center"
                        Value="{Binding ActiveViewDefinition.MinTimeRulerExtent, ElementName=radScheduler, Mode=TwoWay,FallbackValue=100}" />
 
                                                <TextBlock Text="زمان بازه هاي فرعي: " VerticalAlignment="Center" Margin="8" />
 
                                                <telerik:RadComboBox Margin="8 0 8 15" VerticalAlignment="Center" SelectedIndex="0"
                        SelectedItem="{Binding ActiveViewDefinition.MinorTickLength, ElementName=radScheduler, Mode=TwoWay}">
                                                    <telerik:RadComboBox.ItemTemplate>
                                                        <DataTemplate>
                                                            <TextBlock Text="{Binding ., Converter={StaticResource TickConverter}}" />
                                                        </DataTemplate>
                                                    </telerik:RadComboBox.ItemTemplate>
                                                    <scheduleView:AutomaticTickLengthProvider />
                                                    <scheduleView:FixedTickLengthProvider TickLength="0:1" />
                                                    <scheduleView:FixedTickLengthProvider TickLength="0:5" />
                                                    <scheduleView:FixedTickLengthProvider TickLength="0:10" />
                                                    <scheduleView:FixedTickLengthProvider TickLength="0:15" />
                                                    <scheduleView:FixedTickLengthProvider TickLength="0:30" />
                                                    <scheduleView:FixedTickLengthProvider TickLength="1:00" />
                                                </telerik:RadComboBox>
 
                                                <TextBlock Text="زمان بازه هاي اصلي: " VerticalAlignment="Center" Margin="8" />
 
                                                <telerik:RadComboBox Margin="8 0 8 10" VerticalAlignment="Center" SelectedIndex="0"
                        SelectedItem="{Binding ActiveViewDefinition.MajorTickLength, ElementName=radScheduler, Mode=TwoWay}">
                                                    <telerik:RadComboBox.ItemTemplate>
                                                        <DataTemplate>
                                                            <TextBlock Text="{Binding ., Converter={StaticResource TickConverter}}" />
                                                        </DataTemplate>
                                                    </telerik:RadComboBox.ItemTemplate>
                                                    <scheduleView:AutomaticTickLengthProvider />
                                                    <scheduleView:FixedTickLengthProvider TickLength="0:30" />
                                                    <scheduleView:FixedTickLengthProvider TickLength="1:00" />
                                                    <scheduleView:FixedTickLengthProvider TickLength="3:00" />
                                                    <scheduleView:FixedTickLengthProvider TickLength="6:00" />
                                                    <scheduleView:FixedTickLengthProvider TickLength="12:00" />
                                                    <scheduleView:FixedTickLengthProvider TickLength="1.00:00" />
                                                </telerik:RadComboBox>
                                            </StackPanel>
                                        </Grid>
                                    </telerik:RadDropDownButton.DropDownContent>
                                </telerik:RadDropDownButton>

1 Answer, 1 is accepted

Sort by
0
Accepted
Valeri Hristov
Telerik team
answered on 18 May 2011, 10:32 AM
Hello samin,

You are correct, the VisibleRangeChangedCommand is needlessly executed when the most of the properties in the ViewDefinition are changed. This is a bug in RadScheduleView and we will do our best to fix it for one of the upcoming internal builds.

Your points have been updated.

Kind regards,
Valeri Hristov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ScheduleView
Asked by
samin
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Share this question
or