function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vaibhav Shete 1Vaibhav Shete 1 

how to make edit and delete button in vf page with its logic in controller

Marcin Trofiniak 9Marcin Trofiniak 9

Well button works in a way that it triggers what you provide it with in onclick parameter so :

                <apex:commandButton value="Delete" onclick="{!sideSetter}"/>

Will trigger function sideSetter if it will be present in controller. So just create button like I did provided you and write proper function in controller.