I need to be able to unsort a column in single mode. As of now for 13.2.20132.2157 there doesn't seem to be an API available. I can clear or change the sorting expression but then I would have call data bind on the grid which re-renders the entire data source. I don't want that. I just want to clear the sorting and restore the original state.
How can I do this?
The current unsortColumn method returns in single mode. Other examples require a data bind. When the data source is set to remote, it causes the page to get the data again for no reason.
Halp?
Hello,
I'm just following up to see if you need any further assistance with this issue. If so please let me know.
Hello Daniel,
All planned new features/improvements are listed at the http://ideas.infragistics.com/ website. Those of them marked with the "Planned" status will be added to the product. We can’t commit to when yet, but we are planning to do it and will let you know when we start.
As far as I see there are no planned addings of unsorting behavior in the API, so this can be considered a product idea.
You can also log this idea and members of the Infragistics Community then vote for the features and suggestions they want to see added to the products, resulting in the most popular features bubbling up to the top. When planning new releases, our Product Management team will look at the most popular features and use your feedback to prioritize upcoming work.
Steps to create your idea:
1. Log into the Infragistics Product Ideas site at http://ideas.infragistics.com (creating a new login if needed).2. Navigate to the product / platform channel of your choice (e.g. WPF, Windows Forms, ASP.NET, HTML5 / Ignite UI, iOS / NucliOS, etc.)3. Add your product idea and be sure to be specific and provide as much detail as possible. Explain the context in which a feature would be used, why it is needed, why it can’t be accomplished today, and who would benefit from it. You can even add screenshots to build a stronger case. Remember that for your suggestion to be successful, you need other members of the community to vote for it. Be convincing!
The benefits of submitting the product idea yourself include:
- Direct communication with our product management team regarding your product idea.- Notifications whenever new information regarding your idea becomes available.
Please let me know if I may be of any further assistance to you regarding this matter.
Are there any plans to allow developers to unsort a column in single mode in the future?
You have correctly noticed that passing an empty array is not how it will work, and changing the sorting expressions seems to do nothing. It just changes the sorting expressions , but as discussed the grid needs to be rebinded to reflect the changes.
Actually there is not that big difference between the API and the UI. If you manually sort a column in the grid by clicking the column header you cannot "clear" the sort, just change the expressions if you click on the header again (changes the sort direction in this case).
Well, you can always destroy the sorting widget or the whole grid and then initialize it again, but this is not a rational approach.
Please let me know if you have further questions.
What happens when the sorting expression is changed? When I change it I notice nothing happens. Is there a method to call to force the new expressions to update the UI (other than data bind?)
When I am changing the sorting on the UI by clicking, the action happens almost immediately. If I manually set the expressions programmatically and call data bind the data disappears and repaints itself which make take up to 2 seconds. I don't like the fact that the behaviors are different between the UI and the API. To clear the sorting expressions I expected that it would accept an empty array to simulate that nothing but it isn't working that way.