Telerik Forums
UI for WinUI Forum
0 answers
3 views

Hello,

I tried to insert a DropDown button into another one and the inner button is not possible to expand:

            <telerikControls:RadDropDownButton Content="Drop down 1"  
                                   DropDownWidth="180">
                <telerikControls:RadDropDownButton.DropDownContent>
                    <StackPanel Orientation="Vertical">
                        <telerikControls:RadDropDownButton Content="Drop down 2"  
                                   DropDownWidth="180">
                            <telerikControls:RadDropDownButton.DropDownContent>
                                <ListBox>
                                    <ListBoxItem Content="Item 4" />
                                    <ListBoxItem Content="Item 5" />
                                    <ListBoxItem Content="Item 6" />
                                </ListBox>
                            </telerikControls:RadDropDownButton.DropDownContent>
                        </telerikControls:RadDropDownButton>
                        <ListBox>
                            <ListBoxItem Content="Item 1" />
                            <ListBoxItem Content="Item 2" />
                            <ListBoxItem Content="Item 3" />
                        </ListBox>
                    </StackPanel>
                </telerikControls:RadDropDownButton.DropDownContent>
            </telerikControls:RadDropDownButton>

Is it possible to make it work?

Pavel Krebs
Top achievements
Rank 1
 asked on 25 Jul 2024
0 answers
17 views

I have the datagrid UserEditMode set to "External", and somehow it keeps showing the inline edit mode/box. This happens as soon as I programmatically adda new item to the collection. Is there a way to stop this from happening? I'm looking for a way to hide that blue box and to just programmatically save the changes in the item as soon as any of the cells loses focus:

<telerikGrid:RadDataGrid ItemsSource="{x:Bind ViewModel.Parameters, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" AutoGenerateColumns="False" UserEditMode="External" CanUserChooseColumns="False" UserFilterMode="Disabled" UserGroupMode="Disabled" UserSortMode="None">
    <telerikGrid:RadDataGrid.Columns>
        <telerikGrid:DataGridTextColumn PropertyName="Key" Header="Parameter"/>
        <telerikGrid:DataGridTextColumn PropertyName="Value" Header="Value"/>
        <telerikGrid:DataGridTextColumn PropertyName="Description" Header="Description"/>
    </telerikGrid:RadDataGrid.Columns>
</telerikGrid:RadDataGrid>


using System.Collections.ObjectModel;
using System.ComponentModel;
using CommunityToolkit.Mvvm.ComponentModel;

namespace App1.ViewModels;

public partial class MainViewModel : ObservableObject
{
    [ObservableProperty]
    public string? name;

    [ObservableProperty]
    public ObservableCollection<ParameterViewModel> parameters;

    public MainViewModel()
    {
        Parameters = new ObservableCollection<ParameterViewModel>();
        this.AddNewParameter();
    }    

    private void Parameter_PropertyChanged(object? sender, PropertyChangedEventArgs e)
    {
        var item = sender as ParameterViewModel;
        if (item is not null)
        {
            var index = Parameters.IndexOf(item);
            if (index == Parameters.Count - 1)
                AddNewParameter();
        }
    }

    public void AddNewParameter()
    {
        var Parameter = new ParameterViewModel() { Key = "", Value = "", Description = "" };
        Parameter.PropertyChanged += Parameter_PropertyChanged;
        Parameters.Add(Parameter);
    }
}
public partial class ParameterViewModel : ObservableRecipient
{
    [ObservableProperty]
    public string? key;
    [ObservableProperty]
    public string? value;
    [ObservableProperty]
    public string? description;
}

Carlos
Top achievements
Rank 1
 asked on 12 Jul 2024
0 answers
13 views

We use only nested properties in and we whould like to have the same width of name column like group is it somehow possible to do it?

in the picture is group "Expand this group" and property with nested properties "Expand this nested object" where we do not care about value but want to span the columns to one to look similar like group "Expand this group".

 

Pavel
Top achievements
Rank 1
 asked on 03 Jul 2024
1 answer
15 views

Hi Telerik Support Team,

I am encountering an issue with my WinUI project while using the Telerik RadMap control. Specifically, I am receiving the following error:

"Cannot find a Resource With Name/Key RadExpanderStyle."

Stenly
Telerik team
 answered on 18 Jun 2024
