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

Copy formatted cell text

3 Answers 42 Views
GridView
This is a migrated thread and some comments may be shown as answers.
SimonasM
Top achievements
Rank 1
SimonasM asked on 27 Feb 2015, 01:49 PM
Hello, I'm using CellFormatting event to convert TypeId's to the more human friendly text (Type name). However if I copy value (CTRL+C or access cell value via code) I get original (unformatted) value. Is there any way to get formatted cell text ?  

3 Answers, 1 is accepted

Sort by
0
SimonasM
Top achievements
Rank 1
answered on 03 Mar 2015, 09:23 AM
So, anyone got an idea ? Or should we create new models filled with formatted values for all the telerik grids ? 
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 04 Mar 2015, 09:02 AM
Hello Simonas,

Thank you for writing.

MasterGridViewTemplate introduces two methods appropriate for customizing the Clipboard data: Copy and Paste. Our Copy/Paste DisplayMember for GridViewComboBoxColumn KB article demonstrates a sample approach how to customize the Clipboard data.

I hope this information helps. Should you have further questions, I would be glad to help.
 
Regards,
Dess
Telerik
 

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.

 
0
SimonasM
Top achievements
Rank 1
answered on 04 Mar 2015, 02:54 PM
This is exactly what I was looking for. Those articles provided all the information needed.

Thank you.
Tags
GridView
Asked by
SimonasM
Top achievements
Rank 1
Answers by
SimonasM
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or