This question is locked. New answers and comments are not allowed.
Hi guys!
I've a problem with the Grid component; I'm trying to sort columns with HeaderTemplate but it didn't works
The columns with the Title property works fine, but the columns with the HeaderTemplate didn't works.
Here my code
I can sort the first and the third column but not the second.
Is there a workaround to sort a column with HeaderTemplate filled?
Thank You!
I've a problem with the Grid component; I'm trying to sort columns with HeaderTemplate but it didn't works
The columns with the Title property works fine, but the columns with the HeaderTemplate didn't works.
Here my code
Html.Telerik().Grid(Model.listValori) .Name("Articles") .Columns(columns => { columns.Bound(e => e.IDArticle).Template(e => {Response.Write(e.IDArticle); })
.Title("Id Article");
columns.Bound(e => e.isVisible).Template(e => {Response.Write(e.isVisible);}) .HeaderTemplate("<img src='/img/myimg.gif' />") .Width(40);columns.Bound(e => e.Description).Template(e =>{ Response.Write(e.Description);}) .Title("Description") .Width(40); }) .Scrollable(200) .Sortable() .Footer(false) .HtmlAttributes(new { @class = "TelerikGridArticle" }) .Render();I can sort the first and the third column but not the second.
Is there a workaround to sort a column with HeaderTemplate filled?
Thank You!
