Good afternoon, can you please advise me, am I assuming correctly to use Nested Property Text Filter Descriptor in DataGrid, it allows to use nested property filtering? If yes, why it doesn't work, here is a sample code:
<telerik:NestedProprtyTextFilterDescriptor PropertyName="Property.Nested"
Operator="Contains"
Value="MyValue"/>
Is there a way in a MAUI RadDataGrid to use a mouse to drag a row to a new spot in row order? Any examples?
Thanks !
Found this info for Winforms, but not finding anything for MAUI RadDataGrid
https://docs.telerik.com/devtools/winforms/knowledge-base/gridview-drag-drop-bound-mode
https://docs.telerik.com/devtools/winforms/controls/gridview/end-user-capabilities/reordering-rows
https://docs.telerik.com/devtools/maui/controls/datagrid/columns/reordering
<telerik:RadDataGrid x:Name="dataGrid">
<telerik:RadDataGrid.Columns>
<telerik:DataGridTextColumn HeaderText="Property" "PropertyName="Property.NestedProperty" />
</telerik:RadDataGrid.Columns>
<telerik:RadDataGrid.FilterDescriptors>
<telerik:TextFilterDescriptor PropertyName="Property.NestedProperty" Operator="EqualsTo" Value="Value" />
</telerik:RadDataGrid.FilterDescriptors>
</telerik:RadDataGrid>
Hi,
Using VS 2022 17.10 / .NET 8.0.3 / Telerik UI for MAUI 6.8 / MAUI 8.0.10 / Android 10 (API 29)
I've got a RadGridView on a ContentPage :
<c:NDCDataGrid
x:Name="dataGridDetails"
ItemsSource="{Binding DetailedData}">
<t:RadDataGrid.Columns>
<t:DataGridTextColumn HeaderText="Location" PropertyName="LocationName" />
<t:DataGridTextColumn
CellContentFormat="{}{0: dd/MM/yyyy}"
HeaderText="Date"
PropertyName="Date" />
<t:DataGridTextColumn HeaderText="Count" PropertyName="Count" />
<t:DataGridTextColumn HeaderText="Type" PropertyName="Desc" />
</t:RadDataGrid.Columns>
</c:NDCDataGrid>
My NDCDataGrid is defined like this :
<t:RadDataGrid
x:Class="NDC.Mobile.Controls.NDCDataGrid"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:t="http://schemas.telerik.com/2022/xaml/maui"
AutoGenerateColumns="False"
CanUserReorderColumns="False"
SelectionMode="Single"
SelectionUnit="Row"
UserFilterMode="Disabled">
<t:RadDataGrid.AlternateRowBackgroundStyle>
<AppThemeBinding>
<AppThemeBinding.Light>
<t:DataGridBorderStyle
BackgroundColor="Beige"
BorderColor="Black"
BorderThickness="1" />
</AppThemeBinding.Light>
<AppThemeBinding.Dark>
<t:DataGridBorderStyle
BackgroundColor="DimGray"
BorderColor="White"
BorderThickness="1" />
</AppThemeBinding.Dark>
</AppThemeBinding>
</t:RadDataGrid.AlternateRowBackgroundStyle>
<t:RadDataGrid.SelectionStyle>
<AppThemeBinding>
<AppThemeBinding.Light>
<t:DataGridBorderStyle
BackgroundColor="LightGreen"
BorderColor="Black"
BorderThickness="1" />
</AppThemeBinding.Light>
<AppThemeBinding.Dark>
<t:DataGridBorderStyle
BackgroundColor="DarkBlue"
BorderColor="White"
BorderThickness="1" />
</AppThemeBinding.Dark>
</AppThemeBinding>
</t:RadDataGrid.SelectionStyle>
</t:RadDataGrid>
When loading a list of 900+ elements, the app crashes
await Task.Run(async () =>
{
DetailedData = new ObservableCollection<MyType>(await myService.Method());
});
MyType is defined like this :
public int LocationName { get; set; }
public int Count { get; set; }
public DateTime Date { get; set; }
public string Desc { get; set; }
Java.Lang.RuntimeException: 'Canvas: trying to draw too large(119964240bytes) bitmap.'
0xFFFFFFFFFFFFFFFF in Android.Runtime.RuntimeNativeMethods.monodroid_debugger_unhandled_exception C# 0x1A in Android.Runtime.JNINativeWrapper._unhandled_exception at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Android.Runtime/JNINativeWrapper.g.cs:13,5 C# 0x1E in Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPL_V at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Android.Runtime/JNINativeWrapper.g.cs:126,26 C# 0x17 in System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw C# 0x8C in Java.Interop.JniEnvironment.InstanceMethods.CallNonvirtualVoidMethod at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/obj/Release/net7.0/JniEnvironment.g.cs:20830,5 C# 0x2D in Java.Interop.JniPeerMembers.JniInstanceMethods.InvokeNonvirtualVoidMethod at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/Java.Interop/JniPeerMembers.JniInstanceMethods_Invoke.cs:93,6 C# 0xA6 in Android.Graphics.RecordingCanvas.DrawBitmap at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/obj/Release/net8.0/android-34/mcw/Android.Graphics.RecordingCanvas.cs:161,5 C# 0x68 in SkiaSharp.Views.Android.SurfaceFactory.DrawSurface C# 0xCB in SkiaSharp.Views.Android.SKCanvasView.OnDraw C# 0x11 in Android.Views.View.n_OnDraw_Landroid_graphics_Canvas_ at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/obj/Release/net8.0/android-34/mcw/Android.Views.View.cs:18998,4 C# 0x9 in Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPL_V at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Android.Runtime/JNINativeWrapper.g.cs:125,5 C# 0xF in Java.Interop.JniNativeMethods.CallNonvirtualBooleanMethodA at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/obj/Release/net7.0/JniEnvironment.g.cs:18200,4 C# 0x73 in Java.Interop.JniEnvironment.InstanceMethods.CallNonvirtualBooleanMethod at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/obj/Release/net7.0/JniEnvironment.g.cs:20458,4 C# 0x8A in Java.Interop.JniPeerMembers.JniInstanceMethods.InvokeVirtualBooleanMethod at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/Java.Interop/JniPeerMembers.JniInstanceMethods_Invoke.cs:164,7 C# 0x70 in Android.Views.ViewGroup.DrawChild at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/obj/Release/net8.0/android-34/mcw/Android.Views.ViewGroup.cs:2839,5 C# 0x4 in Microsoft.Maui.Controls.Platform.Compatibility.ShellFlyoutRenderer.DrawChild at D:\a\_work\1\s\src\Controls\src\Core\Compatibility\Handlers\Shell\Android\ShellFlyoutRenderer.cs:172,4 C# 0x1C in Android.Views.ViewGroup.n_DrawChild_Landroid_graphics_Canvas_Landroid_view_View_J at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/obj/Release/net8.0/android-34/mcw/Android.Views.ViewGroup.cs:2824,4 C# 0xD in Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPLLJ_Z at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Android.Runtime/JNINativeWrapper.g.cs:323,5 C#
The control is unusable in this state !
Thanks.
I have a Rad Data grid that is working fine in dark mode, but the search panel is not. What do I need to do to style that.
This is what it looks like.. If I could just get the text to come outblak it would be acceptable
Hi there,
I am trying to style my dataGrid and I can't seem to use dynamic bindings for background colors etc. Whenever I do I get type mismatch compilation errors.
If I switch to StaticResources it works just fine.
For app themes I obviously need these values to be dynamic.
Any idea what I'm doing wrong here? Background styles and binding works correctly throughout the app so the binding is correct. It just doesn't want to compile for this control.
Thanks!
Angus
Hi,
seems that the HorizontalTextAlignment="Center" isnt working for the DataGrid ColumnHeader, or at least I am unable to get it working.
For the cells it works.
NuGet Telerik.UI.for.Maui (6.7.0), latest VS2022 with latest Net8/Maui
I am new to Maui/Xaml.
Please help
Uli
Here is my MainPage.xaml and attached a screenshot of the running DataGrid:
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"