Default Reset button on Data grid 2 Add-on widget - Mendix Forum

Default Reset button on Data grid 2 Add-on widget

24

It would be nice, if default Reset button is there on Data grid2 widget, right now search operation is happening as auto.

 

 

asked
6 answers

Hey Rick, you can assign the search type for yourself via these steps below;

end result:


wrap your datagrid2 with the accessibility helper and target all your filter inputs :



additional you need some extra CSS in your project and you are done:
 

input[type="search"] {
  -webkit-appearance: searchfield;
}

input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: searchfield-cancel-button;
}

 

Created

also assign the input type: search instead of text

 

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/search

then the browser should automatically add a reset button to the input, for quick line resets. it’s just a simple html5 property

Created

Agree w/ Casper. Seems small, but our customers are used to/will expect it.

Created

Seems very small, but is very much needed.

Created

We need this.

Created

Please, implement this.

Created