Is there a way to change the sequence of toolbar buttons, e.g first clone then edit?
—————————————————————-
Answered by Abu:
Hi,
For #1, you can modify DOM in grid loadComplete event:
$opt[“loadComplete”] = “function(){
jQuery(‘#pg_list1_pager td[id$=del_list1]’).insertBefore(jQuery(‘#pg_list1_pager td[id$=add_list1]’)).first().remove();
}”;
$g->set_options($opt);
This will move delete button before add. list1 is grid id.
Regards,
— Abu Ghufran
PHP Grid Team
http://phpgrid.org
Your Answer