This topic is locked

Disable In Grid Button

4/30/2013 4:12:02 AM
PHPRunner General questions
P
prattster1874 author

Hi folks,
I am wondering if it is possible to disable a button placed in the list grid depending on the state of the record.
I have a button displaying for each record on the grid that when pressed changes a flag on the record to "Authorised", however if the record is already authorised I would like the button disabled.
Any ideas?!

C
cgphp 4/30/2013

You can return false in the "Client before tab" if the value of the field is already "Authorised" or you can (better) make a control on the server and do nothing if the value is "Authorised".