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

How do I modify column header

3 Answers 93 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jerry Kurata
Top achievements
Rank 1
Jerry Kurata asked on 07 Jun 2010, 10:52 PM
Hi,

I want to modify the header of one of my column's to add a slider control.  Moving the slider will change the size of the images which are displayed in the column.  Can you point me in the correct direction?

Thanks,
Jerry

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 08 Jun 2010, 05:57 AM
Hi Jerry,

Header property of grid  columns is object and you can define anything - even UI elements. You can check for example third column in this demo.

All the best,
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.
0
Jerry Kurata
Top achievements
Rank 1
answered on 13 Jun 2010, 04:00 PM
Thanks Vlad.  The sample was very helpful.

One further question is how do I reference some property from the column header, such as the header text, into the template.

Thanks,

Jerry

0
Pavel Pavlov
Telerik team
answered on 15 Jun 2010, 01:34 PM
Hi Jerry Kurata,

Controls placed inside the column Header can not reference the header text , as they actually replace it.
You can set the Header property to a string , or you can set it to an UI Element , containing a textblock with Text set to the header string.
In other words :

What you can do is to place a textblock in the Header ( along with other controls needed and hardcode the header text .

Regards,
Pavel Pavlov
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
GridView
Asked by
Jerry Kurata
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Jerry Kurata
Top achievements
Rank 1
Pavel Pavlov
Telerik team
Share this question
or