Data Form Editors expose the property EditorStyle to allow setting the input control's overall style. But some input control have multiple styles not so easily set.
As the input control is also the Editor's base content, instead exposing content as the appropriate type allows all of the input controls styles to be set.
Here is my working example in my KingdomContacts app for one editor:
namespace KingdomContacts.Controls;
using Telerik.Maui.Controls;
public class KcNumericDfEditor : DataFormRadNumericEditor
{
public RadNumericInput? Editor => base.Content as RadNumericInput;
}
I have made similar adaptations for all the other Data Form editors I use. Simple and easy to work with; far easier than guessing what to do with EditorStyle.
Would be even easier if a similar line were inside your editors -- then I would not need to make my own customizations.
I would like a control to handle Currency that works with the UICulture
In the US it would show the input as $ ____.00. or ____.00 (USD) based on UICulture
in other countries it would show the currency symbol based on the UICulture
This control should work will all other controls such as grid column input
Hi Team,
We have a need for being able to dynamically choose a template for the three available DataTemplate:
Thank you,
Teddy
I tried to make an horizontal listview, using ListViewGridLayout. I want only one row with all the items from the collection.
I don't know how to set the SpanCount properly.
In the template, the image is not displayed (the function ImageResource is working in other control), only the Label is displayed.
<telerik:RadListViewWhat is the best way to load a byte[] (which is a jpeg file) in the ImageEditor.
Ideally I want to transform the byte[] to a Bitmap (easy), for storage purpose
using Stream stream = new MemoryStream(e.Buffer);
using Bitmap image = new Bitmap(stream);
And then display the bitmap, but I don't know how totransform it to an ImageSource.
Regards.
Is it possible to use GestureRecognizers in ImageEditor ? I tried this, but OnImageTapped is not called.
<?xml version="1.0" encoding="utf-8" ?>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
xmlns:versares="clr-namespace:SharedResources;assembly=SharedResources"
x:Class="PalletGate.Views.SingleEditor">
<Grid ColumnDefinitions="*">
<telerik:RadImageEditor x:Name="imageEditor1"
MinZoomLevel="0.1"
MaxZoomLevel="20"
Grid.Column="0"
>
<telerik:RadImageEditor.GestureRecognizers>
<TapGestureRecognizer Tapped="OnImageTapped" />
</telerik:RadImageEditor.GestureRecognizers>
</telerik:RadImageEditor>
</Grid>
</ContentView>
Code behind :
private void OnImageTapped(object sender, TappedEventArgs e) {
Hello,
TL;DR version - I request that the IFontElement interface (from Microsoft.Maui.Controls.Internals) be implemented on all Rad type controls that display text.
Detailed Version:
The CommunityToolkit.Maui.Markup nuget package provides some really nice extension methods that allow quick and easy configuring of controls without verbosity. When using the toolkit along side Telerik UI every extension I have tried works really well except for .Font(). On all standard MAUI controls you can just call the .Font() extension method and don't need to create a Style and apply it to an underlying property just to set a font size - you just set the size with .Font() as shown below. The below example code snippet shows the normal use of the toolkit on a standard MAUI Label and a RadTimeSpanPicker from the Telerik UI MAUI package.
The above example yields the following error, as does calling .Font() on pretty much every other Radxxxx control. Telerik UI controls seem to work really well with all the other extension methods I have tried from the toolkit except the .Font() extension method.
The type 'Telerik.Maui.Controls.RadTimeSpanPicker' cannot be used as type parameter 'TFontElement' in the generic type or method 'ElementExtensions.Font<TFontElement>(TFontElement, string?, double?, bool?, bool?)'. There is no implicit reference conversion from 'Telerik.Maui.Controls.RadTimeSpanPicker' to 'Microsoft.Maui.Controls.Internals.IFontElement'.
It would seem that implementing IFontElement would solve this.
This would be a nice feature and very helpful to anybody using the toolkit with Telerik controls because they could be used the same way as standard MAUI controls.
I looked under the hood a little bit and I believe the interface could/should be implemented on something like RadContentView which seems to be where most interfaces are inherited/implemented, and controls like RadTimePicker inherit from parent controls that eventually inherit from RadContentView.
I have been trying to get the DataGrid to work with Maui.Markup and I'm not finding a way to add a DataGrid to my View.
I would have expected I could add a DataGrid to the Children of Grid...but I'm not finding the right cast to allow that to happen, Grid.Children is expecting an IView.
Is this possible and I'm just missing something simple? Thanks!
Hi Team,
Currently (as of 0.7.0) the RadTabview automatically collapses the tab header items panel when there are no tab headers to show.
I am requesting that you add a feature to the RadTabView that will allow me to keep the header items panel visible, even if there are no tab headers visible.
Thank you,
Brandon
> The reason I ask for this, is because sometimes I need to set some tabs to IsVisible=False, but I still want to see the header panel.