Thanks Tony, i just wanted to be sure that i did not misunderstand you 😉
Hello Tony,
it definitely seems to be a speed issue.
I use
jqGrid 3.3.1 – jQuery Grid, Date: 2008-11-01 rev 67
with
FireFox 3.0.4
and have many things to load during startup, in sum 2 MB.
When i initialize the grid with
var self = this;
setTimeout(self.initGrid, 1000);
where initGrid is the function that really initializes my grid, it works, the caption and navbar appear.
As you mentioned on 2008-09-23 that it is part of a beta version, should that bug be fixed with 3.3.1 or not?
best regards, Christoph
Thanks Tony, that works perfectly well.
Best Regards, Christoph
Hello Tony,
your solution
$(â€#pDataâ€,formid).css(â€displayâ€,â€noneâ€);
does not work at all.
Even my solution
$(â€#pData, #nDataâ€).hide(â€fastâ€);
does only work every other time. If i call editGridRow(…) a second time, the buttons appear, the next time they don’t and so on.
zuperts’ solution
jQuery(â€img#pDataâ€).css(â€visibilityâ€, “hiddenâ€);
does work for my website as i just want to hide all previous and next buttons in the EditForm div.
regards, christoph
thanks tony, but that wasn’t it at last.
I have to add the speed with the .hide() method and even leave the formid
like this:
$(â€#pData, #nDataâ€).hide(â€fastâ€);
i’m working with jquery 1.2.6, don’t know if that makes the difference…
problem: the buttons pData and nData will not hide like i want them to.
sorry to bother, but i can’t get it to work. the buttons still appear.
this is my source for the pager where i have defined an additional button that calls the .editGridRow method:
// pager of fifth grid
$(â€#EditTableTableâ€).navGrid(â€#EditTablePagerâ€,{
refresh: true, edit: false, add: false, del: false, search: true
}).navButtonAdd(’#EditTablePager’,{
caption:—, buttonimg:â€images/edit.gifâ€, onClickButton: function(){
var rowID = $(â€#EditTableTableâ€).getGridParam(’selrow’);
if( rowID != null ) { $(â€#EditTableTableâ€).editGridRow(rowID,{
top:260,left:20,height:267,width:310,
reloadAfterSubmit:true,
editCaption:â€Grant Additional Pincode Registrationsâ€,
closeAfterEdit:true,
beforeShowForm: function(formid){
$(â€#pData #nDataâ€, formid).hide();
}
});
}
else alert(â€Please select a row…â€);
},
position:â€lastâ€
});
could you please have a look at it?
Thanks, Christoph
Hello Tony,
i have integrated jqGrid with success, but am having the same problem, but are too new to jquery and jqGrid. Is “beforeShowForm” an Event or a method of jqGrid or of jquery or what else?
Best Regards,
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top