How to get all data from easyui datagrid

I tried using getDatafor example.

data = $("#dg").datagrid("getData");`
var total = data.total; (total is 100)`
var rows = data.rows; (rows.length is 25)`

This can cause the total to be correct, for example, 100records, but the rows are returned only to get the rows of the current row, such as rows 25. I need to get all the 100rows.

Is there something I missed? Or how can we do this? Please help me.

+4
source share

All Articles