Is it possible to remove Remove Save/Cancel icon from Grid-Edit?I want to create my own submit bootstrap button to submit the form and remove the default Save/Cancel icon from Grid-Edit.
You may use ListOptions_Rendered server event to customize $this->ListOptions[“edit”]->Body which contains HTML for the buttons.
I don’t think $this->ListOptions[“edit”]->Body will remove Save and Cancel button at upper and/or lower panel of Grid-Edit mode. That code will remove the Edit button on each record in List Page.You should not remove the Save/Cancel buttons. If you want to change the caption/style of the buttons, you should use Startup Script to modify it.
For Grid-Edit, you may try $this->OtherOptions[“action”][“gridsave”] and $this->OtherOptions[“action”][“gridcancel”].
I’m not sure how to use this?
$this->OtherOptions["action"]["gridsave"] = ""
$this->OtherOptions["action"]["gridcancel"] = ""
This will remove the save/cancel?
If you want to obviously remove the Save and Cancel button on Grid-Edit mode, then simply put this following code in Page_Render server event of List Page:
if ($this->isGridEdit()) { // don't forget this
$this->OtherOptions["action"]["gridsave"]->Body = "";
$this->OtherOptions["action"]["gridcancel"]->Body = "";
}