Alias field in GroupByExpression using TemplateColumn

2 posts, 1 answers
  1. HMPSOLBB
    HMPSOLBB avatar
    24 posts
    Member since:
    Mar 2012

    Posted 18 Jun 2015 Link to this post

    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

  2. Answer
    Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 23 Jun 2015 Link to this post

    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
Back to Top