Datagrid columns reorder
Hi :)
Given a datagrid we want to give users the possibility to set columns in the order they want and save it as preference somewhere.
Most common solution is a drag&drop on columns but right now it is not possible with blazorise.
So
- either giving drag&drop events on columns so we can manage ourself actions while drag&drop
- or getting the datagrid manage completely the reorder feature and have the possibility to 2way bind a DisplayOrders dictionnary to handle columns order ?
Any plan for this ? Having to develop our own datagrid just because of this feature sounds not good Thank you :)
What are your thoughts in being able to reorder by using the column chooser? https://blazorise.com/docs/extensions/datagrid/features/column-chooser
Having the reorder on the column chooser would be the easy path. But from a UX perspective, it would be better on the column drag-and-drop.
@Rem962 While not what you want ATM, you can use DisplayOrder parameter on DataGridColumn.
Having the reorder on the column chooser would be the easy path. But from a UX perspective, it would be better on the column drag-and-drop.
@Rem962 While not what you want ATM, you can use
DisplayOrderparameter onDataGridColumn.
I first wanted to use this DisplayOrder but then there is no easy way for user to change order since columns cannot be drag&drop :)
I have also been looking for a way that I can alow for users to set custom column orders and persist this in the database. Drag & Drop would be ideal, but beig able to use the Column Chooser do reoder would be the next best.
@tesar-tech can you investigate and see if it could be an easy feature to do? Or we would postpone in for later.
Yep. Will look into it.
Also would love to have this feature. I agree that moving the columns within the column chooser would be the best.
Here is a first try #6126
If anyone is willing to try locally, we're more than open to any comments.