Sorting a Grid #220
Closed
rossaddison
started this conversation in
Show and tell
Replies: 4 comments 5 replies
|
$sort = Sort::only([
'status_id',
'phone_id',
'sales_manager_id',
'creation_date',
'modified_date',
])->withOrder(['creation_date' => 'desc']);
$dataReader = $dataReader->withSort($sort); |
0 replies
0 replies
|
Currently, header format is If avaliable sort by column, then To generate URL grid view use url creator that you can set via method Also you can set options:
|
0 replies
|
Ok thanks Vjik. I have moved the Additional code: InvController.php Additional code: inv/index Full code: |
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment




Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Code:
How can the above code be improved?


Weakness: It only allows for one sorting column namely the 'id'. I want to move the
buttons into their own header and ideally there should be some configuration file/array that I can adjust.
All reactions