Prevent grid column from sorting and do not show change sort icons

Hello,

I am using the "sorting" event to set "cancel" to "true". This prevents sorting - ok.

But still the sort icons are changing in the column header. How can I avoid that. 

Please note tat I am using a custom DataAdaptor, but do not know if this has any effect on the behavior.

Thank you

Daniel


4 Replies

PS Prathap Senthil Syncfusion Team March 26, 2024 11:39 AM UTC

Hi Daniel,

Based on the reported problem you have encountered, using the 'sorting' event to set 'cancel' to 'true', but still, the sort icons are changing in the column header. We are unable to reproduce the reported issue when attempting to replicate it in the latest version 25.1.35. For your reference we have attached simple sample .So, to further proceed with the reporting problem, we require some additional clarification from your end. Please share the below details to proceed further at our end.

  • To analyze the reported issue, could you please share a simple and reproducible sample that demonstrates the problem? This will assist us in identifying the issue more efficiently and providing a resolution.
  • If possible, kindly share your attempt to replicate the issue using the attached simple sample.

Above-requested details will be very helpful in validating the reported query at our end and providing a solution as early as possible. Thanks for your understanding.


Regards,

Prathap S



DK Daniel Koffler April 2, 2024 02:25 PM UTC

Hello,

please find enclosed an example which shows the issue I am having.

Kind regards

Daniel


Attachment: TabControlCustomerLayoutServer_3bc4071c.zip


PS Prathap Senthil Syncfusion Team April 3, 2024 11:39 AM UTC

 We have considered it as a bug and logged an issue  “The sorting icon in the grid is not disabled when setting 'AllowUnsort' to false in the 'GridSortSettings”  for the same. Thank you for taking the time to report this issue and helping us to improve our product. At Syncfusion, we are committed to fix all validated defects (subject to technological feasibility and Product Development Life Cycle) and this fix will be included in any our upcoming patch release.

You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this feedback.
   
https://www.syncfusion.com/feedback/52390/the-sorting-icon-in-the-grid-is-not-disabled-when-setting-allowunsort-to-false-in

Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization”


Until then we appreciate your patience.



NP Naveen Palanivel Syncfusion Team April 24, 2024 01:55 PM UTC

Hi Daniel,


Thanks for your patience,

We are glad to announce that, we have included the fix for the reported issue “The sorting icon in the grid is not disabled when setting 'AllowUnsort' to false in the 'GridSortSettings“ in our 25.1.41 release.  So please upgrade to our latest version of Syncfusion NuGet package to resolve the reported issue. Please find the NuGet package for latest fixes and features from below.


NuGet : https://www.nuget.org/packages/Syncfusion.Blazor.Grid

Release Note: https://blazor.syncfusion.com/documentation/release-notes/25.1.41?type=all#data-grid

Root Cause:
Columns in sortsettings is not properly updated based on that sorting class is add in header cell.

We thank you for your support and appreciate your patience in waiting for this release.

Regards,
Naveen


Loader.
Up arrow icon