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

Copy command copies the binding information instead of data.

1 Answer 103 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Pankaj
Top achievements
Rank 1
Pankaj asked on 26 May 2011, 07:22 AM
Hi,

I have a copy menu with command = Copy and CommandTarget=MyRadGridView. Now when i click copy and paste it in excel, it pastes the name of the binding object for the columns where I'm using converter to concatenate two fields. For columns which have direct binding defined it copies the data.

Copy command:

 

 

 

<MenuItem Header="Copy" InputGestureText="Ctrl+C" Command="ApplicationCommands.Copy" CommandTarget="{Binding ElementName=vpRadGridView}"/>

GridColumns
1.

 

 

 

 

 

<telerik:GridViewDataColumn

 

 

 

 

 

 

 

 

 

 

 

Header="Verification Path Pair"

 

 

 

 

 

 

 

 

 

 

 

UniqueName="VerificationPathPair"

 

 

 

 

 

 

 

 

 

 

 

DataMemberBinding="{Binding Path=., Converter={StaticResource VPPair}}"

 

 

 

 

 

 

 

 

 

 

 

/>

 

2.

<

 

 

telerik:GridViewDataColumn

 

 

 

Header="Verification Path ID"

 

 

 

UniqueName="VerificationPathID"

 

 

 

DataMemberBinding="{Binding Name, ValidatesOnExceptions=True, Mode=OneWay, ValidatesOnDataErrors=True}"

 

 

 

/>

 

Copy Results:

MySolution.OrmNhib.BusinessObjects.OnepValidochpath

   VP1
It should have copied actual data for column 1 also as it did for column 2. Any suggestion?

1 Answer, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 26 May 2011, 01:01 PM
Hi Pankaj,

I have investigated this issue and it appears that it is already fixed with the latest version of our controls (2011.1.516). I have prepared an example project, which I have attached for your reference, and it works fine.

Best wishes,
Ivan Ivanov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Pankaj
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Share this question
or