Closed somunath closed 5 years ago
First of all... this is the wrong repository for your question, the right repository is this one: https://github.com/wenzhixin/bootstrap-table @wenzhixin Please move it.
Also please format your using Markdown (Code block).
The next step is to use the newest version of the bootstrap table, you are using 1.11. but the newest version is the 1.14.2! So please update an test it again.
OK, sorry about that, first time in GitHub. Now i have updated the with proper formating
Transferred this issue, @somunath please test it in the latest version. In our example: https://examples.bootstrap-table.com/#extensions/export.html, it works well.
I think in your example, you need to handle $_GET['offset']
and $_GET['limit']
because when using all
export type, the request params don't contain the offset
and limit
, and return all records.
Could You Please tell me which are the js and css files i need to update
All js and css files your currently using from the bootstrap-table :-)
OK.. thanks. Let me try first. will respond back. And Thank you both so much for your help.
You need to return all data without offset
and limit
params, for example, https://examples.wenzhixin.net.cn/examples/bootstrap_table/data.
Under such case my above php code isn't going to work right?
The data-url always sends offset and limit to the server script. How do i prevent it from sending offset and limit in case export event is clicked or is there a way to send addition parameter when export is clicked.
Could you plz tell me how to send an additional parameter to data-url if export is invoked?
I guess you can use the queryParams option.
Btw. we have a documentation (the link above can be found easily by searching in the documentation).
Could you please provide me a sample code on how to send an additional parameter when and only when the excel or csv export is invoked
There is a sample code on the documentation, just click on the </>
on the example page.
I don think its currently possible to send it only if th export event is invoked.
But there should no problem to send it on every event, just ignore it on the server side.
Hello, I want to try this example given here https://examples.bootstrap-table.com/#issues/3830.html#view-source. I can't get it to work. Please tell me what are the additional js and css files in need.
as of now i have tried as bellow: `<!doctype html>
ID | Item Name | Item Price |
---|
You can see the required js/css files in the example. If you need help please provide us an example(jsfiddle!) of your not working test instead or pasting your code without any formatting.
Thanks guys for your help. By the way i have solved the problem. Now its working fine. I have integrated it in laravel. Thank you again.
Your welcome!
The bootstrap-table library is awesome. The author's work is highly appreciated
I have using bootstrap-table.js version 1.11.1. Everything is working fine except the export parts. It only exports the visible rows in the page but it doesn't exports "all" and "selected" as well.
Below is my php server side code:
And here is the html table part:
And in the bootstrap-table.js file i have set the line 311 to server as
Please, help me solve the problem. I just need the export part to work well as per my need.