I created a custom button to export to CSV inside JQGrid, here is some code
content.AppendFormat(@"pager: $(""#{2}"") {1}).navGrid(""#{2}"", {0} edit: false, add: false, del: false {1})
.navButtonAdd(""#{2}"",
{0} caption:""Export to CSV file "",
position:""first"",
buttonicon:""none"",
onClickButton: function () {0}
alert('Made it to Export to CSV ...');
{1}
{1});
{3}.filterToolbar();
{1});
</script>", "{", "}", pagerID, tableID);
return content.ToString().ToControl("div");
The problem is that I need all the data, not just the page displayed in ui, so I want to use the built-in search functionality with all the parameters associated with it, but I also want to add '& oper = csv', I just don't know how to do it. Should I do it with a custom button or something else.
source
share