We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Error on decimal type filter: Unable to cast object

Hello,

I have a grid that has a few columns of type decimal. AllowFiltering is true. When I try to filter a decimal column it gives the following error:

   Grid Action Failure Handler: "Unable to cast object of type 'System.Decimal' to type 'System.Double'."

Any ideas on how to solve the issue?

Thanks,

Erick





3 Replies

PS Prathap Senthil Syncfusion Team March 29, 2023 05:53 AM UTC

Hi Erick,

Query:”
I have a grid that has a few columns of type decimal. AllowFiltering is true. When I try to filter a decimal column it gives the following error:Grid Action Failure Handler: "Unable to cast object of type 'System.Decimal' to type 'System.Double'."

Based on the reported issue , we created the simple sample and We tried to reproduce the issue, but we were not able to reproduce it from our side in the version [21.1.35]. We recommend upgrading to the latest version of our software to see if that resolves the issue. We have included a screenshot and sample for your reference. If the issue persists, we kindly request that you provide a simple reproducible sample, or if possible try modifying the attached sample to see if the issue can be reproduced there. We appreciate your cooperation and hope to resolve this issue for you as soon as possible.

A screenshot of a computer

Description automatically generated


Regards,
Prathap S


Attachment: BlazorDataGridDecimalFilter_7cff6f0f.zip


ER Erick March 29, 2023 06:37 PM UTC

Hello,


I was on version 20.1.0.55 and updated to 21.1.37. The filter works ok with decimal columns. A few other components stopped working as expected but I'm now checking that.


Thanks,


Erick



PS Prathap Senthil Syncfusion Team March 30, 2023 08:58 AM UTC

Thank you for reaching out to us regarding the issues you experienced after updating to version 21.1.37. We are glad to hear that the problem with the filter and decimal columns has been resolved. If you have any further questions, please don't hesitate to contact us.


Loader.
Up arrow icon