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

Change column Header text through UI

1 Answer 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 19 Apr 2016, 04:05 PM

It would be great if you could change the Header Text and save as part of the layout.

I have an application that is used by different customers. The base tables are the same but the customers want to name the columns differently.

I really want this something they can change and save as a user or system setting.

I am trying to come up with a good way to have a standard page that allows this functionality that I can use throughout my site.

Question 1. Can this be done in the layout saving/presistance?

Question 2. Is there a good way to provide a means to click on a header and allow modification of the header text.

Tried putting something in the context menu without success?

Any help would be much appreciated.

Thanks!!!

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 22 Apr 2016, 07:36 AM
Hello Michael,

The Persistence Framework could be used for storing the HeaderText, but not with the built-in functionality. For this custom setting you will have to handle the SaveCustomSettings and LoadCustomSettings events:
As for the editing, you could attach handler for the click event of the TH elements (rgHeader class name as selector) and open RadWindow for example that will allow the user to set the new name. Afterwords you will have to find a way to initiate the saving of the custom setting.


Best Regards,
Konstantin Dikov
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or