ProgressNS / nativescript-ui-feedback

This repository is used for customer feedback regarding Telerik UI for NativeScript. The issues system here is used by customers who want to submit their feature requests or vote for existing ones.
Other
115 stars 21 forks source link

I wish to sort my groups after my own needs, not alphabetically #1213

Open coffeeneed opened 5 years ago

coffeeneed commented 5 years ago

Please take a minute to read our NativeScript Code of Conduct before proceeding with posting issues or discussing. The purpose of this guide is to make communication and cooperation within our forums a pleasure for you and the other members.

Please, provide the details below:

Tell us about the problem

I'm not able to sort my groupings after my needs. I've set up grouping system based on one of the values from the for loop. However, those sorting text headers are however sorted alphabetically. That make sense, has anyone managed to sort these group names after their own need? What if I don't want to sort after the names which are made for the groups?

Which platform(s) does your issue occur on?

Both

Please provide the following version numbers that your issue occurs with:

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

Grouping function grouped by employee position myGroupFunction(player) { return employee.position; },

However, I don't want the groupings to be sorted alphabetically. Any ideas would be greatly appreciated.

NickIliev commented 5 years ago

@coffeeneed can you create a Playground demo that illustrates what you have done so far and what you are trying to achieve.

coffeeneed commented 5 years ago

@NickIliev Thanks for your response. Of course. Here's what I have: https://play.nativescript.org/?template=play-vue&id=or76ap&v=5 What I'm trying to achieve is to change sortings of the groups. Let's say I want the list like this: Second floor Item 1 Item 2 First Floor Item 3 Third floor Item 4 Item 5 Item 6

Is this possible to fix in some way? Any clues on how I should go about? I felt I've trying everything with the sortingFunction, but as I understand, that one is only made for the text inside the loops, not the headers ("Second floor", "Third floor").

Cheers.

Willhay108-imprint commented 5 years ago

@NickIliev I've just encountered this issue myself, my grouping is based on date, it is displayed in ascending order when I would like it to be descending. Is there a way for us to manipulate the grouping past the initial grouping itself?

Willhay108-imprint commented 5 years ago

@tsonevn You closed my ticket in favor of this one, but still no one has responded to the thread after the OP posted a playground as requested. Could we please get an update on the ticket, this is the 3rd ticket I've seen on the issue but I'm yet to see any real reply to any of them on if this is functionality you will be looking to implement. Thanks.

dpdragnev commented 4 years ago

So, is there a way to achieve this? I am facing the same issue. I am wondering why this ticket is closed if nobody had answered it.