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

Custom Header Template and GridBoundColumn

2 Answers 224 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Randy
Top achievements
Rank 1
Randy asked on 02 Sep 2009, 01:04 PM
I am researching the best way to hook a filter button to my grid header column rather than having a filter row displayed.  The filter row takes up too much space for what we are trying to do.  My idea would be to have an ImageButton that shows the filter image.  When the user clicks this button it would launch a radwindow to capture the criteria.  

My question is this:  Should I do this as a templated column?   It seems like the only way to add controls to the header is via a template.  The downside is that beyond that the column data is just a bound data column. 

Any recommendations or samples that I can refer to?

Randy

2 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 07 Sep 2009, 07:44 AM
Hello Randy,

The most straightforward way to accomplish this is by using a template column. In this way, you can both easily declare the contents of the header, and have the column associated with a data field,just like in a standard bound field.
I hope this approach meets your requirements well.

Regards,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Niraj
Top achievements
Rank 1
answered on 10 Jan 2011, 08:34 AM
Hi,

I am having the same problem . Can I associate GridHyperLink or GridDateTime Column in the template column?
I just want to change the header template, I dont want to change the item template. Is this possible..?

Regards,
Niraj Khose
Tags
Grid
Asked by
Randy
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Niraj
Top achievements
Rank 1
Share this question
or