Duplicated
Last Updated: 02 Mar 2020 12:51 by ADMIN
Datafyer
Created on: 23 Oct 2019 18:57
Category: UI for Blazor
Type: Feature Request
4
Choose visible grid columns through UI in the grid

In many cases in a grid you may have additional data that the user can view however you don't want to show it as a default.

In these cases it would be nice to create the column normally, set the visible="false", and then have a built in column chooser feature.
This chooser would be a simple popup with a list of columns where the user can check whether visible or not.

Duplicated
This item is a duplicate of an already existing item. You can find the original item here:
4 comments
ADMIN
Marin Bratanov
Posted on: 31 Jan 2020 10:44

Hi everyone,

The following page contains a sample implementation: https://feedback.telerik.com/blazor/1450105-column-chooser. Since both requests are the same but the other one has an example, please Follow it instead. I have moved the existing votes for it. I'm sorry for missing it the second time and creating the duplicate.

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
ADMIN
Marin Bratanov
Posted on: 25 Oct 2019 06:21

You could define a list of checkboxes for each column you want to toggle and bind their values to flags in the view model per column. This list can be anywhere on the component - next to the grid, or in a window that you can show from a button click in the grid toolbar/command column.

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
Datafyer
Posted on: 24 Oct 2019 18:58
Thank you. Until it is directly supported that would be a workable solution.
ADMIN
Marin Bratanov
Posted on: 24 Oct 2019 07:29

Hi Patrick,

I renamed the title of this request to state clearly that this is about controlling the column visibility through UI in the grid (perhaps a column header menu). 

At the moment, you can wrap columns in conditional markup and show them through your own buttons, as demonstrated here: https://demos.telerik.com/blazor-ui/grid/columns.

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor