Skip to main content
1-Visitor
August 13, 2018
Question

Enabling and Disabling a button based on input and selected grid.

  • August 13, 2018
  • 1 reply
  • 1899 views

Hi,

 

Is it possible to disable a button when a grid row is selected?

i.e) I have three buttons and a grid, "Add" , "Modify" and "Delete". Initially only "Add" button should be enable (text from text box will be added to grid on click of add) and "Modify and Delete" button should be disable. Once a row is selected from grid, "Add" button should be disable and "Modify and Delete" button has to be enabled. 

 

Is it possible to attain this requirement? How can I make it possible?

Please provide some idea.

 

Thanks,

V Shalini.Screenshot.png

1 reply

22-Sapphire I
August 13, 2018

You should be able to use the Selected row and Selected row change of the DataSource to accomplish this behavior together with either a service or validation widget.

1-Visitor
August 13, 2018

Hi PaiChung,

 

Configuring the button to disable selected row will not work?

I have inserted an example image of what I did but it doesnt work.

It can only be done using JS or validation widget?

Screenshot.png