EditAppointmentTemplate Not Opening Centered

3 posts, 0 answers
  1. Simon
    Simon avatar
    56 posts
    Member since:
    May 2008

    Posted 01 Aug 2011 Link to this post

    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. Scott
    Scott avatar
    66 posts
    Member since:
    Nov 2009

    Posted 02 Aug 2011 Link to this post

    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.
  3. Yana
    Admin
    Yana avatar
    4714 posts

    Posted 04 Aug 2011 Link to this post

    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 >>

Back to Top