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

[Solved] RadGrid filter on GridTemplateColumn

1 Answer 208 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dave Hollen
Top achievements
Rank 1
Dave Hollen asked on 18 Jan 2010, 07:20 PM
Hello,

I have a radgrid that has all of its columns as GridBoundColumns except for one.  The column that is not a GridBoundColumn is a column that i am attempting to setup as a GridTemplateColumn.  This column will contain a ASP label and will display the text version of a numeric value (such as if the value is 73, it will display "Hello World" in the grid).  I am getting the value from a column that is in the same table that all of the other GridBoundColumns look to.

The issue that I am having is, how to setup this column so that I can run a filter on it.

Thanks!

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 19 Jan 2010, 09:05 AM
Hi Dave,

As far as I understand when the user tries to filter on the template column, the actual filtering should occur on the numeric one to which it is bound. If this is the case, just set the GridTemplateColumn's DataField property to the field to which the numeric columns is bound. For example, if you have a template column A and a numeric column N and column N is bound to DataField, let's say, SequentialNum, then the DataField property of column A should be set to SequentialNum.

I hope this helps.

Regards,
Tsvetoslav
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.
Tags
Grid
Asked by
Dave Hollen
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or