Pinning rad pane resets databound comboboxes

2 posts, 0 answers
  1. Andrew
    Andrew avatar
    37 posts
    Member since:
    Dec 2012

    Posted 02 Apr 2013 Link to this post

    I have a number of databound comboboxes in a rad pane that load fine.

    I have an issue that when I try and pin the pane all the comboboxes reset and I get

    System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='comboItems'

    a number of times.

    Where combo items is defined as

    <DataTemplate x:Key="DrillComboTemplate" >
                        <ComboBox SelectedValue="{Binding Value}" Width="{Binding Width}" HorizontalContentAlignment="{Binding Alignment}" ItemsSource="{DynamicResource comboItems}" />


  2. Vladi
    Vladi avatar
    749 posts

    Posted 05 Apr 2013 Link to this post


    When a Pane is pinned/unpinned its content is moved to a popup and the DataContext is reset which is causing the selection of the ComboBoxes to be lost.

    All you need to do to solve this issue is to set the DataContext of the Pane. The next code snippet shows the described approach:
        <local:ViewModel x:Key="ViewModel"/>
    <Grid DataContext="{StaticResource ViewModel}" x:Name="LayoutGrid">
                    <telerik:RadPane Header="Pane 1" DataContext="{Binding ElementName=LayoutGrid, Path=DataContext}">
                            <ComboBox ItemsSource="{Binding Items}"

    Hope this is helpful.

    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top