radgrid detail table header text change problem

2 posts, 0 answers
  1. JJ
    JJ avatar
    147 posts
    Member since:
    May 2010

    Posted 05 Aug 2011 Link to this post



    I used the following code at radgrid_ItemCreated to update radgrid detail table header text. I need to use HierarchyLoadMode="ServerBind".  I need to sort the detail table.




    But as long as the header text programly changed in the Rradgrid_ItemCreated, the sort function doesen't work any more.







    ((e.Item is GridHeaderItem) && (e.Item.OwnerTableView.Name == "Detail"))





    GridHeaderItem header = (GridHeaderItem)e.Item;




    header["FileName"].Text = "My new translated header text";


  2. Sebastian
    Sebastian avatar
    9934 posts

    Posted 08 Aug 2011 Link to this post

    Hello Jj,

    When you enable sorting for the grid, you need to change the text of the link buttons that will be generated inside the table headers, not the content of the entire cell. See the second example here for more info.

    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top