Telerik Forums
UI for .NET MAUI Forum
1 answer
72 views

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

Didi
Telerik team
 updated answer on 17 Oct 2023
1 answer
47 views

How to create above UI with using RadShapeRating in MAUI ? Can you provide the sample app .
Didi
Telerik team
 answered on 13 Oct 2023
1 answer
55 views

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

Lance | Senior Manager Technical Support
Telerik team
 answered on 12 Oct 2023
1 answer
112 views

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?

Yana
Telerik team
 answered on 12 Oct 2023
3 answers
435 views
After adding items to the tree, I want to check an initial set of items and it is not working.  I have tried using "CheckedItems.Add()" and also setting the CheckedItems property to a list of objects.  Neither seems to work.  Am I doing something wrong?
Paul
Top achievements
Rank 1
Iron
 answered on 11 Oct 2023
1 answer
268 views

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

 

 

Lance | Senior Manager Technical Support
Telerik team
 answered on 10 Oct 2023
1 answer
46 views

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.

Didi
Telerik team
 answered on 06 Oct 2023
2 answers
73 views

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
Error clang++ exited with code 1:
ld: in /Users/userName/Library/Caches/Xamarin/mtbs/builds/MauiApp2/4cc154242c3d4d77ad8031d409c8191c8e21f5229295558069000613a59d123b/obj/Debug/net8.0-ios/iossimulator-arm64/linker-cache/TelerikUI.a(TKChartAnnotation.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/userName/Library/Caches/Xamarin/mtbs/builds/MauiApp2/4cc154242c3d4d77ad8031d409c8191c8e21f5229295558069000613a59d123b/obj/Debug/net8.0-ios/iossimulator-arm64/linker-cache/TelerikUI.a'
clang: error: linker command failed with exit code 1 (use -v to see invocation) MauiApp2 C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\16.4.8825-net8-rc1\targets\Xamarin.Shared.Sdk.targets 1589
Chris
Top achievements
Rank 1
Iron
 updated answer on 28 Sep 2023
1 answer
800 views

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 State
Error clang++ exited with code 1:
ld: in /Users/user999999/Library/Caches/Xamarin/mtbs/builds/MedewerkersApp/19815057d8f14eca6f8ead78220059f52ec430fa301f2c67a1834144ed4e811f/obj/Debug/net7.0-ios/iossimulator-x64/linker-cache/TelerikUI.a(TKChartAnnotation.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/user999999/Library/Caches/Xamarin/mtbs/builds/MedewerkersApp/19815057d8f14eca6f8ead78220059f52ec430fa301f2c67a1834144ed4e811f/obj/Debug/net7.0-ios/iossimulator-x64/linker-cache/TelerikUI.a' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation) MedewerkersApp C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\16.4.7098\targets\Xamarin.Shared.Sdk.targets 1274
Lance | Senior Manager Technical Support
Telerik team
 answered on 27 Sep 2023
0 answers
63 views

Hi.

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;

Didi
Telerik team
 updated question on 27 Sep 2023
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?