Add a setting similar to the AllowUnsort so that I can disable the unsorted state of the Grid.
ADMIN EDIT:
Here is how to achieve this with the Grid state.
Thanks for your contribution, Marco!
I think the suggested workaround doesn't work correctly when the grid has Column Virtualization.
I implemented it for a Grid with Column Virtualization and the first time the user changes the sorting it goes to the Unsorted state, because for some reason the state's SortDescriptors list is empty. After that first time sorting, the workaround works properly.
Not a big deal but wanted to give that info.
Right now I'm fixing it manually with:
if (desiredState.SortDescriptors.Count == 0)
{
desiredState.SortDescriptors.Add(new SortDescriptor
{
SortDirection = ListSortDirection.Ascending,
Member = DefaultSortColumnName
});
}
Hi Marco,
I fixed the link, thanks.
The example throws an error during sorting, but I think it's something related to the REPL environment and not the example itself. We will look into this.
Regards,
Dimo
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.