This code behind does not work for importing files that are read only access. No error pops up, just a blank spreadsheet opens up
using (Stream input = new FileStream(this.ExcelDocumentSource, FileMode.Open, FileAccess.Read))
{
this.Workbook = new XlsxFormatProvider().Import(input);
//this.Workbook.Protect("telerik");
}
Thanks,
Hello,
I'm wondering if there is a way to set a fixed height to the bars in a barseries. For example, instead of the bars changing height in the following example, I'd like them to stay up with a fixed height.
The desired outcome would look something like this:
The xaml I used fort the example is this:
<telerik:RadCartesianChart>
<telerik:RadCartesianChart.Series>
<telerik:BarSeries ShowLabels="False"
CategoryBinding="Category"
ValueBinding="Value">
<telerik:BarSeries.DataPoints>
<telerik:CategoricalDataPoint Category="Apples" Value="20"/>
<telerik:CategoricalDataPoint Category="Bananas" Value="28"/>
<telerik:CategoricalDataPoint Category="Oranges" Value="17"/>
<telerik:CategoricalDataPoint Category="Strawberries" Value="30"/>
</telerik:BarSeries.DataPoints>
</telerik:BarSeries>
</telerik:RadCartesianChart.Series>
<telerik:RadCartesianChart.HorizontalAxis>
<telerik:LinearAxis x:Name="horizontalAxis1"/>
</telerik:RadCartesianChart.HorizontalAxis>
<telerik:RadCartesianChart.VerticalAxis>
<telerik:CategoricalAxis/>
</telerik:RadCartesianChart.VerticalAxis>
</telerik:RadCartesianChart>
Is this possible using the BarSeries? Any help is appreciated.
Thank You,
Giuliano
Hi,
I would like to have the DataFormComboBoxField behave the same way as the Edit mode: Editable, Read-Only and Auto Complete ad in your demo application. But when I set it to readonly it is disabled.
My code:
e.DataField = new DataFormComboBoxField()
{
ItemsSource = _componentsDS.ComponentKeyWords,
SelectedValuePath = "KeyWordId",
DisplayMemberPath = "Abbreviation",
DataMemberBinding = new Binding("KeywordId") { Mode = BindingMode.TwoWay },
IsComboboxEditable = true,
IsReadOnly = true,
Label = "Keyword"
};
The example in your application:
Kind regards,
Johan
Is the source for this app available? If so, where? I don't necessarily need the source, but I'd like to know how the stuff marked in red (I wish I knew the correct names/terminology) is done in a WPF app.
Alternatively, is there a different example that shows it?
I'm evaluating Telerik's UI for WPF and simply don't have the knowledge nor the time to learn the GridView thoroughly. I have to make a decision between Telerik and a competitor very soon.
The question is about filtering. I like the filtering in the Telerik grid, with the funnel icon. However, my client is familiar with a different experience, and prefers it. Specifically, the client would like a line between the column headers and the data (basically a textbox in each column) where the user could simply type and the grid would automatically filter using a "contains" (simple concept, but not so easy for me to describe). Is that something that could be done with Telerik's grid? Can it be done with configuration, or would it require custom coding? Ideally I'd love to see an example (GitHub)?
Thanks in advance.
Hello,
I'm trying to see if there is a way to align a chart label so that it shows up inside the bar but left aligned. Here is what I have right now:
I'd like for the numbers to be left aligned but still in the bar:
Here is the xaml I have:
<Window x:Class="TestRadCartesianChart.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:local="clr-namespace:TestRadCartesianChart"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>
<telerik:RadCartesianChart>
<telerik:RadCartesianChart.Series>
<telerik:BarSeries ShowLabels="True"
CategoryBinding="Category"
ValueBinding="Value">
<telerik:BarSeries.LabelDefinitions>
<telerik:ChartSeriesLabelDefinition HorizontalAlignment="Center" VerticalAlignment="Center">
<telerik:ChartSeriesLabelDefinition.Template>
<DataTemplate>
<TextBlock Text="{Binding Value}"/>
</DataTemplate>
</telerik:ChartSeriesLabelDefinition.Template>
</telerik:ChartSeriesLabelDefinition>
</telerik:BarSeries.LabelDefinitions>
<telerik:BarSeries.DataPoints>
<telerik:CategoricalDataPoint Category="Apples" Value="20"/>
<telerik:CategoricalDataPoint Category="Bananas" Value="28"/>
<telerik:CategoricalDataPoint Category="Oranges" Value="17"/>
<telerik:CategoricalDataPoint Category="Strawberries" Value="30"/>
</telerik:BarSeries.DataPoints>
</telerik:BarSeries>
</telerik:RadCartesianChart.Series>
<telerik:RadCartesianChart.HorizontalAxis>
<telerik:LinearAxis x:Name="horizontalAxis1"/>
</telerik:RadCartesianChart.HorizontalAxis>
<telerik:RadCartesianChart.VerticalAxis>
<telerik:CategoricalAxis/>
</telerik:RadCartesianChart.VerticalAxis>
</telerik:RadCartesianChart>
</Grid>
</Window>
Any help is appreciated.
Thank You,
Giuliano Millan
This is about the RadSplitButton in UI for WPF. I use the Windows 8 theme.
RadSplitButton closed:
RadSplitButton opened:
I want to change that blue color (#25A0DA) to something that's not associated with the theme. I already change the colors of the Windows8Palette and the blue default color seems to be the AccentColor - I don't want to change the AccentColor, though (I set that to something different, which looks great everywhere except the RadSplitButton).
I already added the control template for RadSplitButton and it does work - when I change values I see those in the UI. But which value do I have to change to change the color when RadSplitButton was opened? I couldn't find it.
The XAML sample from the screenshots:
<telerik:RadSplitButton Content="This is a RadSplitButton" HorizontalAlignment="Left" Margin="80,70,0,0" VerticalAlignment="Top">
<telerik:RadSplitButton.DropDownContent>
<StackPanel>
<telerik:RadButton Content="This is a RadButton" HorizontalContentAlignment="Left"/>
<telerik:RadButton Content="This is a RadButton (2)" HorizontalContentAlignment="Left"/>
</StackPanel>
</telerik:RadSplitButton.DropDownContent>
</telerik:RadSplitButton>
I have a class wrapper for working with the Telerik zip library. Since I updated my project to work with a new version (Q2) there started a problem with zip files. I can create a zip file protected with some password, but I cannot read or update it, may some problem is with decryption operation, which also occurs in default Windows Explorer and 7Zip application.
There's a code that I use for the wrapper:
public void Create(string archivePath, string? password = null)
{
using var baseStream = fileSystem.FileStream.New(archivePath, FileMode.Create, FileAccess.ReadWrite);
using var archive = ZipArchive.Create(baseStream, null, compressionSettings, GetEncryptionSettings(password));
}
public void SerializeEntry<T>(string archivePath, string entryName, T entry, string? password = null)
{
using var baseStream = fileSystem.FileStream.New(archivePath, FileMode.Open, FileAccess.ReadWrite);
using var archive = ZipArchive.Update(baseStream, null, compressionSettings, GetDecryptionSettings(password));
archive.GetEntry(entryName)?.Delete();
XmlInOut<T>.SaveToStream(archive.CreateEntry(entryName).Open(), entry);
}
public T DeserializeEntry<T>(string archivePath, string entryName, string? password = null)
{
using var baseStream = fileSystem.FileStream.New(archivePath, FileMode.Open, FileAccess.ReadWrite);
using var archive = ZipArchive.Read(baseStream, null, compressionSettings, GetDecryptionSettings(password));
return XmlInOut<T>.LoadFromStream(archive.GetEntry(entryName).Open());
}
I have a GridView with a few rows that have longer headers than I need. To address this, I implemented two-row headers, as shown in one of the screenshots. However, I am using a ControlPanel for a few settings, one of which is hiding and revealing columns in my GridView. This feature doesn't work properly with my two-row headers, as seen in the screenshots.
Initially, when I open the ControlPanel, all two-row headers disappear, leaving empty headers. When I hide a column with a two-row header, the name of the column (header) disappears from the ControlPanel, but the checkbox remains, as shown in the screenshots. When I reveal the column again, the header reappears.
My question is: How should I manage headers when I want them to be two-row?
Is there a reason the ArcGIS provider does not require a key? Following the documentation shows the map without any issues.
https://docs.telerik.com/devtools/wpf/controls/radmap/features/providers/arcgis
Also, is there a way to use other styles or basemaps other than what the control provides? In particular, the imagery hybrid, which is aerial imagery with the roads/labels.
Is it possible to change the max zoom? ArcGisWorldMapSourceBase.cs uses a max zoom of only 19. I have the same issue with the Bing and Azure providers. I'd like to use the higher zoom levels available and not have the map control scale the images, which will then be blurry.