I dont see any examples that i can get to work. if i use excel:true no export icon shows up. Many others have reported the same issue and I dont see what the answer is to that problem.So i have no way to export the data. I have all the excel options set to what you have.
I tried using something like this with my own customer button
jQuery(“#acct_list”).jqGrid(‘navButtonAdd’,’#pager’,{
caption:”Export To Excel”,
onClickButton : function () {
var e = document.getElementById(“load_template”);
var the_template = e.options[e.selectedIndex].value;
jQuery(“#acct_list”).jqGrid(‘excelExport’,{“url”:”getEBKFSdata.php?&the_template=”+the_template});
});
}
});
this shows up and i can click it and call the php but nothing comes back the download and i am not clear how to format it in the php page that gets the data. i dont see any examples of something like this.
I guess this explains my confusion.. I dont know what you mean when you say post it in the JS vs PHP forum? my page is all php? I will rephrase the issue
but nothing happens when the data is returned. I dont see a demo of using these options only the excel:true option and when that is used nothing happens at all that i can see.
so i looked at the example and i figured out why mine was failing. i had an empty array for the add function that was false, that was making the attributes point to the wrong pieces of code.. so i resolved that now.
My issue is still that i want to delete the row after the edit. how do i call a something to remove the row from the grid without reloading from the server? or for example after the edit is done i wanted an alert message to tell them the record was updated? where would that code go?
also in this example i see excel:true but it is not showing the icon for the excel download? i have that same issue. does the icon not show up when the data is local?
I think am confusing it a bit. I am working on 2 things at once with no luck. I thought that the arrays were in order so that closeAfterEdit: true, editCaption:”Update Row”, bSubmit:”Update” were all being done then the add options, then the edit options, then the delete option arrays all kicked in?? the page reloads on the delete but not after the edit. and the excel part never shows on the screen at all.
jQuery(“#acct_list”).jqGrid(‘navGrid’,’#pager’,
{
add:false, edit:true, del:true, excel:true, edittext: ‘Edit’
},
{
closeAfterEdit: true, editCaption:”Update Row”, bSubmit:”Update”
},
//{}, // add options
{closeOnEscape:true,jqModal:true,bottominfo:”Fields marked with (*) are required”,
reloadAfterSubmit:false,
closeAfterEdit:true,
//afterSubmit:actionAfterSubmit
},// edit options
{reloadAfterSubmit:false} // del options
);
reloadAfterSubmit:false, is set to false and it did not work. In this case I was trying to reload the grid because I could not figure out a way to actually run a delete row function call after the grid was updated.
I have a grid that loads as a result of a large query. the result is a set of data that the user will then edit and as a result of that edit it should be removed from the grid. So for example of there were 10 rows I want the user to see 9 after the edit. Since the query is long running it would be better if i just removed the row but since I cant get any function calls to run after the edit i was being forced to reload the grid but that does not work either. I tried putting alerts in various spots and none of them fire so it seemed they dont get called.
thanks. so this changes it to sort as things are entered in the input field? but does that mean the sort is still being done in SQL and not on the local data?
Still looking to get this answered? i do not see any bootstrap things happening in this demo
yes that one.. i dont see the columns resize in anyway when the page is resized which is normally what i would expect a bootstrap grid to do?
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top