Telerik Forums
UI for WPF Forum
0 answers
80 views

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

Giuliano
Top achievements
Rank 1
Iron
 asked on 22 Aug 2024
0 answers
103 views

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

Johan Kramer
Top achievements
Rank 1
 asked on 21 Aug 2024
1 answer
67 views

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?

Bradley
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 21 Aug 2024
1 answer
89 views

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.

Martin Ivanov
Telerik team
 answered on 20 Aug 2024
1 answer
68 views

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

Stenly
Telerik team
 answered on 19 Aug 2024
1 answer
59 views

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>

Stenly
Telerik team
 answered on 13 Aug 2024
0 answers
88 views

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());
}

private EncryptionSettings GetEncryptionSettings(string? password)
{
    var result = EncryptionSettings.CreateAesPasswordEncryptionSettings();
    result.Password = password;
    return result;
}
private DecryptionSettings GetDecryptionSettings(string? password)
{
    var result = DecryptionSettings.CreateDecryptionSettings();
    result.PasswordRequired += (s, a) => a.Password = password;
    return result;
}
Kostiantyn
Top achievements
Rank 1
Iron
 asked on 12 Aug 2024
1 answer
66 views

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?

Stenly
Telerik team
 answered on 12 Aug 2024
1 answer
87 views

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.

Martin Ivanov
Telerik team
 answered on 12 Aug 2024
1 answer
65 views

I need to display a dataset of a scanned item where the dataset is a list of 3D values (X, Y and Z)
I want the diagram to display the Image as be a top-down view, using X and Y coordinates from the dataset using the  the height (Z) to color encode the point using a color gradient.

Using a 3D RadCartesianChart3D component I have created something similar, see the attached RadCartesianChar3D image. 
What I need now is a 2D image, something like what I try to illustrate in the attached ColorEncodedItem image.

What I need to know, is what component I should use for this job. 
I expect that using a RadCartesianChart3D will be to CPU intensive for the platform I will be running this software on + I don't know, how to make a top-down view of a diagram using this component

Martin Ivanov
Telerik team
 answered on 08 Aug 2024
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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?