combine columns

3 posts, 0 answers
  1. Tim
    Tim avatar
    2 posts
    Member since:
    Feb 2015

    Posted 17 Feb 2015 Link to this post

    here is what I need to do;

    columns.Bound(x -> x.CreatedOn).Title ("Created On")
    columns.Bound(x -> x.CreatedBy).Title ("Created By")

    I have the 2 columns above and want to display them into 1 column. ( I have done this with other grids with the statement as follows)

    columns.Bound(x => x.CreatedOn).Title ("Created ").RenderValueAs(x =>x.CreatedBy + " " + x.CreatedOn)

    Can anyone help me out? 2 columns renderd as 1 value A over value B new heading?
  2. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 18 Feb 2015 Link to this post


    You say you have achieved the same with other grids. Do you mean the MS DataGrid? Does the same approach work with it and not with RadGridView?

    Generally, you can also expose a new property combining those two and use it for the DataMemberBinding or redefine the CellTemplate of the column to display what you would like to. You can also check our online documentation on defining CellTemplate/CellEditTemplate for a reference.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. Tim
    Tim avatar
    2 posts
    Member since:
    Feb 2015

    Posted 18 Feb 2015 in reply to Dimitrina Link to this post

    This is the grid I have used. It is very light weight and simple but does not support Pagenation.Length so I came to Telerik
Back to Top