Is it possible to filter grid by template column?
If yes, please, provide some sample code.
2 Answers, 1 is accepted
0
Petur Subev
Telerik team
answered on 17 Nov 2011, 02:28 PM
Hi Lukekozak.,
The filtering functionality is available only for bound columns. A possible workaround is to bound the column to some property and set its template instead of creating template column.
e.g.
@{ Html.Telerik().Grid(Model)
.Name("Grid")
.Columns(columns =>
{
columns.Bound(o=> o.PropertyForSearch).Template (
@<text>
//...
</text>
)
...
I hope this helps.
All the best,
Pesho
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now