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

I have a RadAutoComplete which works fine. But what I need to do is to be able to Clear the selected value programmatically (not using the clear button).

We have a use case where a user can have a selected value from the autocomplete, but then they use a toggle/button to change how the screen performs an API (not using the RadAutoCompelte selected value, but a different property), but when the user selects that toggle, it still leaves the selected value in the UI.

The user can be confused as to what style lookup they are performing seeing as when they toggle the other style lookup using the toggle button, the selected value from the autocomplete is not cleared.

I have been unable to find an event or option to clear the selected value in the display.

Can you tell me if there is a way to do this?

thanks

Billy

Didi
Telerik team
 answered on 18 Oct 2023
1 answer
966 views

Good afternoon,

I am using Telerik.UI.For.MAUI Version 6.3.0 (the issue also happens with 6.0.0) my .NET MAUI version is 7.0.52.

The Telerik controls that I'm using are the following:

  • RadDateTimePicker
  • Button
  • RichTextEditor

Through Visual Studio I am paired to a mac and whenever I try to launch the iOS simulator I keep getting the following error:

Severity  Code  Description  Project  File  Line  Suppression State
Error    clang++ exited with code 1:
ld: in /Users/devtester/Library/Caches/Xamarin/mtbs/builds/Ethel/734efe11f7dfae48b86ca62a722964f63815352b60a5fb7b241a48182b855194/obj/Debug/net7.0-ios/ios-arm64/linker-cache/TelerikUI.a(TKChartAnnotation.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/devtester/Library/Caches/Xamarin/mtbs/builds/Ethel/734efe11f7dfae48b86ca62a722964f63815352b60a5fb7b241a48182b855194/obj/Debug/net7.0-ios/ios-arm64/linker-cache/TelerikUI.a'
clang: error: linker command failed with exit code 1 (use -v to see invocation)  Ethel  C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\16.4.7107\targets\Xamarin.Shared.Sdk.targets  1272  

Any suggestions?

Didi
Telerik team
 answered on 18 Oct 2023
0 answers
122 views

I'm working with the RadExpander for .NET MAUI (6.3..0), and while it works fine on Android, it seems to lack a default IndicatorText on iOS and instead renders with a boxed question mark. It looks OK when I specify some IndicatorText string, but I'm not sure what the built-in character is and I'd love to get that to match (and have the orientation of that character be natural as well).

Here's what it looks like:

and expanded, it becomes:

Adam
Top achievements
Rank 1
 asked on 17 Oct 2023
1 answer
126 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
115 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
155 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
228 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
909 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
475 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
112 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
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?