Pagination icon not recognized in unpackaged app on net 8

Pagination icon not recognized in unpackaged app on net 8

Image_5577_1707794612554


9 Replies

TP Tamilarasan Paranthaman Syncfusion Team February 13, 2024 02:35 PM UTC

Hi Erinxon Santana,

We have created a basic sample and conducted testing on our end using the latest version of DataGrid (23.2.5) in .NET 8. However, we were unable to replicate the issue regarding the DataPager icons not appearing as described. The icons are displaying properly in the view as expected.


For your convenience, we have attached the sample we tested on our end. We kindly ask you to review the attached sample on your end and verify whether you encounter the same issue.


To expedite resolution, we request that you thoroughly examine the provided sample. If there are any missed configurations or adjustments required to reproduce the reported issue, please modify the sample accordingly. Providing an accurate sample that replicates the problem will enable us to conduct a detailed investigation and deliver a solution promptly.


Note: We have conducted tests using the latest DataGrid version 24.2.5 and .NET 8 on the Windows platform.


Regards,

Tamilarasan


Attachment: Sample_44cd5b7.zip


ES Erinxon Santana February 13, 2024 10:35 PM UTC

Hi  Tamilarasan, thanks for answer quickly.


There is no problem when you run the application in a visual studio, but there is a problem when you run the application after publishing it.


To reproduce the issue, we need to add the following code to can run the app after publishing:

File name: launchSettings.json

Code:

{

  "profiles": {

    "Windows Machine": {

      "commandName": "Project",

      "nativeDebugging": false


    }

  }

}


File Name:  MauiApp1.csproj

  <WindowsPackageType>None</WindowsPackageType>

 <WindowsAppSDKSelfContained Condition="'$(IsUnpackaged)' == 'true'">true</WindowsAppSDKSelfContained>

 <SelfContained Condition="'$(IsUnpackaged)' == 'true'">true</SelfContained>


Attachment:  Sample_44cd5b7



NY Nirmalkumar Yuvaraj Syncfusion Team February 14, 2024 12:37 PM UTC

Hi Erinxon ,


Based on the information provided, the issue seems to be in the framework itself. However, there is workaround to resolve this issue, we can set the font directly to the platform control using the Handler. We have provided a working sample and code snippet for your reference.


Framework issue link - https://github.com/dotnet/maui/issues/9104


Code snippet:

MauiProgram.cs

#if WINDOWS

            Microsoft.Maui.Handlers.LabelHandler.Mapper.AppendToMapping("FontFamily", (handler, element) =>

            {

                if (element.Font.Family == "Maui Material Assets")

                {

                    const string MauiMaterialAssetsFamily = "Maui Material Assets.ttf#Maui Material Assets";

                    handler.PlatformView.FontFamily = new Microsoft.UI.Xaml.Media.FontFamily(MauiMaterialAssetsFamily);

                }

            });

#endif



Regards,

Nirmalkumar


Attachment: MauiApp1_b4082706.zip


ES Erinxon Santana replied to Nirmalkumar Yuvaraj February 14, 2024 10:27 PM UTC

Hi  Nirmalkumar,

Could you provide me the font family you are using in the pagination icon to put in manually into the project?


Thanks for answer quickly.



NY Nirmalkumar Yuvaraj Syncfusion Team February 15, 2024 12:58 PM UTC

Hi Erinxon ,


Currently, we are analyzing your query. We will provide you with an update on or before February 19, 2024, after validating the details. We appreciate your patience and understanding in the meantime.


Regards,

Nirmalkumar



ES Erinxon Santana replied to Nirmalkumar Yuvaraj February 19, 2024 07:22 PM UTC

Hi  Nirmalkumar,


Got it, Nirmalkumar. Thanks for the update. I'll follow the ticket for further updates.



JS Jayashree Suresh Anand Syncfusion Team February 21, 2024 07:26 AM UTC

Hi Erinxon,

We have created a separate ticket under your account, please follow that for further follow up. 

Regards,

Jayashree 



AW Andrea Weeg October 14, 2024 08:21 PM UTC

hi, i have this same problem with the data grid headers for sorting in an unpackaged maui application. i don't have the .ttf asset file is that something that can be sent to us?



AP Abinesh Palanisamy Syncfusion Team October 15, 2024 10:49 AM UTC

Hi Andrea,

We have created a support ticket under your account, please follow that further updates and if you encounter any issues you can create a separate ticket under this ticketing system:

https://support.syncfusion.com/

Regards,

Abinesh P


Loader.
Up arrow icon