Duplicated
Last Updated: 02 Mar 2020 13:12 by ADMIN
René
Created on: 06 Jan 2020 13:27
Category: UI for Blazor
Type: Bug Report
0
Using AuthorizeView tag around Column moves column to the very right.

I want to prevent users without WriteAccess to see the GridCommandColumn and a custom GridColumn containing some buttons.

Those two columns are the first in my grid.

If I add AuthorizeView tags like this

<AuthorizeView Policy="MyPolicy">

   <GridCommandColumn ...>

      ...

   </GridCommandColumn>

</AuthorizeView>

<AuthorizeView Policy="MyPolicy">

   <GridColumn ...>

      ...

   </GridColumn>

</AuthorizeView>

they will be hidden if the user does not comply to the policy but if he does comply the columns are displayed not as the first columns in the grid but as the last.

As a workaround I now don't hide the columns but their content (by moving the AuthorizeView tags inside the column tags).  This is not a good solution though since I loose valuable horizontal screen-space for displaying empty columns.

Duplicated
This item is a duplicate of an already existing item. You can find the original item here:
1 comment
ADMIN
Marin Bratanov
Posted on: 06 Jan 2020 17:44

Hello René,

I moved this issue under the parent one it stems from so this scenario can also be taken into account: https://feedback.telerik.com/blazor/1434835-preserve-column-order-when-showing-hiding-columns-dynamically. I am closing this one as a duplicate to keep the portal clean.

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor