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

EditAppointmentTemplate Not Opening Centered

2 Answers 41 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 01 Aug 2011, 06:28 AM
Hi,

We have a very customised EditAppointmentTemplate with many other Telerik controls added bound to our own ViewModel.
However we have a positioning issue on open that we'd like to resolve.

It appears that whenever you add a RadTabControl on with many RadTabItems and a list of controls within each tab, the EditAppointmentTemplate dialog does not open in the center of the screen.

Does anyone know how to open it centered when it's a template?
Here's some example code that you could add to the bottom to test.

<Grid Grid.Row="5">
                   <Grid.DataContext>
                       <local:MyDialogViewModel />
                   </Grid.DataContext>
                   <telerik:RadTabControl>
                       <telerik:RadTabItem Header="Test 1">
                           <Grid>
                               <Grid.RowDefinitions>
                                   <RowDefinition />
                                   <RowDefinition />
                                   <RowDefinition />
                                   <RowDefinition />
                                   <RowDefinition />
                                   <RowDefinition />
                                   <RowDefinition />
                                   <RowDefinition />
                                   <RowDefinition />
                                   <RowDefinition />
                                   <RowDefinition />
                                   <RowDefinition />
                                   <RowDefinition />
                                   <RowDefinition />
                               </Grid.RowDefinitions>
                               <TextBox Text="{Binding MyTest}"
                                        Grid.Row="0" />
                               <TextBox Text="{Binding MyTest}"
                                        Grid.Row="1" />
                               <TextBox Text="{Binding MyTest}"
                                        Grid.Row="2" />
                               <TextBox Text="{Binding MyTest}"
                                        Grid.Row="3" />
                               <TextBox Text="{Binding MyTest}"
                                        Grid.Row="4" />
                               <TextBox Text="{Binding MyTest}"
                                        Grid.Row="5" />
                               <TextBox Text="{Binding MyTest}"
                                        Grid.Row="6" />
                               <TextBox Text="{Binding MyTest}"
                                        Grid.Row="7" />
                               <TextBox Text="{Binding MyTest}"
                                        Grid.Row="8" />
                               <TextBox Text="{Binding MyTest}"
                                        Grid.Row="9" />
                               <TextBox Text="{Binding MyTest}"
                                        Grid.Row="10" />
                           </Grid>
                       </telerik:RadTabItem>
                       <telerik:RadTabItem Header="Test 2">
                           <TextBox Text="{Binding MyTest}" />
                       </telerik:RadTabItem>
                       <telerik:RadTabItem Header="Test 3">
                           <TextBox Text="{Binding MyTest}" />
                       </telerik:RadTabItem>
                       <telerik:RadTabItem Header="Test 4">
                           <TextBox Text="{Binding MyTest}" />
                       </telerik:RadTabItem>
                       <telerik:RadTabItem Header="Test 5">
                           <TextBox Text="{Binding MyTest}" />
                       </telerik:RadTabItem>
                   </telerik:RadTabControl>
               </Grid>

You'll see that it flashes off center then is not centered.
Thanks

2 Answers, 1 is accepted

Sort by
0
Scott
Top achievements
Rank 1
answered on 02 Aug 2011, 09:37 PM
I'm seeing something similar to this with the Q2 release (I verified it didn't do this with Q1). I have a customized edit dialog but it isn't that complicated. It has a Grid with a bunch of TextBlocks.

Every time I double-click an appointment you see the dialog in the lower right side of the browser for a moment then it centers itsself. Almost randomly, occasionally the dialog will not center and stay in the lower right corner.

I cannot reproduce the centering problem with the Telerik examples but the initial positioning of the dialog in the lower right does happen.

Definitely a regression.
0
Yana
Telerik team
answered on 04 Aug 2011, 09:58 AM
Hello,

The reason for this behavior are the changes we made in RadWindow for the Q2. The problem is partially fixed in the latest internal build (2011.2.0801), could you please download it and give it a try?

All the best,
Yana
the Telerik team

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

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