JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Data Grid › Grid template as button › Reply To: Grid template as button
I restart that thread after a while.
I wan’t able to prepare a testcase because I didn’t understand where the problem could be.
Now I get back to the problem and I understand where the problem could be.
I’ve 2 fields which are represented by a button (each one) : I did it with a template as suggested.
Each button takes 3% of the screen.
In that situation clicking on the button :
. grid rows shrink
. some rows are overlapped
. the selection checkboxes disappear on all rows.
I noticed that, with theese buttons, the grid appears quite higher than without them,
I enlarged button to 25% and the problem disappeared.
I reduced the field value to a single character and again the problem disappeared.
It seem as before representing the button it calculates the hight value of the text which, in a small space the value is divided into several lines, and takes more height space then the button is represented in that augmented space.
When I click a button or another normal cell it shrinks with the effects I described.
Is it a bug ? Is there a workaround ?
Tks
-
This reply was modified 1 month, 1 week ago by
tbettinazzi@axioma.it.