Add Buttons to Single Record in Grid

Servoy TiNG 2022.09

Our UI/UX designer is asking whether or not it is possible to add buttons to a single record in the grid while the remaining records do not have the buttons. We do not yet have sufficient experience with the grid and were hoping someone else might have explored this type of design. An example screen is attached. Thanks!

[attachment=0]grid_single_record_buttons.png[/attachment]

Hi, you should be able to do this with a rowStyleClassDataprovider.

Add a CSS class, like ‘save_and_cancel_button’ to your button columns
Create a calculation in your table that returns a CSS tag, like ‘hide_save_and_cancel_button’ for all the records where you don’t the buttons to show.
Then add something like

.hide_save_and_cancel_button .save_and_cancel_button { visible: false }

to your css.

I haven’t tested this, so you may need to adjust the above, but at least you have a starting point…

Hi, Christian.

I hope you are doing well! Thanks for the starting point. We will experiment with rowStyleClassDataprovider to see what happens.