How to disable buttons in Data Grid if we have not selected any row?

0
How to disable buttons in Data Grid if we have not selected any row?
asked
4 answers
3

Hi Rohit,

 

You can have another dataview above your datagrid and setting the dataview’s datasource as listen to widget for this grid. So that based on your row selection in the buttons will be enable/disable.

Or to show the buttons only when the row selected then you can add a visibility to your button ‘$currentObject != empty’

 

Hope this helps!

answered
1

Hi,

 

You can achieve this by adding a dataview with listen to widget as datasource and place the buttons inside.

 

Thanks

answered
0

Hi, 

You can disable the button by using Data view and 'disabled' pre defined Function. 

 

answered
0

Hi Rohit Tiple.

 

Whenever you are selecting any row from data grid, that time .selected class is getting append on UI level.

 

You can use this class for visibility of buttons.

 

answered