Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export to CSV #16

Open
ghost opened this issue Nov 30, 2012 · 1 comment
Open

Export to CSV #16

ghost opened this issue Nov 30, 2012 · 1 comment
Labels

Comments

@ghost
Copy link

ghost commented Nov 30, 2012

How difficult would it be to add something that would make an ajax call with the search parameters to allow us to get the data that is currently displayed and export it to a CSV?

Basically offering a button on the grid itself that can gather any of the search criteria to allow us to make a call grab data and build a csv file available for download to the user.

So more or less just an ajax call that is akin to the SetUrl call that is tied to a button in the grid? Is there a way I can add something like this myself in JavaScript and grab the grid's search parameters.

@daanl
Copy link
Collaborator

daanl commented Nov 30, 2012

mbraunwart this is more a jqgrid question rather then the helper question.

But to get you started code below shows you how to add an button the grid, then you can just call getGridParam('postData') to get the post data in the object you will find the search parameters, using an ajax call or just location.href =

   jQuery("#grid").jqGrid('navButtonAdd','#pager',{
       caption:"", 
       onClickButton : function () { 

       } 
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant