Multiple Dropdown content in RadDropDownButton

2 posts, 0 answers
  1. VS
    VS avatar
    101 posts
    Member since:
    Jul 2008

    Posted 01 Oct 2012 Link to this post

    Am having some issues with the Dropdown content in RadDropDownButton.
    I get multiple instances of the dropdown content (attached screen shot).
    Below is my xaml.

    <telerik:RadDropDownButton AutoOpenDelay="0:0:0.0" Grid.Column="1" Grid.Row="0" FlowDirection="RightToLeft" DropDownButtonPosition="Left" 
                                                           Visibility="{TemplateBinding SearchHistoryListVisibility}" KeepOpen="False" DropDownMaxHeight="170"
                                                           IsOpen="{Binding IsSearchHistoryOpen, Mode=TwoWay}">
                                                    <ColumnDefinition Width="{Binding SearchHistoryWidth}" />
                                                <ListBox Grid.Column="0" FlowDirection="LeftToRight" 
                                                         ItemContainerStyle="{StaticResource SearchHistoryItemStyle}" BorderThickness="0.25" BorderBrush="DarkGray"
                                                         ItemsSource="{Binding Path=SearchHistoryList}" 
                                                         SelectedValue="{Binding Path=SelectedSearchQuery, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" 
                                                         HorizontalAlignment="Stretch" />

    Am trying to close the dropdown content on click of a listbox item. Am setting  IsSearchHistoryOpen=false from SelectedSearchQuery property.

    This happens only when I specify Mode=TwoWay in 
    IsOpen="{Binding IsSearchHistoryOpen, Mode=TwoWay}".
    But if I dont specify the twoway mode, the dropdowncontent doesnt close when i click the listbox item.

    Any help is much appreciated.

  2. Zarko
    Zarko avatar
    755 posts

    Posted 04 Oct 2012 Link to this post

    Hello Varikkara,
    Thank you for the feedback! Unfortunately I wasn't able to reproduce this issue so I'd like to ask you for some more code snippets, the exact version of your dlls and steps to reproduce the bug or a sample project.
    I've attached the sample project I used for testing so you could examine it and tell us what we're doing wrong.
    We're looking forward to hearing from you.
    p.s. From what I see in the png you're using a custom RadDropDownButton style and if that's true could you please test your solution without it ?

    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top