How to add combox to column header

2 posts, 1 answers
  1. Dian
    Dian avatar
    16 posts
    Member since:
    Oct 2010

    Posted 14 Jun 2011 Link to this post

    Hi,

    I tried to add combox to one of the column header in my TreeListView as below, but it doesn't work.

     

    <telerik:GridViewDataColumn  DataMemberBinding="{Binding UnweightedCount, Mode=OneWay}">
        <telerik:GridViewColumn.Header>
            <DataTemplate>
                <ComboBox >
                    <ComboBoxItem  Name="cbi1">Item1</ComboBoxItem>
                    <ComboBoxItem  Name="cbi2">Item2</ComboBoxItem>
                    <ComboBoxItem  Name="cbi3">Item3</ComboBoxItem>
                </ComboBox>
            </DataTemplate>
        </telerik:GridViewColumn.Header>
    </telerik:GridViewDataColumn>
     

    By the way, I was going to attach some pictures, I couldn't find attach button when I edit this thread.

    Regarding,

    Fendy
  2. Answer
    Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 15 Jun 2011 Link to this post

    Hello,

     You do not need DataTemplate for headers - just declare desired UI elements. 

    Best wishes,
    Vlad
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top