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

RadCombobox problem with RadWindow

1 Answer 66 Views
Window
This is a migrated thread and some comments may be shown as answers.
Raed
Top achievements
Rank 1
Raed asked on 02 Jan 2011, 09:58 AM
Hi,

I am having problems with RadCombobox inside a RadWindow. The dropdownlist goes behind the window.  I am using the 11/10/2010 release of the wpf controls.

Here is the code.

Window1.xaml
<Window
   x:Class="Window1" x:Name="Window1"
   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
   xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
   xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
   xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Width="300" Height="200" WindowStartupLocation="CenterScreen">
   <Grid>
      <Button Name="btn" Content="Press the Button" Margin="30"/>
   </Grid>
</Window>

Window.xaml.vb
Imports Telerik.Windows.Controls

Class Window1
   Public Sub New()

      ' This call is required by the Windows Form Designer.
      InitializeComponent()

   End Sub

   Private Sub btn_Click(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles btn.Click
      Dim wnd As New Window2


      wnd.ShowDialog()
   End Sub
End Class


Window2.xaml
<telerik:RadWindow
   x:Class="Window2" x:Name="Window2"
   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
   xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
   xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
   xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" WindowStartupLocation="CenterOwner">
   <Grid>
      <StackPanel>
         <telerik:RadComboBox Name="com1"/>
         <telerik:RadComboBox Name="com2"/>
         <telerik:RadComboBox Name="com3"/>
      </StackPanel>
   </Grid>
</telerik:RadWindow>

Window2.xaml.vb
Class Window2
   Public Sub New()

      ' This call is required by the Windows Form Designer.
      InitializeComponent()

      ' Add any initialization after the InitializeComponent() call.
      com1.Items.Add("pppp")
      com1.Items.Add("QQQQ")
      com1.Items.Add("TTTTT")
      com1.SelectedIndex = 0

      com2.Items.Add("aaaaa")
      com2.Items.Add("bbbbb")
      com2.Items.Add("ccccc")
      com2.SelectedIndex = 0

      com3.Items.Add("11111")
      com3.Items.Add("22222")
      com3.Items.Add("33333")
      com3.SelectedIndex = 0
   End Sub
End Class



Thanks,

1 Answer, 1 is accepted

Sort by
0
Accepted
Konstantina
Telerik team
answered on 04 Jan 2011, 12:49 PM
Hi Raed,

Thank you for contacting us.

I tried to reproduce the issue, but to no avail. Could you please go throughout the sample project I am sending you and let me know if I am doing something wrong. I am also sending you a short video illustrating my attempt.

Looking forward to your reply.

All the best,
Konstantina
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
Tags
Window
Asked by
Raed
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or