Telerik Forums
UI for .NET MAUI Forum
1 answer
110 views
Hi, I'm developing a MAUI application with use of Telerik DataGrid. My question is how to trigger the CommitEdit command when user clicking any part of the page? Currently, CommitEdit will trigger when clicks any part of the Telerik DataGrid. Thanks
Maria
Telerik team
 answered on 28 Apr 2023
2 answers
537 views

I've tested a couple of scenarios and found that in the following cases, the swipe on the tab view does not work on Android

 

Scenario 1: Controls with gesture recognizers

The first label has a TapGestureRecognizer while the 2nd does not. In my testing, swiping only works on the 2nd label. Note I've tested on several types of gesture recognizers, with and without actual commands. Result stays the same

<telerik:TabViewItem HeaderText="Header">
	<Grid BackgroundColor="AliceBlue" RowDefinitions="*,*,*">
		<Label
			Grid.Row="0"
			BackgroundColor="Orange"
			HorizontalTextAlignment="Center"
			Text="Label With Gesture Recognizer (not working on Android)">
			<Label.GestureRecognizers>
				<TapGestureRecognizer />
			</Label.GestureRecognizers>
		</Label>
		<Label
			Grid.Row="1"
			BackgroundColor="AliceBlue"
			HorizontalTextAlignment="Center"
			Text="Label No Gesture Recognizer (works)" />
	</Grid>
</telerik:TabViewItem>

 

Scenario 2: CollectionView

See below example, but when a CollectionView is swiped over, the swipe does not work
<telerik:TabViewItem HeaderText="Log graph">
	<Grid BackgroundColor="Orange" RowDefinitions="*,*">
		<Grid.Resources>
			<ResourceDictionary>
				<x:Array x:Key="TestData" Type="{x:Type Color}">
					<Color>Aqua</Color>
					<Color>Black</Color>
					<Color>Blue</Color>
					<Color>Fuchsia</Color>
					<Color>Gray</Color>
					<Color>Green</Color>
				</x:Array>
			</ResourceDictionary>
		</Grid.Resources>
		<CollectionView BackgroundColor="Purple" ItemsSource="{StaticResource TestData}">
			<CollectionView.ItemTemplate>
				<DataTemplate>
					<BoxView HeightRequest="50" Color="{Binding}" />
				</DataTemplate>
			</CollectionView.ItemTemplate>
		</CollectionView>
		<Label
				Grid.Row="1"
				BackgroundColor="Red"
				Text="this works" />
	</Grid>
</telerik:TabViewItem>


I'm sure there's more but these two scenarios are prevelant in our app due to custom controls being used as well as collectionviews. 

Tested on iOS without issue.

JP
Top achievements
Rank 2
Iron
 answered on 28 Apr 2023
1 answer
175 views

Hey Team,

I have question for you. Do we support to open dropdown list when RadAutoComplete gets focus? 

If yes, how could we I it? Can you provide an example here? 

if no, will we add this functionality in the future?

Thanks

Allen

Maria
Telerik team
 answered on 24 Apr 2023
1 answer
120 views

Does the MAUI UI Toolkit work with the MAUI MVVM Community toolkit (), specifically the RelayCommand.

I am trying to configure the ListPicker to work with a RelayCommand but its not firing.

I am using the ListPicker on Windows, Latest Visual Studio, .net and Telerik versions.

XAML

<telerik:RadListPicker x:Name="WorkflowPicker" Placeholder="Select Workfow" ItemsSource="{Binding Workflows, Mode=TwoWay}" DisplayMemberPath="Name" PickerMode="DropDown" IsLooping="False" WidthRequest="300" Margin="3" BackgroundColor="Transparent" SelectedItem="{Binding SelectedWorkflow}">
                <telerik:RadListPicker.DropDownSettings>
                    <telerik:PickerDropDownSettings AcceptCommand="{Binding OnWorkflowsPickerAcceptRelay}" CancelCommand="{Binding WorkflowsPickerCancelCommand}" />
                </telerik:RadListPicker.DropDownSettings>
                <telerik:RadListPicker.ItemTemplate>
                    <DataTemplate>
                        <Label Text="{Binding Name}" HorizontalTextAlignment="Start" VerticalTextAlignment="Center"/>
                    </DataTemplate>
                </telerik:RadListPicker.ItemTemplate>
            </telerik:RadListPicker>

Page Model

public ICommand WorkflowsPickerCancelCommand { private set; get; }

public MainPageViewModel()
{
    this.WorkflowsPickerCancelCommand = new Command(this.OnWorkflowsPickerCancel);        
}

private void OnWorkflowsPickerCancel(object obj)
{
    // This fires        
}

[RelayCommand]
private void OnWorkflowsPickerAcceptRelay(object obj)
{
    // This does not fire
}

Are there any examples using the MVVM toolkit?

Lance | Senior Manager Technical Support
Telerik team
 answered on 21 Apr 2023
1 answer
109 views

I am trying to change the font size in my data form by creating a style in the styles.xml file. I was able to set the font size in a DataFormDatePickerEditor and DataFormRadEntryEditor, but not for the DataFormRadNumericEntry. I've tried targeting a label, a RadNumericInput, RadNumericEntry, Entry, RadEntry, and DataFormRadNumericEntryEditor for my style, but to no success. I would also like to set the font size for the validation message from the data annotations. I have attached below screenshots to clarify. Am I targeting the wrong type? Or is there a workaround to change the font sizing?

Thanks, 

Nate

Maria
Telerik team
 answered on 20 Apr 2023
1 answer
154 views
After editing an image with the ImageEditor, I want to save the result. How can I get the result as a binary array?
Didi
Telerik team
 answered on 18 Apr 2023
1 answer
218 views

After trying too many unsuccessful things and wasting WAAAAAAY TOO MUCH TIME on something that should be simple, I have come to the realization that either the functionality I need is not documented, documented well, or doesn't exist. I just want to use a .png file as the image source for a ButtonToolbarItem, but the only samples, items in the docs, or Google imply that it can only be done with a FontImageSource. If this is true, I think this constraint was a very poor decision on Telerik's behalf. What if a font doesn't exist for the image I NEED to display on a button?

Help me with this or admit this was a shortsighted decision...

Thanks, Steve Miller

steve@mobynet.io

Didi
Telerik team
 answered on 13 Apr 2023
1 answer
128 views

Hi, I found RadPopup has deferent opening behaviors on macOS and Windows. In my sample code, I have two buttons, each of which is attached to a popup.  

(1) When I opened the first popup and want to show the  second one by clicking Button2. In Windows, I can just directly click Button2 with one click, but in macOS, I need two clicks on Button2: first click for closing Popup1 and 2nd click for showing Popup2.

(2) If I double clicked on Button1, in macOS, the Popup1 would open and then Closed. While in Windows, the Popup1 would keep open.

Didi
Telerik team
 answered on 11 Apr 2023
1 answer
142 views

Hi,

I got following binding errors for RadDataGrid in run time.

You can reproduce these errors in your sample project SDKBrowserMaui

(1) Run SDKBrowserMaui app;

(2) Click DataGrid item from left panel;

(3) Click Sorting, you will see Binding failures in Visual Studio 

Didi
Telerik team
 updated answer on 07 Apr 2023
1 answer
227 views

Hi, I got Binding erros for RadListView 

You can reproduce these errors in your SDKBrowserMaui sample project.

(1) Run SDKBrowserMaui in Debug mode;

(2) Type ListView in the top Search ComboBox, and select Getting Started -Xaml

(3) You will see errors in Visual Studio.

Didi
Telerik team
 answered on 06 Apr 2023
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?