This is a migrated thread and some comments may be shown as answers.

OData filtering on Int64 property

4 Answers 135 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 03 Jun 2013, 04:14 PM
When filtering an odata source on an Int64 property, a "L" needs to be appended to the value so that is properly cast to Int64 by WebApi.

Is there a filter configuration that would properly append the "L" to the end of the value in the querystring? I have tried manually appending the "L" to the filter value however this causes it to be passed as a string and that cast fails as well.

For now I can manually build my filter querystring for my prototype but that is not ideal going forward.

Please let me know if you have any questions or need sample code.

4 Answers, 1 is accepted

Sort by
0
John
Top achievements
Rank 1
answered on 10 Mar 2020, 01:22 PM

I am having the same issue. Has there been any update on this?

Thanks.

0
Petar
Telerik team
answered on 12 Mar 2020, 11:58 AM

Hi John,

As the initial post in this thread is an outdated one, can you give me more details about the product version that you use? 

Here is a Stack overflow thread related to the current issue that discussed a possible solution. Can you try the demonstrates approach and let me know if it works in the scenario of the project you are working on? 

Regards,
Petar
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
John
Top achievements
Rank 1
answered on 12 Mar 2020, 01:28 PM

Hi Petar,

Thanks for the response. I am using Kendo UI v2017.3.1026.

I tried the solution in the link you posted and it seems to work although it just feels like a hack. I just thought that Telerik would address this directly as it seems like a scenario that should be addressed since the Kendo datasource supports odata filtering. Of course Javascript itself has had no support for Int64 until recently (BigInt) and that is not supported in all browsers.

Sigh....

--John

0
Petar
Telerik team
answered on 13 Mar 2020, 09:05 AM

Hi John,

If you think that the discussed scenario should be and built-in functionality, I would suggest adding a feature request in our Feedback portal. Based on the community interest on such a request, we may consider its implementation.

Regards,
Petar
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Data Source
Asked by
Eric
Top achievements
Rank 1
Answers by
John
Top achievements
Rank 1
Petar
Telerik team
Share this question
or