title: How to serialize on all rows not on the filtered ones in Webix datatable
body: <p>I have webix datatable having 100 rows. Now, assume that when I apply a filter on a particular column, the datatable size reduces and renders 10 matched rows.</p>
  
  <p>I am using serialize() to take the whole table data to a JSON object like below:</p>
  
  <pre><code>var data = {};
  var $$mytab = $$('myDataTable');
  data = $$mytab.serialize();
  </code></pre>
  
  <p>Now, the problem is, when the entire table is filtered and showing only 10 rows out of total 100 rows, then the serialize() giving me only those 10 rows into the data object instead of 100.</p>
  
  <p>Is there a way, I can always serialize the entire datatable (i.e 100 rows in this case) irrespective of it is showing filtered data or the entire table ?</p>
  
  <p>After implementing your solution ... </p>
  
  <p>It is giving me the same array in both case when I print them in the browser console with a slight difference in the format.</p>
  
  <p>With your solution, it is giving below output on browser console :</p>
  
  <p>(2) [1497258960089, 1497258960162]</p>
  
  <p>and with mine , as below with values in detail, I can view them if I expand (>) the output   :</p>
  
  <p>(2) > [Object, Object] </p>
  
  <p>Earlier when I was using serialize, then the entire structure (with their values) were getting saved into the array. So that later on I can iterate a loop on it and match using 'in' operator to delete a value.</p>
  
  <p>Please consider following code:</p>
  
  <pre><code>mydata = {};
  
  mydata.employee = $$mytab.serialize();
  
  console.log(JSON.stringify(mydata.employee);
  
  for (var i = 0; i &lt; mydata["employee"].length; i++) {
      if("salary" in mydata["employee"][i]) {
          delete mydata["employee"][i]["salary"];
      }
  }
  </code></pre>
  
  <p>In the above code I get following output when I do console.log on mydata.employee :</p>
  
  <pre><code>[{"name":"mark", "company":"abcd", "salary":"100"},{"name":"smith", "company":"pqrs", "salary":"200"}]
  </code></pre>
  
  <p>However if I use below code as you suggested:</p>
  
  <pre><code>mydata = {};
  mydata.employee = [];
  
  $$mytab.eachRow(function(item){mydata.employee.push(item);}, true);
  
  console.log(JSON.stringify(mydata.employee); 
  
  /* Consider the same forloop in this case as above */
  </code></pre>
  
  <p>This one is just giving me :
  [1497258960089,1497258960162] </p>
  
  <p>and throws an error as :</p>
  
  <blockquote>
    <p>Uncaught TypeError: Cannot use 'in' operator to search for 'salary' in 1497258960089</p>
  </blockquote>
  
  <p>How can I achieve the same thing in your case as well?</p>