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

radgrid detail table header text change problem

1 Answer 111 Views
Grid
This is a migrated thread and some comments may be shown as answers.
JJ
Top achievements
Rank 1
JJ asked on 06 Aug 2011, 02:42 AM

 

 

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.

 

 

 

if

 

 

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

 

{

 

 

GridHeaderItem header = (GridHeaderItem)e.Item;

 

 

 

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

 

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 08 Aug 2011, 01:20 PM
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.

Regards,
Sebastian
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.

Tags
Grid
Asked by
JJ
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or