We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

TemplateColumn Export

Can not export when sfdatagrid has a TemplateColumn...  

7 Replies

SR Sivakumar R Syncfusion Team May 9, 2016 10:24 AM UTC

  
Hi Ray,  
 
We have analyzed your query and template column exporting working fine in our side. Please find the sample below, 
http://www.syncfusion.com/downloads/support/forum/124005/ze/WPF-1611576007 
 
Exporting to excel and pdf works based on MappingName property of column. If the data displayed in template different from MappingName property, then you have to handle exporting in CellsExportingEventHandler. Please refer below UG link for more information, 
 
Regards, 
Sivakumar 



RA ray May 25, 2016 09:05 AM UTC

I have a TemplateColumn with a button in it's celltemplate...And it cause exception


SR Sivakumar R Syncfusion Team May 26, 2016 05:29 AM UTC

Hi Ray, 
 
Can you please share the below information, 
 
Did you set MappingName property for column?  
 
If the MappingName is not present in underlying data object then you have to handle exporting using CellsExportingHandler. Refer the below UG for more information, 
 
If you are still facing the issue, please revert to us with sample to check and resolve the issue. 
 
Thanks, 
Sivakumar 



RA ray May 26, 2016 03:13 PM UTC

just a modify button..


SV Srinivasan Vasu Syncfusion Team May 27, 2016 12:53 PM UTC

Hi Ray, 
 
Could you please share more details about your query? Which will be helpful for us to serve you better. 
Regards,
Srinivasan 
 



RA ray May 27, 2016 01:56 PM UTC

This is my  GridTemplateColumn.
<syncfusion:GridTemplateColumn HeaderText="Remark"
                                                Width="100">
                        <syncfusion:GridTemplateColumn.CellTemplate>
                            <DataTemplate>
                                <Grid>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <TextBlock Text="{Binding Remark}"
                                               VerticalAlignment="Center" />
                                    <Controls:ImageButton ImageSource="/Order.WpfUI;component/Images/Factory/Process_Modify.png"
                                                          VerticalAlignment="Center"
                                                          Grid.Column="1"
                                                          HorizontalAlignment="Center"
                                                          ImageWidth="15"
                                                          ImageHeight="15"
                                                          Cursor="Hand"
                                                          Click="ImageButton_Click" />
                                </Grid>
                            </DataTemplate>
                        </syncfusion:GridTemplateColumn.CellTemplate>
                    </syncfusion:GridTemplateColumn>
                    <syncfusion:GridTextColumn HeaderText="Status"
                                            Width="50"
                                            DisplayBinding="{Binding POSTATUS,Converter={StaticResource PstatusConvert}}" />


SV Srinivasan Vasu Syncfusion Team May 30, 2016 12:53 PM UTC

Hi Ray, 
 
We have analyzed your query and a support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates. 
 
Regards,
Srinivasan 


Loader.
Up arrow icon