sequence of toolbar buttons

Questionssequence of toolbar buttons
Peter Broekman asked 5 years ago

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

13 + 1 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 1

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?