tudor-malene/Easygrid

Custom datasource not paging

namnt90 opened this issue · 0 comments

hi all !

i try custom datasource .

dataSourceType 'custom'
        dataProvider { gridConfig, filters, listParams ->
            println listParams
            String query = "SELECT id,actor,class_name,date_created,event_name,new_value,old_value,persisted_object_id,property_name FROM audit_log"
            def sql = new Sql(dataSource)
            temp = sql.rows(query)

        }
        dataCount { filters ->
            temp.size()
        }
        columns {
            id {
                label 'id'
            }
            actor {
                label 'actor'
            }
            class_name {
                label 'class_name'
            }
            date_created {
                label 'date_created'

            }

        }

Display result
resukt

How it help ?

//sorry my bad english