toArray

Returns the internal data collection

Returns

Array Returns plain JavaScript array which represents the internal data collection

Example

<script>
    var query = new kendo.data.Query([
        { name: "Jane Doe", age: 30 },
        { name: "John Doe", age: 33 },
        { name: "Bob Smith", age: 25 }
    ]);
    
    var dataArray = query.toArray();
    // the result can be seen in the browser console.
    console.log(dataArray);
</script>
In this article
toArray
Not finding the help you need?
Contact Support