Exporting data when column bound to static resource

2 posts, 0 answers
  1. Tim
    Tim avatar
    1 posts
    Member since:
    May 2012

    Posted 14 Feb 2013 Link to this post

    I have a gridview where I have one column where I display data from a static resource.  The data displays fine in the table but when I export, the data value is null.

                        <telerikGrid:GridViewDataColumn Header="Tract Project Number" UniqueName="TractProjectNumber" IsFilterable="False" x:Name="tractprojectnumbercolumn"> 
                                    <StackPanel Orientation="Horizontal" Visibility="Visible" >
                                        <TextBlock Text="{Binding Source={StaticResource simpletractprojectnumberclass}, Path=TractProjectNumber}" VerticalAlignment="Center"/>

    When  "private void ElementExporting(object sender, GridViewElementExportingEventArgs e)" is called, e.Value for my table cell with the staticresource is null.
  2. Vlad
    Vlad avatar
    11100 posts

    Posted 15 Feb 2013 Link to this post


     Exporting will work directly with the grid data - templates cannot be exported. 

    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top