livewire-powergrid
livewire-powergrid copied to clipboard
Livewire Powergrid : field values misplaced after search
"livewire/livewire": "^2.5", "power-components/livewire-powergrid": "^2.2", "laravel/framework": "^9.0",
those are the versions we are using.
Have you tried upgrading powergrid to latest release?
yes tried! no luck
@punna1138
-
what is the version of powergrid you now have?
-
could you share more code about how you generate the table and what is the data structure of the table?
-> powergrid version is 2.4.6
public function datasource(): ?Builder { return $query = Question::query()->with('type', 'questionCategory')->latest(); }
public function addColumns(): ?PowerGridEloquent { return PowerGrid::eloquent() ->addColumn('id') ->addColumn('question_name', function (Question $model) { return Str::words($model->question_name, 7); }) //->addColumn('question_name') ->addColumn('question_type', function (Question $model) { return $model->type->name; }) ->addColumn('question_category', function (Question $model) { return $model->questionCategory->category_name; }) ->addColumn('created_at_formatted', function (Question $model) { return Carbon::parse($model->created_at)->format('d/m/Y'); }); }
Latest release is on version 3.x. Please see upgrade guide https://livewire-powergrid.com/#/get-started/upgrade-guide to upgrade.
@punna1138 , Can you update to the latest version and test it?
closed due to inactivity
working fine with latest updates.