OK. Here's the deal.
I have a Grid that is defined with columns like this ...
And I have some code behind that looks like this ...
Now, I've tried invoking this code in the OnLoad event and in both the Page and the Grid's OnPreRender event. In each case I can see the value of item.headerText being correctly set. However, it is NEVER rendered.
I can't call this during the ItemDataBound event as the grid is bound on the client.
I can't call this during the OnColumnCreated/OnConlumnCreating events as they aren't invoked.
I'd welcome any suggestions.
I have a Grid that is defined with columns like this ...
1.
<
telerik:GridTemplateColumn
UniqueName
=
"DateTimeAdded"
SortExpression
=
"DateTimeAdded"
>
2.
<
ItemTemplate
>
3.
<
div
id
=
"lblDateTime2"
/>
4.
</
ItemTemplate
>
5..
</
telerik:GridTemplateColumn
>
And I have some code behind that looks like this ...
1.
switch
(item.UniqueName)
2.
{
3.
case
"DateTimeAdded"
:
4.
item.HeaderText = GetGlobalStringResource(GTypes.Task.TASK_LIST, GKeys.Task.TaskList.GRID_COLUMN_HEADER_TEXT_DATE_TIME);
Now, I've tried invoking this code in the OnLoad event and in both the Page and the Grid's OnPreRender event. In each case I can see the value of item.headerText being correctly set. However, it is NEVER rendered.
I can't call this during the ItemDataBound event as the grid is bound on the client.
I can't call this during the OnColumnCreated/OnConlumnCreating events as they aren't invoked.
I'd welcome any suggestions.