Add static items to top of data bound listpicker

Thread is closed for posting
2 posts, 0 answers
  1. Jason
    Jason avatar
    9 posts
    Member since:
    Nov 2008

    Posted 30 Oct 2011 Link to this post


    I have a RadListPicker on my form bound to an ObservableCollection.
    <telerikInput:RadListPicker x:Name="SessionTypesLB" PopupHeader="Select Session Type" InlineModeThreshold="2" ItemsSource="{Binding SessionTypes}" Grid.Row="1" SelectionChanged="SessionTypesLB_SelectionChanged" >
                <StackPanel >
                    <TextBlock Text="{Binding SessionName}" />
                <TextBlock Text="{Binding SessionName}" />

    The listis used in a master-detail solution. The RadListPicker is the master and a ListView contains the details. The RadListPicker SelectionChanged event is used to filter the contents of the details listbox. I should like to be able to remove all filtering by adding an "All" option to the top of the list.

    Any thoughts?
  2. Georgi
    Georgi avatar
    296 posts

    Posted 01 Nov 2011 Link to this post

    Hi Jason,

    Thank you for your question.

    If I understand you correctly, you want to add some additional UI elements on top of a list picker, which is in Popup mode. In this case you can play with the PopupHeader and PopupHeaderTemplate properties and provide the desired layout. Additionally you can directly modify the ControlTemplate property of the control and change the visual tree that lies behind. This however would require more XAML.

    Let me know whether this answers your question. If not could you please be a bit more specific what is the actual scenario you want to achieve. A screenshot would be very helpful.

    Best wishes,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top