Hi, as you can see in the Image i try to Export a webdatagrid to pdf with the webdocumentexporter.
but it seems that there is something wrong with the style (use v14 vol2 )martin
Hello,
Thank you for sharing this information,
I wanted to let you know that our Exported export only simple text templates, this means that if you have item template with a control inside, it wont be exported.
You should handle CellExporting server event and there to implement some exporting logic.
Useful reference:
https://es.infragistics.com/help/winforms/win-known-issues-and-breaking-changes
https://es.infragistics.com/community/forums/f/ultimate-ui-for-asp-net/51073/export-issue-when-grid-has-a-templatedatafield
Hi Zdravko, it seems that it has todo with manually create the columns of the grid. i use Templatedatafields. here some code how i generate the columns
Call Set_Grid_TemplateDataField("Name", 0, "", "Name", WG_Mitarbeiterliste, True, 0)
......
WG_Mitarbeiterliste.DataSource = ds_Mitarbeiter WG_Mitarbeiterliste.DataBind()
Private Sub Set_Grid_TemplateDataField(ByVal Titel As String, ByVal nsize As Integer, ByVal sFormat As String, ByVal sFieldname As String, _ ByVal objWebdatagridGrid As WebDataGrid, bvisible As Boolean, nTemplateID As Integer)
Dim Datacolumn2 As New TemplateDataField Datacolumn2.Key = sFieldname Datacolumn2.Header.Text = Titel If bvisible = False Then Datacolumn2.Hidden = True End If objWebdatagridGrid.Columns.Add(Datacolumn2) Dim templateColumn4 As TemplateDataField = DirectCast(Me.WG_Mitarbeiterliste.Columns(sFieldname), TemplateDataField) templateColumn4.ItemTemplate = New CustomItemTemplate_1(sFieldname) End Sub
Public Class CustomItemTemplate_1 Implements ITemplate Dim sFieldname As String#Region "ITemplate Members"
Sub New(ByVal sField As String) sFieldname = sField End Sub Public Sub InstantiateIn(container As Control) Implements ITemplate.InstantiateIn Dim label1 As New Label() label1.ID = "TemplateLabel" label1.Text = DirectCast(DirectCast(container, TemplateContainer).DataItem, DataRowView)(sFieldname).ToString() container.Controls.Add(label1) End Sub#End RegionEnd Class
Hello Martin,
In that case could you please modify the attached sample in order to show me what exactly is the issue.
this also throws an error string reff = e.GridCell.Value.ToString();Because i use a TemplateContainer (TemplateDataField)
Hi Zdravko, i have no Hyperlinks in my text.the Webexport makes fromTest
in the Grid
<span id="USC
_liste1
_WG_Mitarbeiter
liste_it2_0_Temp
lateLabel">Test
</span
>