This repository has been archived by the owner on Jun 12, 2024. It is now read-only.
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.
How to show continuous serial number in naygest grid #466
Open
Description
my current code
` $grid4 = new Grid(
(new GridConfig)
->setDataProvider(
new EloquentDataProvider($query)
)
->setName('work_grid')
->setPageSize(10)
->setColumns([
(new FieldConfig)
->setName('id')
->setLabel('S.No.')
->setSortable(true)
->setCallback(function ($val, ObjectDataRow $dr) {
static $val = 0;
return ++$val;
})
->setSortable(true)
->addFilter(
(new FilterConfig)
->setOperator(FilterConfig::OPERATOR_LIKE)
)
, `
Thanks in advance..
Metadata
Metadata
Assignees
Labels
No labels
Activity