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

Alias field in GroupByExpression using TemplateColumn

1 Answer 20 Views
Grid
This is a migrated thread and some comments may be shown as answers.
HMPSOLBB
Top achievements
Rank 1
HMPSOLBB asked on 18 Jun 2015, 01:54 PM

Dears,

 

we are using the RadGrid with a lot of TemplateColumns. Now we setup the grouping for several columns

Groupable="true" GroupByExpression="FIELDNAME FIELDNAMEALIAS GROUP BY FIELDNAME"

Because of a multi language system we have to switch the FIELDNAMEALIAS based on context setting

I tried to use literal replacer like <%$ECMResource: mgm_matgr %>, but this did not work. Is there a way to change the alias without code behind?

 

Thanks

Oliver

1 Answer, 1 is accepted

Sort by
0
Accepted
Maria Ilieva
Telerik team
answered on 23 Jun 2015, 12:36 PM
Hi Oliver,

The only possible approach for achieving the required functionality is to set the GroupExpression programmatically and set the FieldNameAlias based on any other value. See the topic below:
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/functionality/grouping/group-by-expressions/programmatic-definition



Regards,
Maria Ilieva
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
HMPSOLBB
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or