Unplanned
Last Updated: 12 Mar 2021 14:56 by ADMIN
Dominik
Created on: 03 May 2019 07:23
Category:
Type: Feature Request
1
Automatically convert numeric/date values when filtering or sorting

Hello

At the moment I have too loop over all of my results i get from my REST-Endpoint to convert all numeric fields to Javascript numbers, as the get passed with Quotes.

{
"numericValue1": "12",
"numericValue2: "10"
}

 

Wouldn’t it be much better, if the sorting and filtering would convert the values by itself, if i define the filter-type? Especially for performance.

 

Same problem exists on dates.

2 comments
ADMIN
Petar
Posted on: 12 Mar 2021 14:56

Hi Tim,

Thank you for your comment. Based on the available information, I can say that I agree with you. 

Dominik, can you share more details about the reported behavior? Your post is almost 2 years old. Is the issue replicable in the current versions of the Kendo UI for Vue suite? Which component/s do you use? 

Regards,
Petar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tim
Posted on: 11 Mar 2021 14:42

That's an issue with your endpoint (for numbers) JSON 100% supports numbers directly. Likely you are serializing them wrong.

 

As for dates, ya you have to parse them. But auto detecting dates is not an easy task, and is very prone to false positives with certain strings. I would *not* want this to be automatic.