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

[Solved] Looking for Editable Header Cells...Or for a workaround like a ContextMenu per header column.

2 Answers 77 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Pinho
Top achievements
Rank 1
Pinho asked on 12 May 2009, 02:12 PM
Hi all,

 I have a use case, in which the user should have the chance to change the name of the column, is there any chance of having a editable header cell?

 Since I didn't find any, I was trying to use a context menu per header column, unfortunately, the example you have only works if the columns are pre-defined (when the row_loaded event is fired, I still don't have any columns defined), since in my case, the columns are being defined and added on the run, this doesn't work for me.

 Since I'm adding GridViewDataColumns, can this object be casted or transformed into a FrameworkElement so that when I add the column I use the RadContextMenu.SetContextMenu method to set the context menu directly?

Thanks ahead for all ideias or help in this matter.

L. Pinho 

2 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 14 May 2009, 06:51 AM
Hi Luis,

I've made for you small example to illustrate you how to achieve your goal. You can find the project attached.

Let me know how it goes.

All the best,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Pinho
Top achievements
Rank 1
answered on 14 May 2009, 06:17 PM
Hi Vlad,

 thank you very much for your support and example.

 I managed to adapt your example to my needs.

Thanks again,

L. Pinho
Tags
GridView
Asked by
Pinho
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Pinho
Top achievements
Rank 1
Share this question
or