0 answers
18 views

Hello,

I am encountering a critical issue with the RadMap control in my WinUI application. Specifically, the application crashes after several instances of zooming in and out. The crash happens without any exceptions being thrown or logged, making it difficult to diagnose the root cause.

I would appreciate any guidance or solutions you could provide to help resolve this issue

Below are the details of my setup and the steps to reproduce the issue:

Environment:

  • Telerik RadMap Version: 2.10.0
  • WinUI Version: WinUI 3
  • .NET Version: Net8.0
  • Operating System: Windows 11
ibra
Top achievements
Rank 1
 asked on 15 Jun 2024
1 answer
22 views

Could you provide guidance on how to connect the WinUI RadMap control with offline map data? Any specific instructions or examples would be greatly appreciated.

Thank you.

Martin Ivanov
Telerik team
 answered on 14 Jun 2024
1 answer
29 views
Could you guide me on how to implement MBTiles support in Telerik's WinUI RadMap control for offline map functionality?
Martin Ivanov
Telerik team
 answered on 26 Mar 2024
1 answer
34 views

Hi,

I would like to use SelectionMode="Extended" for my DataGrid and still be able to navigate through/select rows with arrow keys. Setting IsSynchronizedWithCurrentItem="True", however, disables multiselection. Is there a way to combine the two behaviors?

Thanks for your help

Regards

Simon

Stenly
Telerik team
 answered on 15 Mar 2024
1 answer
33 views

I have simple datagrid with numerical columns and when I switch on column filter dialog it is impossible to enter values over 100 or below 0. It looks like that RadNumericBox is limited to range <0,100>. I am able to disable distinct values but nothing else.

For example:


    <telerikgrid:RadDataGrid x:Name="MeasuredProfilesDataGrid" ItemsSource="{x:Bind ViewModel.Points}" AutoGenerateColumns="False" SelectionMode="Extended" SelectionUnit="Row" UserGroupMode="Disabled" UserEditMode="Inline">

        <telerikgrid:RadDataGrid.Columns>
            <telerikgrid:DataGridNumericalColumn PropertyName="StationingUserValue" Header="{x:Bind HeaderViewModel.StationingHeader}" CellContentFormat="{x:Bind HeaderViewModel.StationingFormatString}" ShowDistinctValuesFilter="False"/>
            <telerikgrid:DataGridNumericalColumn PropertyName="OffsetXUserValue" Header="{x:Bind HeaderViewModel.OffsetXHeader}" CellContentFormat="{x:Bind HeaderViewModel.LocalDistanceFormatString}" ShowDistinctValuesFilter="False"/>
            <telerikgrid:DataGridNumericalColumn PropertyName="OffsetYUserValue" Header="{x:Bind HeaderViewModel.OffsetYHeader}" CellContentFormat="{x:Bind HeaderViewModel.LocalDistanceFormatString}" ShowDistinctValuesFilter="False"/>
            <telerikgrid:DataGridNumericalColumn PropertyName="EastingUserValue" Header="{x:Bind HeaderViewModel.EastingHeader}" CellContentFormat="{x:Bind HeaderViewModel.ENHFormatString}" ShowDistinctValuesFilter="False"/>
            <telerikgrid:DataGridNumericalColumn PropertyName="NorthingUserValue" Header="{x:Bind HeaderViewModel.NorthingHeader}" CellContentFormat="{x:Bind HeaderViewModel.ENHFormatString}" ShowDistinctValuesFilter="False"/>
            <telerikgrid:DataGridNumericalColumn PropertyName="HeightUserValue" Header="{x:Bind HeaderViewModel.HeightHeader}" CellContentFormat="{x:Bind HeaderViewModel.ENHFormatString}" ShowDistinctValuesFilter="False"/>
        </telerikgrid:RadDataGrid.Columns>
    </telerikgrid:RadDataGrid>

Martin Ivanov
Telerik team
 answered on 15 Feb 2024
1 answer
47 views
Grouping a DataGrid is not what I'm looking for.
Martin Ivanov
Telerik team
 answered on 30 Oct 2023
Top users last month
Michael
Top achievements
Rank 2
Iron
Wilfred
Top achievements
Rank 1
Alexander
Top achievements
Rank 2
Iron
Iron
Matthew
Top achievements
Rank 1
Iron
ibra
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?