Problem copying a custom column

3 posts, 1 answers
  1. Deborah
    Deborah avatar
    31 posts
    Member since:
    Jun 2011

    Posted 31 Jul 2013 Link to this post

    Hi,
    in my gridview I have defined a custom checkbox column:

    <telerik:GridViewDataColumn Header="Visualizza"
                                                   IsReadOnly="True"
                                                   IsSortable="True"
                                                   SortMemberPath="IsVisible">
                           <telerik:GridViewDataColumn.CellTemplate>
                               <DataTemplate>
                                   <CheckBox IsChecked="{Binding IsVisible, Mode=TwoWay}"
                                             IsEnabled="{Binding IsModifiable, Mode=TwoWay}"
                                             Click="CheckBox_Click"></CheckBox>
                               </DataTemplate>
                           </telerik:GridViewDataColumn.CellTemplate>
                       </telerik:GridViewDataColumn>

    If I copy a cell and then paste it to excel, instead to get the value of "IsVisible" property I get the name of the object's class.
    How can I solve this problem?
    Thank you very much.
  2. Answer
    Vera
    Admin
    Vera avatar
    263 posts

    Posted 02 Aug 2013 Link to this post

    Hi Deborah,

    What you can do is to bind GridViewDataColumn as well.

    <telerik:GridViewDataColumn Header="Visualizza"
                                                IsReadOnly="True"
                                                IsSortable="True"
                                                SortMemberPath="IsVisible"
                                                DataMemberBinding="{Binding IsVisible}">



    Regards,
    Vera
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
  4. Deborah
    Deborah avatar
    31 posts
    Member since:
    Jun 2011

    Posted 20 Aug 2013 Link to this post

    Thank you very much Vera, it works!
Back to Top