Closed saezels closed 2 years ago
I found a workaround how it works:
[...] ->addColumn('AvailableStock', function(Product $product){ return intval($product->AvailableStock); }) [...]
Is there a possibility to get it as an Integer directly? In the database its int too
Hi, I believe this is the best solution. π
I tired the solution provided by @saezels , but not working. Even ID field shows as text in excel. I am using livewire-powergrid: "4.9.8"
PowerGrid Bug Report
Thank you for reporting a bug and helping us to improve PowerGrid!
Guidelines
π
We use GitHub Issues exclusively for tracking bugs and unexpected software behavior.π
Please use the Discussions tab for questions like "How to...", "how can I..." .βοΈ
Give this report a short but meaningful title. Make it easy to spot for others who might be facing the same issue.β οΈ
Issues that do not describe a bug or do not follow the template will be closed.Information
Pre-steps
Have you searched through other issues to see if your problem is already reported or has been fixed?
Did you read the documentation?
Have you tried to publish the views?
You can publish the views to make sure there is no "old code" trapped in views which are not up-to-date.
To publish, run:
php artisan vendor:publish --tag=livewire-powergrid-views
Is there an error in the console?
Software Version
You can run
composer show -i
andnpm list
to list installed package with their versions.Theme
Describe the bug
When Using Export, every Numeric Column is formatted as Text in Excel besides the Id
What happened?
Every Cell is formatted as Text and has to be converted to Numbers in Excel.
To Reproduce...
Klick "Export Excel"
Suggestions
(Do you have any idea how we can fix it?)
Extra information
Screenshots
Code snippet