This question is locked. New answers and comments are not allowed.
Hi,
we are now implmenting sequirity in our application and one of the things is that I want to show data only when the user has a specific role.
We make use of the std asp.net role provider.
I have alreay implemented such for commands Edit /Delete in my grid. That works good.
I hope it's possible.
Regards,
Gerard Eikelboom
we are now implmenting sequirity in our application and one of the things is that I want to show data only when the user has a specific role.
We make use of the std asp.net role provider.
I have alreay implemented such for commands Edit /Delete in my grid. That works good.
columns.Command(commands => { if (User.IsInRole("Administrator")) commands.Edit().ButtonType(GridButtonType.Image); if (User.IsInRole("Administrator")) commands.Delete().ButtonType(GridButtonType.Image);I hope it's possible.
Regards,
Gerard Eikelboom