Hi,
I manage to export a GridView into an Excel file (.xlsx).
But when I am trying to insert an excel graphic with the exported data, all the predefined styles are empty
If I start from a blank new excel file, typing values and inserting a graphic, it is ok
Please look attachments to see what I mean.
Is it an Excel template issue ?
My code looks like :
Dim dialog = New SaveFileDialog() With { .DefaultExt = "xlsx", .Filter = [String].Format("(*.{0})|*.{1}", "xlsx", "xlsx") }dialog.ShowDialog()Dim exportOptions = New GridViewDocumentExportOptions() With { .AutoFitColumnsWidth = True, .ExportDefaultStyles = False, .ShowColumnFooters = grid.ShowColumnFooters, .ShowColumnHeaders = grid.ShowColumnHeaders, .ShowGroupFooters = grid.ShowGroupFooters }Using stream = dialog.OpenFile() grid.ExportToXlsx(stream, exportOptions)End UsingRegards
Hi,
I am trying to show the number of appointments for any given day on the month view using the MonthItemTemplate. The schedule contains multiple resources.
The suggestion at https://www.telerik.com/forums/number-of-appointments-per-day does not work because the TimeRulerItemProxy I can pass to a MultiBindingConverter does not have any idea of the resource it belongs to.
Is there a way to get the resource so that I can tally the appointments for the resource on any given day?
Regards
Anthony
I'm using the UriImageProvider to add multiple tiles I've generated using GDAL to the map control. Each image covers exactly one degree of latitude and longitude.
When I loop through my image files to add them, the resulting tiles don't seem to be added in the correct place. Attached is a screen shot and here is my code to add the images.
var files = Directory.GetFiles( $"{Directory.GetCurrentDirectory()}\\Assets\\Terrain\\", "*_comp.tif" ); foreach( var f in files ) { Location bottomLeftCorner = ParseHgtFileCoordinates( f ); Location topLeft = new Location( bottomLeftCorner.Latitude + 1, bottomLeftCorner.Longitude ); Location bottomRight = new Location( bottomLeftCorner.Latitude, bottomLeftCorner.Longitude + 1 ); LocationRect bounds = new LocationRect( topLeft, bottomRight ); UriImageProvider p = new UriImageProvider(); p.GeoBounds = bounds; p.Uri = new Uri( f ); map.Providers.Add( p ); }
Hi,
I have a RadTreeListView that is using IsExpandableBinding. I need to prevent certain items from being expandable based on configurations else where in the application. I am binding IsExpandableBinding to a property that has an OnPropertyChanged call. It is working except that I need to click somewhere on the TreeListView for the change to occur. The same property is used to trigger changes to the font of the item's textbox in the TreeListView and that works fine. As soon as the property changes to false, the text color changes to gray and the text is italicized, but the expansion icon is still present. As soon as I click somewhere on the TreeListView, the expansion icon disappears. Why does the TreeListView require user interaction to be updated with the binding change? How can I fix this?
This is the first line of the TreeListView:
<telerik:RadTreeListView x:Name="TreeView" SelectionUnit="FullRow" AutoGenerateColumns="False" DataLoadMode="Synchronous" EnableRowVirtualization="False" EnableColumnVirtualization="False" IsExpandableBinding="{Binding IsExpandable}">
This is the IsExpandable property:
public virtual bool IsExpandable
{
get
{
return _isExpandable && !(_node is LeafNode);
}
set
{
if (_isExpandable != value)
{
_isExpandable = value;
OnPropertyChanged("IsExpandable");
}
}
}
Thanks.
Hi
I'm testing your product and I'm like it so far but there are some things I can not comprehend.
I'm only using RadDocking by now and when I set the theme the behavior of my CustomListBox, which has nothing to do with your controls, changes.
To be precise the wrapping doesn't work anymore.
The pictures are attached below.
How can I avoid such interactions?
My XAML is as follows
<telerik:RadCartesianChart Name="chart" Palette="Ground" Canvas.Left="20" Width=" 1250" Canvas.Top="130" Height=" 550" Background="White" >
<telerik:RadCartesianChart.HorizontalAxis>
<telerik:CategoricalAxis />
</telerik:RadCartesianChart.HorizontalAxis>
<telerik:RadCartesianChart.VerticalAxis>
<telerik:LinearAxis HorizontalAlignment="Right" />
</telerik:RadCartesianChart.VerticalAxis>
</telerik:RadCartesianChart>
And in the code behind I am adding the series dynamically
Dim style As New Style(GetType(Border))
style.Setters.Add(New Setter(Border.BackgroundProperty, New SolidColorBrush(Colors.LightGray)))
For i As Integer = 0 To ChartDataModel.Data(0).Values.Length - 1
Dim barSeries As New Telerik.Windows.Controls.ChartView.BarSeries()
barSeries.CategoryBinding = New PropertyNameDataPointBinding() With {.PropertyName = "Title"}
Dim k As Integer = i
barSeries.ValueBinding = New GenericDataPointBinding(Of OC_ChartData, Double) With {.ValueSelector = Function(Selector) Selector.Values(k)}
barSeries.SetBinding(ChartSeries.ItemsSourceProperty, New Binding("Data"))
barSeries.CombineMode = Telerik.Charting.ChartSeriesCombineMode.Stack
barSeries.StackGroupKey = "Group" & i.ToString
'If i = 0 Then barSeries.DefaultVisualStyle = style
chart.Series.Add(barSeries)
Next
chart.DataContext = ChartDataModel
1. The color of Series 0 is not set. Can you point what is going wrong
2. I want to have the tool tip to contain the actual Y value. How can I get the Y value of a particular bar.


I've been trying to load a plugin from a Plugins\ folder, as soon as I use Assembly.LoadFile(), the Grid's stop displaying data and have lost their Expression_Dark design.
The plugin references the main assembly (which references Telerik) as well as our WPF library, which references Telerik too.
What's going on?

Hello there,
I watched demo about RadChartView integration but unfortunately the source code of the most important part (create SeriesSource for Chart) did not provide. So how can I get the sorted rows, columns and build datasource for Chart manually? Thank for you help!
