For All in drop down

For All in drop down

Usha_kasi123Usha_kasi123 Posts: 4Questions: 0Answers: 0

Hi ,
when i select all option in drop down i did not get all the record only i am getting 5 record.
i had written the code below like.
oTable = $("#example")
.dataTable(
{
"bJQueryUI" : true,
"sPaginationType" : "full_numbers",
"bProcessing" : true,
"bServerSide" : true,
"aaSorting" : [ [ 1, "desc" ] ],
"aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],
"iDisplayStart": 0,
"iDisplayLength": 10,

                                        "bFilter" : false,
                                        "sAjaxSource" : "../../../EguardController?perform=viewDynamicPANWatchList",

                                        "fnRowCallback" : function(nRow,
                                                aData, iDisplayIndex) {
                                            if (jQuery.inArray(aData[0],
                                                    gaiSelected) != -1) {
                                                $(nRow).addClass(
                                                        'row_selected');
                                            }
                                            return nRow;
                                        },
                                        "aoColumns" : [ null, //pAN
                                        null, //Status  
                                        null, //Edit
                                        null, //Delete
                                        /* "data": "images/pencil.png",
                                        "render": function(data, type, row) {
                                            return '<img src="'+data+'" border="0"  width="16" height="16" alt="Edit"/>';
                                        } */

                                        ]
                                    });

please help me...

Replies

  • allanallan Posts: 64,032Questions: 1Answers: 10,555 Site admin

    Pre the forum rules, please link to a test case showing the issue.

    Have you configured your server-side script to accept -1 as the display length? It will need some special handling to not apply a LIMIT.

    Allan

  • Usha_kasi123Usha_kasi123 Posts: 4Questions: 0Answers: 0

    Hi allan,
    I did not configured your server-side script to accept -1.So,
    can you give me idea to configure server-side script to accept -1 to display all the records

  • allanallan Posts: 64,032Questions: 1Answers: 10,555 Site admin

    Yes, just check for the length parameter being submitted as -1. if so, then don't apply a LIMIT or OFFSET :-). Given that I can't see your server-side code, I can't say any more than that.

    Allan

This discussion has been closed.