Skip to content
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
@arivu1995

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..

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions