Add and Edit Options

Talk about implementing of customized templates

Moderators: ne_moj, zewa

GNYkhogan
Junior
Junior
Posts: 16
Joined: Mar 22nd, '12, 14:39

Add and Edit Options

Postby GNYkhogan » May 27th, '14, 18:05

Is there a way to move the add and edit options from the bottom of the form to the top?
Attachments
editoptions.jpg
add edit options move explained
editoptions.jpg (85.5 KiB) Viewed 1000 times

administrator
Site Admin
Site Admin
Posts: 5937
Joined: Jan 7th, '09, 23:18
Contact:

Re: Add and Edit Options

Postby administrator » May 28th, '14, 05:34

Define
$dgrid->drawTopButtons = true;

Does it help?

GNYkhogan
Junior
Junior
Posts: 16
Joined: Mar 22nd, '12, 14:39

Re: Add and Edit Options

Postby GNYkhogan » May 28th, '14, 12:41

when I add $mkdgrid->drawTopButtons = true; to the code that builds the grid, the grid does not get rendered and no error messages are produced. I look fro drawTopButtons in datagrid.class.php and changed it's default value to true and commented out my code and the grid was rendered but the buttons were still on the bottom.

Any thoughts?

administrator
Site Admin
Site Admin
Posts: 5937
Joined: Jan 7th, '09, 23:18
Contact:

Re: Add and Edit Options

Postby administrator » May 29th, '14, 10:12

Change $this->drawTopButtons = false; directly in datagrid code.
This feature works only if you have more that 10 rows.


Return to “Add/Edit/View Mode Templates Implementing”