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

Can SortExpression differ from DataField with GridTemplateColumn?

1 Answer 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lenny_shp
Top achievements
Rank 2
Lenny_shp asked on 06 Oct 2010, 02:10 PM

pls delete

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 06 Oct 2010, 03:15 PM
Hi Leonid,

When using GridTemplateColumn, the SortExpression value should match the field a control in the template is bound to:
<telerik:GridTemplateColumn
     UniqueName="TemplateColumn"
     HeaderText="Template Column"
     SortExpression="City"
     <ItemTemplate
       <%# Eval("City") %> 
     </ItemTemplate
   </telerik:GridTemplateColumn>

Regards,
Pavlina
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
Grid
Asked by
Lenny_shp
Top achievements
Rank 2
Answers by
Pavlina
Telerik team
Share this question
or