Telerik Forums
UI for WPF Forum
8 answers
333 views

Hi

I'm trying to export ALL the records using GridViewSpreadStreamExport. Here is the snippet.

But the excel sheet is only showing the records displayed in the grid (which is 20). I have a RadDataPager and the is set to 20 with source ElementName as RadGridView.

How do I export all data in the Logs ItemSource of the grid?

 

<telerik:RadGridView  x:Name="rgvLogs"
         IsBusy= "{Binding IsBusy}"
         ItemsSource="{Binding Logs}"
         AutoGenerateColumns="True"
          IsReadOnly="True"
          ShowColumnSortIndexes="True"
          CanUserDeleteRows="False"
          CanUserInsertRows="False"
          CanUserSortColumns="True"
          CanUserFreezeColumns="False"
           GroupRenderMode="Flat"
           Grid.Row="1">      
  </telerik:RadGridView>
  <telerik:RadDataPager x:Name="radDataPager"
                                PageSize="20"
                                IsTotalItemCountFixed="True"
                                DisplayMode="All"
                                Grid.Row="2"
                                FontSize="12"
                                AutoEllipsisMode="Both"
                                NumericButtonCount="10"
                                Source="{Binding Items, ElementName=rgvLogs}"/>
01.private void AsyncExport(object param)
02. {
03.     string extension = "xlsx";
04.     var rgvExportToExcel = param as RadGridView;
05.
06.     var dialog = new SaveFileDialog()
07.     {
08.         DefaultExt = extension,
09.         Filter = String.Format("(*.{0})|*.{1}", extension, extension),
10.         FilterIndex = 1,
11.         AddExtension = true,
12.         Title = "Export to Excel",
13.     };
14.
15.     if (dialog.ShowDialog() == DialogResult.OK)
16.     {
17.         GridViewSpreadStreamExport spreadStreamXlsxExport = new GridViewSpreadStreamExport(rgvExportToExcel);
18.         spreadStreamXlsxExport.ShowLoadingIndicatorWhileAsyncExport = this.ShowLoadingIndicatorWhileAsyncExport;
19.         spreadStreamXlsxExport.RunExportAsync(dialog.FileName.ToString(), new SpreadStreamExportRenderer(),
20.                                                 new GridViewSpreadStreamExportOptions()
21.                                                 {
22.                                                     ShowColumnHeaders = true,
23.                                                     ShowColumnFooters = true,
24.                                                     ExportDefaultStyles = true
25.                                                 });
26.     }
27.
28. }
KR
Top achievements
Rank 1
Veteran
 answered on 11 Mar 2019
1 answer
233 views

Hello

i have a radmap in WPF have VisualizationLayer.I can Click on Ellipse only if i change zoom.

I want to click to ellipse after  running program without change zoom.Can i do it?

 

Behind code:

asd.SelectionChanged += VisualizationLayer_SelectionChanged;

 

Xaml:

 <telerik:VisualizationLayer  x:Name="asd" ItemSelectionMode="MouseClick" VirtualizationSource="{Binding}"  Loaded="Znaki_Loaded" >
                <telerik:VisualizationLayer.ItemTemplate>
                    <DataTemplate>
                            <telerik:Pinpoint  Width="15" Height="15" BorderBrush="Black" Background="White"  Tag="{Binding Name}" MouseLeftButtonDown="Ellipse_MouseLeftButtonDown"  telerik:MapLayer.Location="{Binding Location}">
                            <telerik:MapLayer.HotSpot>
                                <telerik:HotSpot X="0.5" Y="0.5" />
                            </telerik:MapLayer.HotSpot>
                            <ToolTipService.ToolTip>
                                    <ToolTip Content="{Binding Name}"/>
                                </ToolTipService.ToolTip>
                            </telerik:Pinpoint>
                    </DataTemplate>
                </telerik:VisualizationLayer.ItemTemplate>
                <telerik:VisualizationLayer.Reader>
                    <telerik:AsyncSqlGeospatialDataReader x:Name="asyncSqlGeospatialDataReaderZnaki"                                                            
                                                  GeospatialPropertyName="Geometry" 
                                                  ToolTipFormat="Name" />
                </telerik:VisualizationLayer.Reader>
              
            </telerik:VisualizationLayer>

 

