I am using GridView.export() to export the gridview details in the .csv file. After export I can see some special characters inserted in the strings such as " Â" if the string consists of symbol like "<abc>". Is there any way to avoid addition of special characters while exporting?
e.g.
I was trying to export a file having list of names. One of name string consists of string like "xy<abc>z". After performing export functionality a special
character gets inserted in between the name such as
"xy<abc>Âz". Because of this name displayed on grid and exported file does not match.
Hi guys,
I'm desperately trying to find the easiest way of accomplishing this. In short I have a RadGridView of which I have used the ExportToPdf method successfully to export the grid in a landscape format to PDF.
GridDetails.ExportToPdf(stream,
new
GridViewPdfExportOptions()
{
ShowColumnHeaders =
true
,
ShowColumnFooters =
true
,
ShowGroupFooters =
true
,
PageOrientation = PageOrientation.Landscape,
ExportDefaultStyles =
true
,
AutoFitColumnsWidth =
true
});
I have been asked whether I can now include the company logo and title to the top, as well as additional text at the bottom. I have looked at trying to use the ExportToRadFixedDocument method, however I cannot seem to get the grid to appear in landscape.
I have tried the following code only to find the page rotated to be landscape, but it's contents appearing as if it were still portrait:
GridViewDocumentExportOptions options =
new
GridViewDocumentExportOptions();
options.AutoFitColumnsWidth =
true
;
options.ExportDefaultStyles =
true
;
options.ShowColumnHeaders =
true
;
RadFixedDocument fixedDoc = GridDetails.ExportToRadFixedDocument(options);
RadFixedPage page = fixedDoc.Pages[0];
page.Rotation = Telerik.Windows.Documents.Fixed.Model.Data.Rotation.Rotate270;
This makes sense as the Fixed document is no doubt generated in portrait by the ExportToRadFixedDocument method and unlike GridViewPdfExportOptions, GridViewDocumentExportOptions does not have a PageOrientation property to specify otherwise.
My last remaining option was to use RadFixedDocumentEditor and draw the whole thing from scratch, however if I can avoid this I would rather not spend the time trying to figure out where to draw each row of the grid and whether it needs to be split across multiple pages.
Am I missing something? Is there an easy way to generate a FixedDocument from a RadGridView that has it correctly rotated from which I can then add additional items using the FixedContentEditor.
Thanks
Marc
Hi,
I added references to telerik dlls in the code, with copy local set to true. But, when I am building the project I am receiving an error randomly.
Error1Unknown build error, 'Cannot resolve dependency to assembly 'Telerik.OpenAccess, Version=2015.1.220.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.' C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.WinFx.targets2689SMS
I am not using openaccess assembly at all. I have no idea why this keeps coming randomly. I am not even able to find the dll anywhere to add it to the project.
Kindly help me fix this issue.
I am unable to update the cell background color on the paste of cell values.
I have tried the Pasted, Pasting, PastingCellClipboardContent events on the radgridview. All of this events provide GridViewCellInfo which does not contain the enough information to update background color of the cell.
Also CellValidating event is not fired for the pasted cells in the radgridview, could you please let me know the reason for the same?
I have been using RadDocking in WPF for a few years now and have been loading and saving layouts but we have noticed one issue that I am trying to address. If a user creates two (or more) documents in a DocumentHost and puts one above the other and saves the layout when the layout is restored the documents are side by side. Below is the XML that is generated by the SaveLayout call. I believe the pertinent attribute is the Orientation="Vertical" in the RadSplitContainer. If I read that correctly the two RadPaneGroups should be positioned vertically one above the other on the screen but they are always positioned side by side. I am still investigating and trying to reproduce this in a simpler application that I can share but I was wondering if anyone else had seen this behavior.
<RadDocking>
<DocumentHost>
<RadSplitContainer>
<Items>
<RadSplitContainer RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True" Orientation="Vertical" SplitterChange="701">
<Items>
<RadPaneGroup SerializationTag="DocumentGroup" SelectedIndex="0">
<Items>
<RadPane SerializationTag="LogViewer" IsPinned="True" IsHidden="True" IsDockable="True" Header="Log Viewer" />
<RadDocumentPane SerializationTag="dtm:points:fc0c8d04-3d65-47d7-a5ad-d46f433a0fc6:/Outstation/sDNP/sDNP/sDNP" IsPinned="True" IsDockable="True" Title="DTMControls.DTMPointListCtrl" Header="DTMControls.DTMPointListCtrl" />
</Items>
</RadPaneGroup>
<RadPaneGroup RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True" SelectedIndex="0">
<Items>
<RadDocumentPane SerializationTag="dtm:points:61ef9dd8-ca6e-4b67-9fde-ab94c8e148f6:/Master/mDNP/mDNP/mDNP" IsPinned="True" IsDockable="True" Title="DTMControls.DTMPointListCtrl" Header="DTMControls.DTMPointListCtrl" />
</Items>
</RadPaneGroup>
</Items>
</RadSplitContainer>
<RadPaneGroup RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True" SplitterChange="489" SelectedIndex="0">
<Items>
<RadDocumentPane SerializationTag="dtm:display1:57269279-9f89-4df3-981d-ca8ed4c2d485:/Outstation/Outstation Display.tgf" IsPinned="True" IsDockable="True" />
<RadDocumentPane SerializationTag="dtm:analyzer:418e5fde-b466-44e1-8694-ba2d659a8a1c:/" IsPinned="True" IsDockable="True" Title="DTMControls.DTMAnalyzerCtrl" Header="DTMControls.DTMAnalyzerCtrl" />
</Items>
</RadPaneGroup>
</Items>
</RadSplitContainer>
</DocumentHost>
my RadPropertyGrid size is fixed, and I do not want a horizontal scroll bar. so i set ScrollViewer.HorizontalScrollBarVisibility="Disabled"
when drag the slider (which can seperate the property and value) , can drag it out of the right side,
how to prevent this