Hi,
I tested nested properties in data grid by following this doc https://docs.telerik.com/devtools/maui/controls/datagrid/columns/nested-properties. But got an error at the footer of City Column when I counting the cities by PropertyAggregateDescriptor for this column
So I am wondering is aggregate supported for nested properties?
Jamison
I can see this in the docs:
But that doesn't add an Entry (Text box)
I would prefer to just have an Entry in the toolbar rather than a button to show a Template with an entry inside it.
This is the error:
Thanks
I've setup my DataGrid to have a checkbox column. I want to implement a feature where I can click the checkbox on one row, then left shift + click on a checkbox in another row and check it along with all the rows in between.
I can get the first row and detect the left shift + click to get the last row. My problem is that I can't see a way to iterate through the grid to capture all ids for the rows in between so I can check the boxes for those rows as well.
Using DataGrid.ItemSource won't work because it won't respect any sorting, filtering, or grouping in the grid. How do I iterate through grid rows to find my first and last id and collect all ids in between?
I have a ContentView with a bindableproperty of type IEnumerable. When I bind the property to the ItemsSource of a CollectionView it works. Then I added the CollectionView to the SelectorTemplate of a TemplatedPicker with the same binding syntax it doesn't work. What is the correct binding syntax for the ItemsSource of a CollectionView inside a TemplatedPicker?
Here the code:
ColorPicker.xaml (with CollectionView only)
<CollectionView
ItemsSource="{Binding Source={x:Reference this}, Path=ViewColorList}"
HeightRequest="320"
SelectionMode="Single">
<CollectionView.ItemTemplate>
<DataTemplate x:DataType="model:ColorData">
<Grid HeightRequest="70" WidthRequest="100" RowDefinitions="Auto, Auto">
<telerik:RadBorder Grid.Row="0" WidthRequest="40"
HeightRequest="40"
CornerRadius="20"
HorizontalOptions="Center"
VerticalOptions="Center"
BorderColor="{Binding ColorValue, Converter = {StaticResource ColorConverter}}"
BorderThickness="2"
BackgroundColor="{Binding ColorValue, Converter = {StaticResource ColorConverter}}" />
<Label Grid.Row="1" Text="{Binding Name}" FontSize="12" TextColor="Black" HorizontalOptions="Center"/>
</Grid>
</DataTemplate>
</CollectionView.ItemTemplate>
<CollectionView.ItemsLayout>
<GridItemsLayout Orientation="Vertical" Span="4" />
</CollectionView.ItemsLayout>
</C ollectionView>
ColorPicker.xaml (with TemplatedPicker)
<telerik:RadTemplatedPicker x:Name="picker"
Placeholder="Select a Color">
<telerik:RadTemplatedPicker.DisplayTemplate>
<ControlTemplate>
<Grid ColumnDefinitions="Auto, *">
<Grid.GestureRecognizers>
<TapGestureRecognizer Command="{TemplateBinding ToggleCommand}" />
</Grid.GestureRecognizers>
<telerik:RadBorder
Grid.Column="0"
WidthRequest="20"
HeightRequest="20"
CornerRadius="10"
VerticalOptions="Center"
BorderColor="{Binding Source={x:Reference ColorPicker}, Path=ViewSelectedColor.ColorValue, Converter = {StaticResource TransparentConverter}}"
BorderThickness="1"
BackgroundColor="{Binding Source={x:Reference ColorPicker}, Path=ViewSelectedColor.ColorValue, Converter = {StaticResource ColorConverter}}"/>
<Label Grid.Column="1" Text="{Binding Source={x:Reference ColorPicker}, Path=ViewSelectedColor.Name}" FontSize="15" TextColor="Black" Margin="12, 0, 0, 0"/>
</Grid>
</ControlTemplate>
</telerik:RadTemplatedPicker.DisplayTemplate>
<telerik:RadTemplatedPicker.SelectorTemplate>
<ControlTemplate>
<CollectionView
ItemsSource="{Binding Source={x:Reference this}, Path=ViewColorList}"
HeightRequest="320"
SelectionMode="Single">
<CollectionView.ItemTemplate>
<DataTemplate x:DataType="model:ColorData">
<Grid HeightRequest="70" WidthRequest="100" RowDefinitions="Auto, Auto">
<Grid.GestureRecognizers>
<TapGestureRecognizer Tapped="Close_ColorSelection" />
</Grid.GestureRecognizers>
<telerik:RadBorder Grid.Row="0" WidthRequest="40"
HeightRequest="40"
CornerRadius="20"
HorizontalOptions="Center"
VerticalOptions="Center"
BorderColor="{Binding ColorValue, Converter = {StaticResource ColorConverter}}"
BorderThickness="2"
BackgroundColor="{Binding ColorValue, Converter = {StaticResource ColorConverter}}" />
<Label Grid.Row="1" Text="{Binding Name}" FontSize="12" TextColor="Black" HorizontalOptions="Center"/>
</Grid>
</DataTemplate>
</CollectionView.ItemTemplate>
<CollectionView.ItemsLayout>
<GridItemsLayout Orientation="Vertical" Span="4" />
</CollectionView.ItemsLayout>
</CollectionView>
</ControlTemplate>
</telerik:RadTemplatedPicker.SelectorTemplate>
</telerik:RadTemplatedPicker>
ColorPicker.xaml.cs
public partial class ColorPicker : ContentView
{
public ColorPicker()
{
InitializeComponent();
}
#region ViewColorList property
public static readonly BindableProperty ViewColorListProperty = BindableProperty.Create(
nameof(ViewColorList),
typeof(IEnumerable<ColorData>),
typeof(ColorPicker3),
default(IEnumerable<ColorData>),
propertyChanged: OnItemsSourcePropertyChanged);
public IEnumerable<ColorData> ViewColorList
{
get => (IEnumerable<ColorData>)GetValue(ViewColorListProperty);
set => SetValue(ViewColorListProperty, value);
}
#endregion
}
ColorData.cs (Model of ColorData)
public class ColorData
{
public string Name { get; set; }
public string ColorValue { get; set; }
}
Hi All,
I just want to ask if it is possible to change the clear button icon in RadEntry? Currently, we have a feature that we need to display an exclamation point icon in the current clear button position if the user enters an invalid value. Also, upon pressing on that exclamation point, we need to display a pop up message.
I am getting a clang ++ error when I add the Manu.Trial version 6.1.0 and 6.2.0.
This occurs when using a simulator. I am using a Macbook Pro, M2 Pro cpu. It does not appear when running on hardware.
Any ideas on how to get this working?
Severity Code Description Project File Line Suppression State
Hey there,
I am using Telerik UI for my MAUI mobile application.
The only component i am currentyl using is the RadCalendar at .NET MAUI Calendar Documentation - Getting Started - Telerik UI for .NET MAUI
Currently the android version works flawlessly, but when i try to run the simulator on IOS, the simulator crashes with this error;
Severity Code Description Project File Line Suppression StateHi.
When we set the DayViewSettings DayStartTime and DayEndTime in runtime on appointments changes for a day, the RadCalendar control behaves strange, jumping from day to day.
TimeSpan dayStartTime = todayAppointments.Min(next => next.StartDate.TimeOfDay);
TimeSpan dayEndTime = todayAppointments.Min(next => next.EndDate.TimeOfDay);
calendar.DayViewSettings.DayStartTime
= calendar.MultiDayViewSettings.DayStartTime
= dayStartTime > defaultDayStartTime ? defaultDayStartTime : dayStartTime;
calendar.DayViewSettings.DayEndTime
= calendar.MultiDayViewSettings.DayEndTime
= dayEndTime > defaultDayEndTime ? dayEndTime : defaultDayEndTime;