This is a migrated thread and some comments may be shown as answers.

How to add combox to column header

1 Answer 49 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Dian
Top achievements
Rank 1
Dian asked on 14 Jun 2011, 10:07 PM
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

1 Answer, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 15 Jun 2011, 06:49 AM
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
Tags
TreeListView
Asked by
Dian
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or