Pagination and jQuery UI button Icons

Pagination and jQuery UI button Icons

fusionpowerfusionpower Posts: 1Questions: 0Answers: 0
edited January 2011 in General
When I use pagination the buttons inside the table rows loose their icons and revert back to text only.
Is there a way to stop this?

[code]

//<![CDATA[
$(function() {
$('#tblCustomers').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"bStateSave": true,
"aoColumnDefs": [{ "bSortable": false, "aTargets": [3]}]
});
$('.btnEdit').button({icons: {primary: "ui-icon-pencil"}, text: false});
});
//]]>




Name
Email
Phone
Edit Details




Joe Bloggs
joe@email.com
12345
Edit Details



[/code]

Replies

  • rdgrrdgr Posts: 1Questions: 0Answers: 0
    I am facing the same problem. Tried several things but until now could succeed. Any ideas?
  • futurosoftfuturosoft Posts: 2Questions: 0Answers: 0
    I am facing same problem. Please help! Thanks
  • futurosoftfuturosoft Posts: 2Questions: 0Answers: 0
    Please, Can anyone help me? Thanks.
  • sparkysparky Posts: 1Questions: 0Answers: 0
    I do believe this should work, using the fnDrawCallBack option.

    [code]


    //<![CDATA[
    $(function() {
    $('#tblCustomers').dataTable({
    "bJQueryUI": true,
    "sPaginationType": "full_numbers",
    "bStateSave": true,
    "aoColumnDefs": [{ "bSortable": false, "aTargets": [3]}],
    "fnDrawCallback": function () { $( ".btnEdit" ).button(); }
    });
    $('.btnEdit').button({icons: {primary: "ui-icon-pencil"}, text: false});
    });
    //]]>




    Name
    Email
    Phone
    Edit Details




    Joe Bloggs
    joe@email.com
    12345
    Edit Details



    [/code]
This discussion has been closed.