Skip to Content
Technical Articles
Author's profile photo Markus Maßfelder

Set filter to read-only

I came across an issue when customizing the filter options for an OWL and I want to share my findings with you.

I added an input field and set the property to “readOnly = true”. So the input field was greyed out, but I could still press the filter button and adjust the filter options.

Filter%20text%20greyed%20out

Filter text greyed out

Filter%20option%20still%20available

Filter option still available

In my opinion this behaviour doesn’t make any sense, as I don’t need filter options for a read-only input field. So I was looking for a possibility to set the filter button to read-only as well and I found a property to show or hide the filter button.

Adjust%20property%20ShowSelectOption

Adjust property ShowSelectOption

By default the property ShowSelectOption is set to true. After setting the property to false the filter button is hidden.

Filter%20button%20hidden

Filter button hidden

I know this is a very rare use case but I hope this article can help someone with the same issue.

Please feel free to leave some feedback.

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.