RadCombobox problem with RadWindow

2 posts, 1 answers
  1. Raed
    Raed avatar
    7 posts
    Member since:
    Aug 2010

    Posted 02 Jan 2011 Link to this post

    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,
  2. Answer
    Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 04 Jan 2011 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top