Datagrid and cell formatting?

1 Answer 149 Views
DataGrid
Deasun
Top achievements
Rank 3
Bronze
Bronze
Bronze
Deasun asked on 16 Jun 2022, 05:06 PM | edited on 29 Jul 2022, 03:04 PM

Using the RadDataGrid MAUI control does not seem to be formatting as the normal windows WPF GridView control.

example:


it does not seem to be seeing the carriage returns within the cells values.

Is this a bug or is there some thing I have to set in the control?

Thanks.

Deasun

[edited by Telerik support to occlude information in screenshots]

1 Answer, 1 is accepted

Sort by
0
Antoan
Telerik team
answered on 17 Jun 2022, 05:25 PM

Hello Deasun,

Thank you for the provided screenshots.

From what I see the issue might come from either a layout difference or some style settings. Could you provide a code snippet of both controls or a demo application where the problem is reproduced, so we may investigate the matter in detail.

Looking forward to your reply.

Regards,
Antoan
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Deasun
Top achievements
Rank 3
Bronze
Bronze
Bronze
commented on 28 Jul 2022, 11:29 AM

Thanks for the response.

Sorry it took a bit. Busy.

Attached is a zip with the XML and CS code and the DataContext.

Hopes this helps.

Deasun.

Antoan
Telerik team
commented on 29 Jul 2022, 03:04 PM

Hi Deason,

Thank you for the provided sample project.

I have opened the project but couldn't test any solutions on it as I am missing important pieces like the Database. However I was able to understand the scenario which you are aiming to achieve. What you are searching for is a TextWrap functionality of the DataGrid which we currently do not have.

I have opened a feature request on your behalf for said API, you can follow and vote for it from the following link leading to our public feedback portal:
https://feedback.telerik.com/maui/1574402-datagrid-textwrap-property

Regarding a workaround you can create a Template Column and set the Columns Width for more information on how to do that go to the following link:
https://docs.telerik.com/devtools/maui/controls/datagrid/columns/width

After setting up the Template Column and the Columns Width you can use the text wrapping of the Label to structure your text however you want, for more information on Label text wrapping go to the following link and see the section "Control text truncation and wrapping":
https://docs.microsoft.com/en-us/dotnet/maui/user-interface/controls/label 

I hope the provided information helps.

Regards,
Antoan
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
DataGrid
Asked by
Deasun
Top achievements
Rank 3
Bronze
Bronze
Bronze
Answers by
Antoan
Telerik team
Share this question
or