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.
Unfortunately, activation email could not send to your email. Please try again.

TemplateColumn Export

Thread ID:

Created:

Updated:

Platform:

Replies:

124005 May 7,2016 09:05 AM May 30,2016 08:53 AM WPF 7
loading
Tags: SfDataGrid
ray
Asked On May 7, 2016 09:05 AM

Can not export when sfdatagrid has a TemplateColumn...  

Sivakumar R [Syncfusion]
Replied On May 9, 2016 06:24 AM

  
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 


ray
Replied On May 25, 2016 05:05 AM

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

Sivakumar R [Syncfusion]
Replied On May 26, 2016 01:29 AM

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 


ray
Replied On May 26, 2016 11:13 AM

just a modify button..

Srinivasan Vasu [Syncfusion]
Replied On May 27, 2016 08:53 AM

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


ray
Replied On May 27, 2016 09:56 AM

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}}" />

Srinivasan Vasu [Syncfusion]
Replied On May 30, 2016 08:53 AM

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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;