Hi,
I have been trying to get this resolved. I have a grid with a GridCalculatedColumn, this column combines two Data fields and shows them together. I want to specify the Grid Sort Expression for this column in the grid so when the grid initially comes up its sorted by this column and the little sorting image in the column header is placed there to show the user the default column thats sorted. What should I put in the GridSortExpression's FieldName? I can not seem to get this, It seems with a grid bound column the image appears since its a single datafield but how can I do the same thing with a grid calculated column *Updated* I actually have noticed the same issue with GridTemplateColumns as well, please let me know, thanks in advance!!
I have been trying to get this resolved. I have a grid with a GridCalculatedColumn, this column combines two Data fields and shows them together. I want to specify the Grid Sort Expression for this column in the grid so when the grid initially comes up its sorted by this column and the little sorting image in the column header is placed there to show the user the default column thats sorted. What should I put in the GridSortExpression's FieldName? I can not seem to get this, It seems with a grid bound column the image appears since its a single datafield but how can I do the same thing with a grid calculated column *Updated* I actually have noticed the same issue with GridTemplateColumns as well, please let me know, thanks in advance!!
<
SortExpressions
>
<
telerik:GridSortExpression
FieldName
=
"OriginCity"
/>
</
SortExpressions
>
<
telerik:GridCalculatedColumn
UniqueName
=
"Origin"
HeaderText
=
"Origin"
AutoPostBackOnFilter
=
"true"
SortExpression
=
"{0} , {1}"
DataFields
=
"OriginCity, OriginState"
Expression
=
'{0} + " " + {1}'
>
<
HeaderStyle
HorizontalAlign
=
"Left"
VerticalAlign
=
"Bottom"
/>
<
ItemStyle
HorizontalAlign
=
"Left"
/>
</
telerik:GridCalculatedColumn
>