Hi! Sorry, I was away for the last month. As far as I can tell, you can use the FilterTemplate property to show any UI you wish. The default component for string columns is the <bp:StringFilterEditor, so you can probably use that.
If you have this on many places and would like to de-duplicate the code, I’d suggest creating a custom GridViewColumn. You can probably actually inherit the GridViewTextColumn, but override the BuildCell method to instantiate a template instead of the TextBox
Thank you for the response. I hope you enjoyed your time away.
Can you provide an example of how to use the bp:StringFilterEditor? (Except in my example, I think it would probably be the bp:BooleanFilterEditor since I am working with a boolean value.)
I tried a few different ways and all of them end with the following message:
DotVVM.Framework.Controls.DotvvmControlException: The Filter property or the FilterGroup property must be set!
Sorry, I also didn’t get this to work and I don’t know what would be the best way to filter a templated column.
You can maybe try to work around this by writing a custom implementation of GridViewColumns, probably just a slightly modified GridViewTextColumns or GridViewCheckBoxColumn