Adding button below child table

I am able to add a button directly below the child table via:

    frm.fields_dict["items"].grid.add_custom_button(__('Download CSV'), 
			function() {
				 downloadCSV();
        });

The button is actually added on the very left of the row.

As this functionality is only used sometimes, I would like to have it on the right side.
Like this:

Any ideas or hints how to achieve that?

2 Likes

Hi @moe01325,

Please apply it.

frm.fields_dict["items"].grid.add_custom_button(__('Download CSV'), 
			function() {
				 downloadCSV();
        }).css({'position':'absolute', 'margin-left': 735});

Reload and check it.

Thanks.

3 Likes

thanks a lot!