weixin_39999116
2020-12-31 05:56 阅读 2

DataGridColumn visibility

Is your feature request related to a problem? Please describe. I'm trying to control the visibility of DataGridDateColumn, DataGridColumn's etc.. based on a filter (checkboxes) I've made.

Describe the solution you'd like I think the most suitable way would be to pass the Visibility attribute with the desired value and once the boolean changes, from our side we would call StateHasChanged() to take effect.

Additional context

该提问来源于开源项目:stsrki/Blazorise

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

5条回答 默认 最新

  • weixin_39726971 weixin_39726971 2020-12-31 05:56

    Seems like a good feature to have. Thank you for posting.

    点赞 评论 复制链接分享
  • weixin_39921023 weixin_39921023 2020-12-31 05:56

    Bumping this for visibility. Being able to set a column's visibility to false would allow the work around mentioned in (331)[https://github.com/stsrki/Blazorise/issues/331] to actually work when dealing with databases and foreign keys.

    Currently, the workout requires two columns, the id field (still necessary for db operations) and the display field. Since you need the id field but cant hide it, it makes for ugly data grids.

    点赞 评论 复制链接分享
  • weixin_39726971 weixin_39726971 2020-12-31 05:56

    I forgot about this ticket. Anyways I have already done it with #605

    The actual property will be called Displayable and will control visibility of column in display mode only.

    点赞 评论 复制链接分享
  • weixin_39921023 weixin_39921023 2020-12-31 05:56

    Cool. Thank you!

    点赞 评论 复制链接分享
  • weixin_39726971 weixin_39726971 2020-12-31 05:56

    I think this can be closed. If you need more help please reopen. tnx

    点赞 评论 复制链接分享

相关推荐