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"
Using the DataTable and RadDataGrid example at https://docs.telerik.com/devtools/maui/controls/datagrid/datatable-support
How do I specify the binding for a CellContentTemplate DataTemplate in XAML ?
For example, for IsVisited
<telerik:RadDataGrid.Columns>
<telerik:DataGridBooleanColumn PropertyName="IsVisited" HeaderText="IsVisited" SizeMode="Auto"
CanUserEdit="False" CanUserFilter="false" IsResizable="false">
<telerik:DataGridBooleanColumn.CellContentStyle>
<telerik:DataGridTextCellStyle TextColor="Black" FontSize="14" SelectedTextColor="Blue" HorizontalTextAlignment="End" />
</telerik:DataGridBooleanColumn.CellContentStyle>
<telerik:DataGridColumn.CellContentTemplate>
<DataTemplate>
<telerik:RadCheckBox IsChecked="{Binding IsVisited}" IsEnabled="False" HorizontalOptions="Center"/>
</DataTemplate>
</telerik:DataGridColumn.CellContentTemplate>
</telerik:DataGridBooleanColumn>
</telerik:RadDataGrid.Columns>
I'm getting the message
"Microsoft.Maui.Controls.Xaml.Diagnostics.BindingDiagnostics: Warning: 'IsVisited' property not found on 'System.Data.DataRowView', target property: 'Telerik.Maui.Controls.RadCheckBox.IsChecked'"
The checkbox is not checked when IsVisited is true.
Edit: RadTabView also leaks. Attached new sample app.
We have found leaks in these controls. I have attached a sample app that demonstrates the problem.
I have logged a support ticket but is anyone else experience similar leaks with these controls?
From the included readme.md:-
Memory leaks when using
Hi,
i have a scenario where I as loggedIn user belongs to some Organization and in UsersView I can see all users and also one of the columns is Organization. I would like to set filter of this column to same Organization as Im in. So I see only users from my organization by default.
so my question is how to set this filter from code or can i somehow bind it from xaml to some property ?
Is there a way to allow copying from the RadDataGrid for the purpose of pasting into another application (Excel, text document, etc.?)
Would it be possible to copy an entire row or would it be restricted to the cell only?
I want to use alternate row style, while also styling the other rows. But if I set RowBackgroundStyle, then the AlternateRowBackgroundStyle is ignored?
Here's the code for my grid:
And this is the result:
However, if I remove the RowBackgroundStyle, then it looks like this:
Because default background color is black, it now looks like this. Is it really not possible to style the two sets of rows?
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