Hide button on modal form
Hide button on modal form

Hi
I need to show the edit button on the datatable page so users can select a row and click the edit button (I changed the caption to 'View') to view its details but then hide any update button on the modal form. How can I achieve this? Thanks.
This discussion has been closed.
Replies
Hi @dynasoft ,
Is this using Editor? If so, take a look at the examples on that page, like this one, very easily done.
Cheers,
Colin
Yes using Editor. Sorry but I can't see what properties to set so the Update button does not show on the modal form.
Hi dynasoft,
Just to add to what colin has said, I've put together a small example here - http://live.datatables.net/nuvihosi/16/edit
You'll see that I have set the
formButtons
property to be an empty array so that no buttons will appear on the form. TheformTitle
property should be set to whatever text you want as your form title and finally set thetext
property to whatever you want the text on the button to be.Hope this helps,
Sandy
Thanks a lot. That worked.