<VerticalStackLayout>
<Label
Text="Welcome to .NET MAUI!"
VerticalOptions="Center"
HorizontalOptions="Center" />
<Label Text="Status:" />
<telerik:RadComboBox/>
</VerticalStackLayout>
This works for Android. IOS gives error "Cannot resolve type "http://schemas.telerik.com/2022/xaml/maui:telerik:RadComboBox"
But telerik:RadCheckBox does not have the same problem.
<VerticalStackLayout>
<Label
Text="Welcome to .NET MAUI!"
VerticalOptions="Center"
HorizontalOptions="Center" />
<Label Text="Status:" />
<telerik:RadCheckBox IsChecked="True"/>
</VerticalStackLayout>
Will work for IOS and Android.
How do I fix this?
I am using VS Community 2022 Preview
Version 17.3.0 Preview 6.0
and Telerik.UI.for.Maui.Trial 2.2.0
I don't have definitive proof on when it started but I did update my Telerik.UI.for.Maui NuGet package from Trial to an official licensed version and that is when I started to see bizarre behavior for the ButtonToolbarItem control. Suddenly, NO FONT ICONS show! Also, in my log file, I see this:
Unable to load font 'TelerikFont'.
I don't have this font installed in my Maui Resources\Fonts folder nor do I load it in my MauiProgram ConfigureFonts extension method for the MauiApp builder. It was working until two days ago.
I turned on BLAST mode in my debugger where I was seeing exceptions being thrown all over the place with regard to loading fonts. I am up against a crucial investor funding demo so I do not have the time to dig down to the core of this issue at the moment. This issue I am logging is there for you to ask me questions on things I can verify so we can work on this together.
What are some of the things you need me to do or look at to report back... The fact that NONE of my FontImageSource icons are being displayed in my RadToolBar ButtonToolbarItems is suspect. The reporting of the TelerikFont is even more suspect. I wasted a TON of valuable time today trying to find a workaround, but none could be found. GitHub Copilot and ChatGPT kept giving me bogus answers for properties on your controls that don't exist which only exacerbated my frustration. I tried to use PNG files as the icon, but your ButtonToolbarItem image source only allows font image sources which I think is a very bad design decision on your behalf. What if a font does not provide the correct image I wish to display? You really should allow png images to be used on these buttons!!!
Like I said, it was working up until several days ago...
Thanks, Steve
Hello,
I'm using an horizontal listview, it's working well. But when I put in in a RadDocklayout, nothing is displayed. What am I doing wrong ?
See attached project.
Other question : is it possible to have cell fitting to the text inside the listview (ItemLength="*") ?
Regards
I have three RadDataForms in my login workflow. I have tried all of the various CommitModes and ValidationModes to prevent this error, but nothing seems to prevent these errors from manifesting.
I have a data form that has two fields: Username and Password. When this form is FIRST displayed, what appears to be validation errors (formatted error log output):
---------------------------------- 2023-04-26 09:22:18.9231 WARN Call site: BindingDiagnostics.SendBindingFailure Method name: Microsoft.Maui.Controls.Xaml.Diagnostics.BindingDiagnostics.SendBindingFailure Line: 0 Exception Type: Exception Message: Stack Trace: Additional Info: '(null)' cannot be converted to type 'System.Boolean' ---------------------------------- ---------------------------------- 2023-04-26 09:22:18.9330 WARN Call site: BindingDiagnostics.SendBindingFailure Method name: Microsoft.Maui.Controls.Xaml.Diagnostics.BindingDiagnostics.SendBindingFailure Line: 0 Exception Type: Exception Message: Stack Trace: Additional Info: '(null)' cannot be converted to type 'System.Boolean' ----------------------------------
Then, I have a different RadData form that has five fields, First Name, Second Name, Email Address, Password and Password Confirmation. This leads to:
---------------------------------- 2023-04-26 09:22:46.6821 WARN Call site: BindingDiagnostics.SendBindingFailure Method name: Microsoft.Maui.Controls.Xaml.Diagnostics.BindingDiagnostics.SendBindingFailure Line: 0 Exception Type: Exception Message: Stack Trace: Additional Info: '(null)' cannot be converted to type 'System.Boolean' ---------------------------------- ---------------------------------- 2023-04-26 09:22:46.6821 WARN Call site: BindingDiagnostics.SendBindingFailure Method name: Microsoft.Maui.Controls.Xaml.Diagnostics.BindingDiagnostics.SendBindingFailure Line: 0 Exception Type: Exception Message: Stack Trace: Additional Info: '(null)' cannot be converted to type 'System.Boolean' ---------------------------------- ---------------------------------- 2023-04-26 09:22:46.7018 WARN Call site: BindingDiagnostics.SendBindingFailure Method name: Microsoft.Maui.Controls.Xaml.Diagnostics.BindingDiagnostics.SendBindingFailure Line: 0 Exception Type: Exception Message: Stack Trace: Additional Info: '(null)' cannot be converted to type 'System.Boolean' ---------------------------------- ---------------------------------- 2023-04-26 09:22:46.7018 WARN Call site: BindingDiagnostics.SendBindingFailure Method name: Microsoft.Maui.Controls.Xaml.Diagnostics.BindingDiagnostics.SendBindingFailure Line: 0 Exception Type: Exception Message: Stack Trace: Additional Info: '(null)' cannot be converted to type 'System.Boolean' ---------------------------------- ---------------------------------- 2023-04-26 09:22:46.7174 WARN Call site: BindingDiagnostics.SendBindingFailure Method name: Microsoft.Maui.Controls.Xaml.Diagnostics.BindingDiagnostics.SendBindingFailure Line: 0 Exception Type: Exception Message: Stack Trace: Additional Info: '(null)' cannot be converted to type 'System.Boolean' ----------------------------------
These errors are all encountered on the form's first load. Nothing has been entered into any field. No call to any validation methods is made.
Here is how my general data form configuration is done:
<telerik:RadDataForm
x:FieldModifier="public"
x:Name="SignUpForm"
Grid.Row="0"
CommitMode="Explicit"
Loaded="SignUpFormOnLoaded"
Margin="0,5,0,0"
Style="{StaticResource DataFormStyle}"
ValidationMode="Explicit">
I have attached the three classes I use as the binding context. I have tried None, Explicit, and LostFocus as settings for the two modes and it has no effect. While these errors look harmless and the form does provide error-checked data upon validation, I simply hate having any unnecessary errors in my log files.
What can I do to prevent these errors?
Thanks!
Steve
Is there a way to retrieve a pixel of the image in the imageEditor when clicking on it
I could implement something working well , but not when the image is zoomed or moved in the editor
public static Point Calc_Coordinates(double w_image, double h_image, double w_container, double h_container, double click_x, double click_y)Hi, I have created a page with a DataGrid on. I have set the datagrid as editable. When I run the app and double click on a cell the cell changes to an entry but the cell keeps on growing. It is also not very responsive then. Only when I tap somewhere else the cell changes back and it returns to its original size.
This only happens on Android.
Here is my XAML
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="FertilizerFarm.View.LeafAnalysisEditPage"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
xmlns:viewmodel="clr-namespace:FertilizerFarm.ViewModel"
x:DataType="viewmodel:LeafAnalysisEditViewModel"
xmlns:custom_components="clr-namespace:FertilizerFarm.View.Components"
Title="Leaf Analysis Detail">
<ContentPage.ToolbarItems>
<ToolbarItem Text="Save"
IconImageSource="save_icon.png"
Command="{Binding EditCommand}"
Order="Primary"
Priority="0" />
</ContentPage.ToolbarItems>
<StackLayout>
<VerticalStackLayout>
<Label Text="Land" Margin="10,12,10,0" FontSize="10" FontAttributes="Bold" TextColor="{StaticResource Primary}"></Label>
<telerik:RadComboBox IsClearButtonVisible="False"
ItemsSource="{Binding LandList}"
DisplayMemberPath="LandNumber"
Margin="10,0,10,2"
SearchTextPath="LandNumber"
SelectedItem="{Binding SelectedLand, Mode=TwoWay}"
SelectionMode="Single"
IsEditable="True"/>
<telerik:RadDataGrid x:Name="dataGrid" UserEditMode="Cell" ItemsSource="{Binding LeafAnalysis.Detail}" AutoGenerateColumns="False" UserFilterMode="Disabled">
<telerik:RadDataGrid.Columns>
<telerik:DataGridTextColumn PropertyName="Chemical" CanUserEdit="False"
HeaderText="Chemical">
<telerik:DataGridTextColumn.CellContentStyle>
<telerik:DataGridTextCellStyle TextColor="Green"
FontSize="15"
SelectedTextColor="Orange" />
</telerik:DataGridTextColumn.CellContentStyle>
</telerik:DataGridTextColumn>
<telerik:DataGridTextColumn PropertyName="OptimalValue" CanUserEdit="False"
HeaderText="Optimal">
</telerik:DataGridTextColumn>
<telerik:DataGridTextColumn PropertyName="ChemicalValue"
HeaderText="Value">
</telerik:DataGridTextColumn>
<telerik:DataGridTextColumn PropertyName="Measurement" CanUserEdit="False"
HeaderText="">
</telerik:DataGridTextColumn>
</telerik:RadDataGrid.Columns>
</telerik:RadDataGrid>
</VerticalStackLayout>
</StackLayout>
</ContentPage>
Here is my ViewModel
using FertilizerFarm.Services;
namespace FertilizerFarm.ViewModel;
[QueryProperty(nameof(LeafAnalysis), "LeafAnalysis")]
public partial class LeafAnalysisEditViewModel : BaseViewModel
{
[ObservableProperty]
LeafAnalysis leafAnalysis;
[ObservableProperty]
bool isRefreshing;
[ObservableProperty]
ObservableCollection<Land> landList;
[ObservableProperty]
Land selectedLand;
[ObservableProperty]
string headerText;
public bool Initiated { get; protected set; }
IConnectivity connectivity;
private readonly LeafAnalysisService leafService;
private readonly LandService landService;
public LeafAnalysisEditViewModel(IConnectivity connectivity, LeafAnalysisService leafService, LandService landService)
{
this.connectivity=connectivity;
this.leafService=leafService;
this.landService=landService;
Initialize = GetData();
}
public Task Initialize { get; }
private async Task GetData()
{
var lands = await landService.GetLandsForUser();
LandList = new ObservableCollection<Land>(lands);
if (LandList.Count == 0)
{
// show error
}
else
{
SelectedLand = landList[0];
LeafAnalysis = await leafService.GetNew(LandList[0].Id);
}
Initiated = true;
}
[RelayCommand]
async Task Edit()
{
if (IsBusy)
return;
}
}
If you can't replicate I will scale down our current project to demonstrate the problem.
Hello,
I am trying to run the Controls Sample to get familiar with the controls. However, I am unable to run the app on my attached iPhone.
The app begins to load and then crashes.
2022-09-28 15:09:46.859 Xamarin.PreBuilt.iOS[28369:1992314] Could not resolve assembly Microsoft.VisualStudio.DesignTools.TapContract, Version=17.0.0.0, Culture=neutral, PublicKeyToken=null. Details: Could not load file or assembly '/var/mobile/Containers/Data/Application/46038C78-9283-4AE5-A2D9-7EA2D530A685/Documents/ControlsSamples.content/Microsoft.VisualStudio.DesignTools.TapContract.dll' or one of its dependencies.
I am using the SDKBrowser app to demonstrate the problem. This does not happen on the emulator but on my physical device (Samsung S22). I have created a video and attached it.
When I enter a value into the Numeric input and click on the "." button, the entry does create a "," sign. This is fine but the cursor jumps back in front of the comma. I have to physically move the cursor back and can only then continue entering the decimal values.
The second problem is, if I accidently click the "." a second time after entering the decimal values, the app crashes.
I suspected it could be the language settings on the device. I am from South Africa and change the language of the device from English (South Africa) to English (United States) and then it works as expected. Regardless of this, I would expect the control to work with any culture.
When update to 2.2.0, Running by IOS Emulator failed,but version 2.1.0 is worked.
Error Msg : The type initializer for 'SkiaSharp.SKObject' threw an exception.
Please refer to image.
Nice job on Telerik, Kendo UI and Test Studio R3 2022! I like the PDF Viewer UI Controls. Question: Any plans to add annotations and comments to client-side .NET Blazor MAUI libraries such as this serverside solution
The main navigation menu is not displayed on surface devices.
The look of the mobile page is displayed.
I'm getting a NullReferenceException when trying to display a RadDataGrid that has a column where one of the objects in the PropertyName "chain" is null. For example, in your Columns -> Columns Overview section of your sample SDK browser (SDKBrowserMaui.Examples.DataGridControl.ColumnsCategory.ColumnsExample.Columns.xaml) the data grid is bound to a list of Clubs. If you add this code to Club (With nothing else. Keep Manager null):
private Person _manager;
public Person Manager
{
get { return _manager; }
set { UpdateValue(ref _manager, value); }
}
and then add this column to the grid:
<telerik:DataGridTextColumn PropertyName="Manager.Name"
HeaderText="Manager"/>
I'm not talking about the already existing Docking Layout (which is just like the DockPanel of WPF), but more like the RadDocking.
I'm missing the ability yo have Tabs, panes and groups, and having a pane docked out to a different window and to a different screen, as multiple windows is a feature supported by MAUI.