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


    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}">
                <ComboBox >
                    <ComboBoxItem  Name="cbi1">Item1</ComboBoxItem>
                    <ComboBoxItem  Name="cbi2">Item2</ComboBoxItem>
                    <ComboBoxItem  Name="cbi3">Item3</ComboBoxItem>

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


  2. Answer
    Vlad avatar
    11100 posts

    Posted 15 Jun 2011 Link to this post


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

    Best wishes,
    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. DevCraft R3 2016 release webinar banner
Back to Top