I put a button which delete a row in a database but in the same time and on the same click I would like to change the state too. Actually, When you click on the button the row is deleted and a panel appears. Is there a button property enable to do this ?
I'm not really getting what the problem is. When you assign a CLICK event listener to the button, then why don't you simply add the code that deletes the stuff you want and sets the state in the same method? Or, in case you are receiving a response from a server-side script or something, then add the code that changes the state into the response handler ( so you can react to the server message ).
With best regards,
You can have more than one task accomplished in a single event handler, so pick the event that makes sense based on the user or system activity, and then code your handler to do what you want it to do.