Row Background Style Color of telerik:RadDataGrid based on Properties

1 Answer 9 Views
DataGrid
Pedro
Top achievements
Rank 1
Pedro asked on 29 May 2025, 09:50 PM

I am trying to style the background color of Rows in a RadDataGrid  by the following the SDKBrowser MAUI Example (from GitHub).

RowBackgroundStyleSelector seems to be obsolete/not found in new versions of telerik .net maui... 

Using a class that returns a Style based on a Property value (implemeting IStyleSelector as the SDKBrowser example).

In the SDKBrowser example the binding is direct: (older version of .net maui telerik)?

How can I now bind the Row Background Style Color of a telerik:RadDataGrid in the new versions?

1 Answer, 1 is accepted

Sort by
1
Didi
Telerik team
answered on 30 May 2025, 08:05 AM

Hi Pedro,

The RowBackgroundStyleSelector property is available with Telerik MAUI 11.0.0 version. All breaking changes for the DataGrid are described here: https://docs.telerik.com/devtools/maui/upgrade/breaking-changes/11-0-0#datagrid 

In our SDK app there is an example how to use the RowBackgroundStyleSelector property https://github.com/telerik/maui-samples/tree/main/Samples/SdkBrowser/Examples/DataGridControl/StylingCategory/RowBackgroundStyleSelectorExample 

    For more detailed information, you can refer to the Telerik documentation on Style Selectors in DataGrid for .NET MAUI:

    So please make sure you use Telerik MAUI 11.0.0 version. Also please explain how you set the RowBackgroundStyleSelector property before using the Telerik MAUI 11.0.0 version, as such property didn't exist in 10.1.0 version and below. 

      Regards,
      Didi
      Progress Telerik

      Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

      Pedro
      Top achievements
      Rank 1
      commented on 30 May 2025, 11:55 AM

      Hi Didi,

      Upgrading from Telerik MAUI 10.1.0 to 11.0.0 solved the Problem. Thanks!
      Tags
      DataGrid
      Asked by
      Pedro
      Top achievements
      Rank 1
      Answers by
      Didi
      Telerik team
      Share this question
      or