datatables + lengthMenu + All + serverside processing + not working
<p><a href="https://jsfiddle.net/5gpLcfkr/" rel="nofollow">This</a> is a basic datatables fiddle. 
This is the <a href="https://datatables.net/reference/option/lengthMenu" rel="nofollow">default</a> and the dropdowns will show the follwoing <code>Show options 10, 25, 50, 75 and 100 records:</code>
<br><br>
Now what I would like to get working is the <code>"lengthMenu": [ [10, 25, 50, -1], [10, 25, 50, "All"] ]</code> which I can in <a href="https://jsfiddle.net/5gpLcfkr/1/" rel="nofollow">this fiddle</a>. But what if I use server side processing, this is where the <code>All</code> option does not work for me. The others do. When I select <code>All</code> it  dispalys the data that it was showing and the at the bottom says <code>No data found in the server</code>  </p>

<p>As far as i Know the only difference is the data comes from the server. Can anyone advise how i can trouble shoot this? As far as I can tell when I select <code>All</code> I am sending <code>length:-1</code> and for <code>10</code> it is <code>length:10</code> so not sure why <code>All</code> is not working </p>

<pre><code>        $(document).ready(function() {
            var dataTable = $('#employee-grid').DataTable( {
                "lengthMenu" : [[ 10, 25, 50, -1 ],[ '10', '25', '50', 'All' ]],
                //"pageLength": 25,
                "processing": true,
                "serverSide": true,
                "ajax":{
                    url :"employee-grid-data.php", // json datasource
                    type: "post",  // method  , by default get
                    error: function(){  // error handling
                        $(".employee-grid-error").html("");
                        $("#employee-grid").append('&lt;tbody class="employee-grid-error"&gt;&lt;tr&gt;&lt;th colspan="3"&gt;No data found in the server&lt;/th&gt;&lt;/tr&gt;&lt;/tbody&gt;');
                        $("#employee-grid_processing").css("display","none");

                    }
                }                   
            } );
        } );
</code></pre>

<p><br></p>