Dinko | Tech Support Engineer
Telerik team
 answered on 08 Mar 2019
2 answers
198 views

Hello,

I'm referencing Telerik UI for WPF assemblies via NuGet which works fine. But when I tried to use RadDiagram in a simple project the Diagram does not display at all using the references from NuGet.

If I remove the NuGet packages in the project and add all necessary references from local disk the diagramm displays as expected. If I switch back to NuGet it does not work again.

Is there something I made wrong?

 

<packages>
  <package id="Telerik.Windows.Controls.Diagrams.for.Wpf" version="2019.1.220" targetFramework="net45" />
  <package id="Telerik.Windows.Controls.for.Wpf" version="2019.1.220" targetFramework="net45" />
  <package id="Telerik.Windows.Diagrams.Core.for.Wpf" version="2019.1.220" targetFramework="net45" />
</packages>

 

<telerik:RadDiagram>
    <telerik:RadDiagramShape x:Name="Shape1"
                        Content="Shape 1"
                        Position="80,20" />
    <telerik:RadDiagramShape x:Name="Shape2"
                        Content="Shape 2"
                        Position="320,20" />
</telerik:RadDiagram>
Mathias
Top achievements
Rank 1
 answered on 08 Mar 2019
0 answers
95 views
Hi,

I use GridView and I wanted to add drag and drop row reorder functionality so I implemented it with RowReorderBehavior based on your examples.

But it doesn't work well, sometimes some row (for example first row) does not respons to drag and drop, but it works well for the rest of the rows.

Any suggestions?

Thank you!
Attila
Top achievements
Rank 1
 asked on 07 Mar 2019
1 answer
80 views
I have a RadScheduleView that may be representing appointments in the local time of a different time zone. I set the TimeZone and TimeZonesSource of the RadScheduleView to the TZ of where the appointment is taking place, but the CurrentTimeIndicator always reflects the local time instead. Is there any way for the CurrentTimeIndicator to reflect the time from a different time zone?
Vladimir Stoyanov
Telerik team
 answered on 07 Mar 2019
2 answers
186 views
I have an application where I do grouping behind the scenes with an ICollectionView.  I have the group panel and row indicator hidden.  When I do using the ICollectionView, I get a row indicator in the header and for each row.  I'd like to change the border color of the header indicator space to transparent and the row indicator to match the background of the main grid.  I've looked around the different templates and can't figure out which is the right one.
Dan
Top achievements
Rank 1
 answered on 07 Mar 2019
0 answers
114 views
Hi -
I am seeing strange gaps between folders within different nodes (screenshot is attached).
issue is no reproducible on all devices I run the app. 
I thought it might be related to the default animation when root folder is expanded, but I disabled it and still seeing same issue.
Any thoughts why this is happening would be appreciated.

Thanks,
Ranko
Ranko
Top achievements
Rank 1
 asked on 07 Mar 2019
3 answers
295 views

Hi,

I'm evaluating ChartView3D and Telerik UI for a project. We are going to visualise drill holes using it. A hole typically starts at the surface and goes into the ground. My attempt to achieve this was to rotate the whole graph 180 degrees, but doing so rotates also all labels and axis titles, see screendump :(

Is there any other way I can achieve this? Or can I rotate the graph without rotating the labels/titles? Or could I counter rotate them? Any tips would be appreciated.

Kind regards,
Karl-Petter

Dinko | Tech Support Engineer
Telerik team
 answered on 07 Mar 2019
3 answers
99 views

We have a RadTreeListView where the IsExpanded property of the rows is bound to a property on row objects.  Sometimes, some of the expander triangles in the RadTreeListView look expanded, but their children are not visible.  Any idea what might be causing this or how to fix it? 

 

The attached image shows a small example.  The third row looks like it's expanded, but its child is not shown.  If you click the triangle, it collapses it; and if you click it again, it's then expanded properly with the child shown.

 

Dilyan Traykov
Telerik team
 answered on 07 Mar 2019
6 answers
2.3K+ views

Hi,

How can I set the background color (in XAML) of a NumericUpDown control when IsReadOnly is set to true ?  I tried using a style but without succes ...

Regards,
Hans

Dinko | Tech Support Engineer
Telerik team
 answered on 07 Mar 2019
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?