Forum


04:53

Moderators
30/10/2007

beforeShowForm : function(formid){
// condition here
$("#pData, #nData",formid).hide();
}
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
02:55

Moderators
30/10/2007

beforeShow is event which you can defene it either in
editRow or in navGrid (which call editRow).
Please refer to docs.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
06:55

08/09/2008

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
10:12

Moderators
30/10/2007

$(”#pData, #nData”, formid).hide();
You missed a comma bettwen the ids
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
13:58

Moderators
30/10/2007

Hello,
So I do not understand - does this work or no.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
03:01

Moderators
30/10/2007

Hello,
This will hide all your forms when you have more than one grid.
Now I will check this. By the way could you please test with
this
beforeShowForm : function(formid){
$(”#pData",formid).css("display","none");
$(”#nData",formid).css("display","none");
}
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
10:04

08/09/2008

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
10:39

Moderators
30/10/2007

Hello,
Actually this is a bug.
the problem is in this condition:
if(rowid=="_empty") $("#pData, #nData","#"+frmtb).hide(); else $("#pData, #nData","#"+frmtb).show();
Which is called after beforeShowForm and afterShowForm events.
The simple solution is to move this condition before these events, on both places where the form is constructed and after when it is shown.
Thank you all for this.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
74 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66