First, I tried to find some method like “setVisible” but failed.
Next, I tried to set the style as:
<style type=“text/css”>
.cellDisabled{height:0px;}
</style>
It shows blank lines on the disabled rows which is not what I want.
The only way to hide a row is to actually remove it from the underlying dataset. An alternative presentation is to use styling options to render the row with strikethrough text or similar, and set the row disabled.
For some reason I don’t want to actually modify data in the dataset. Hiding the disabled rows is only for the user’s view. Later the user may want to show the hidden rows again by “enabling all rows”.
I have tried the styling way. It works, but you still can see some blank lines in the place of disabled rows (though the blank lines are very narrow).
0px is not achievable. If a thin line is an adequate solution, go for it, but again the other approach is that the rows are removed from the dataset. This doesn’t need to imply immediate persistence, because you can provide either an Array as grid.data, or connect it to a client-only DataSource.