I have tested the sample that Eyup have provided in his reply, where I am changing the column names in the Page_Load event handler, but with auto-generated column, this will not have any effect at all. With auto-generated column, the column name and the header text will be automatically generated, depending on the underlying data field and for changing the names, the server-side OnAutoGeneratedColumnCreated
should be handled and the HeaderText
property must be set and not the UniqueName
sender, TreeListAutoGeneratedColumnCreatedEventArgs e)
TreeListColumn column = e.Column;
//column.UniqueName = "Test " + column.UniqueName;
In scenarios where the columns are defined in the markup, the Page's Load event could be used as shown below:
sender, EventArgs e)
Hope this helps.
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.