Forum
Topic RSS
11:33
03/02/2010
OfflineHello,
I have install a subgrid in a jqgrid.
In some rows (of the Grid) I don't want to show Add/Edit/Delete button in the subgrid but in others I will like them shown.
Taking the demo data into consideration, how can I code it such that for those with Total >=500 (in the grid), the Add/Edit/Delete buttons are shown in the subgrid while those with Total <500 (in the grid), the Add/Edit/Delete buttons are not shown in the subgrid?
Thanks
12:05
Moderators
30/10/2007
OfflineHello,
This can be achieved easy if yo have already the total
.....
var enableedit;
if(total>500)
enableedit = true;
else
enableedit = false;
...navGrid('pager',{edit:enableedit...});
Hope you got the point
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: 994
Currently Online:
24 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
Log In
Home