Megabit / Blazorise

Blazorise is a component library built on top of Blazor with support for CSS frameworks like Bootstrap, Tailwind, Bulma, AntDesign, and Material.
https://blazorise.com/
Other
3.26k stars 528 forks source link

Datagrid columns reorder #5708

Open Rem962 opened 3 weeks ago

Rem962 commented 3 weeks ago

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

Any plan for this ? Having to develop our own datagrid just because of this feature sounds not good Thank you :)

David-Moreira commented 3 weeks ago

What are your thoughts in being able to reorder by using the column chooser? https://blazorise.com/docs/extensions/datagrid/features/column-chooser

stsrki commented 3 weeks ago

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.

Rem962 commented 3 weeks ago

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.

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 :)