cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

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

svisveswaraiya
17-Peridot

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

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

2 REPLIES 2

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.

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

Top Tags