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

In html, Filtering columns first by number value, then by alphabet

2 Answers 102 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
Clint
Top achievements
Rank 1
Clint asked on 14 Apr 2020, 03:40 AM

Hello, the project I am working on is creating a kendo sheet via a string that is passed to the View, e.g.:

"{\"sheets\": [{\"frozenRows\": 1, \"frozenColumns\": 1, \"name\": \"xxxx\", \"filter\":{\"ref\":\"A1:Z__\", \"columns\":[]}, ......."

I need to modify this string to change the column sorting to filter first by numerical value, then by alphabetical order.  The bug being reported with the current filter setup is that if you sort a column that has e.g. between 10 and 20 rows in it, with values of consecutive integers like 1, 2, 3, ..., the sorted order will be:

1

10

2

3

...

 

I need to get the column to sort the numbers in correct ascending order first, and then by alphabetical order following any integer values at the start.  Can I ask for help on how to do this?  Thank you!

2 Answers, 1 is accepted

Sort by
0
Accepted
Aleksandar
Telerik team
answered on 15 Apr 2020, 04:55 PM

Hi Clint,

I am not sure I understand the issue. In this dojo, sorting on Quantity sorts the items as expected. Would it be possible to modify the example so the issue reported can be observed and send it back to me for further review?

Regards,
Aleksandar
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Clint
Top achievements
Rank 1
answered on 16 Apr 2020, 01:20 AM
Hi Aleksander, I apologize, the problem was on our end, we were inserting the numeric data into the kendo spreadsheet as a string, rather than in its original numeric data type.  So sorry for the trouble, thank you for your help! 
Tags
Spreadsheet
Asked by
Clint
Top achievements
Rank 1
Answers by
Aleksandar
Telerik team
Clint
Top achievements
Rank 1
Share this question
or