How can I add a button to pagination at runtime?
If I use the following code the buttons on the pagination not changed (not view the new buttons).
It looks like the refresh not working for the buttons?
pager = $('#'+eDatagridSelector).edatagrid('getPager');
var btns= pager.pagination('options').buttons;
btns.push(newButtonArray);
$('#'+eDatagridSelector).edatagrid('getPager').pagination('refresh', {
buttons: btns
});