Forum
November 2nd, 2014
A
A
A
Topic RSS
Offline
The forums are currently locked and only available for read only access


JqGrid - Edit / Add Dialog box sizes not setting
15/12/2010
04:48
04:48

sone
Member
Members
Forum Posts: 4
Member Since:
14/12/2010
14/12/2010

Hi All, I am setting up my jqGrid dynamically with my server side scripting generating the javascrpt. My problem is I do not know where to correctly apply the height and width attributes for my pop up dialogs. I have loooked at examples and tried to apply them where I think is the correct places but still no change.
Any help please
-
$javascript = "
-
-
var lastSel = 0;
-
-
jQuery('#$jqgrid').GridUnload()
-
-
$("#$jqgrid").jqGrid({
-
url:'$url/table/$table',
-
datatype: 'json',
-
mtype: 'POST',
-
colNames:$colNames,
-
colModel:$colModel,
-
onSelectRow: function(id){
-
//jQuery('#$jqgrid').editRow(id, true);
-
//console.log('selected'+id+' '+lastSel);
-
if(id && id==lastSel){
-
-
}
-
lastSel=id;
-
},
-
ondblClickRow: function(id){
-
jQuery('#$jqgrid').editGridRow(id, true);
-
lastSel=id;
-
},
-
-
pager: '$jqpager',
-
rowNum:30,
-
rowList:[10,20,30],
-
sortname: '$tbl_cols[0]',
-
sortorder: 'asc',
-
viewrecords: true,
-
caption: '$table',
-
autowidth: true,
-
height: '200px',
-
editurl: '/admin/ajax/jqgridupdate/table/$table',
-
altRows: true,
-
multiselect: true
-
// ,
-
// edit:{
-
// addCaption: 'Add Recordsss',
-
// editCaption: 'Edit Recordsss',
-
// bSubmit: 'Submit',
-
// bCancel: 'Cancel',
-
// bClose: 'Close',
-
// saveData: 'Data has been changed! Save changes?',
-
// bYes : 'Yes',
-
// bNo : 'No',
-
// bExit : 'Cancel',
-
// height: '700',
-
// width: '700'
-
// }
-
//
-
-
-
-
}).navGrid('#$jqpager',{edit:false,add:true,del:false,search:false})
-
.navButtonAdd('#$jqpager',{
-
caption:'Add',
-
buttonicon:'ui-icon-add',
-
onClickButton: function(){
-
//alert('Adding Row');
-
jQuery('#$jqgrid').editGridRow('new',{height:600,width:600,reloadAfterSubmit:false});
-
-
},
-
position:'last'
-
})
-
.navButtonAdd('#$jqpager',{
-
caption:'Del',
-
buttonicon:'ui-icon-del',
-
onClickButton: function(){
-
//alert('Deleting Row');
-
-
//console.log(jQuery('#$jqgrid').getGridParam('selarrrow'));
-
-
var rows = jQuery('#$jqgrid').getGridParam('selarrrow');
-
-
jQuery('#$jqgrid').delGridRow(rows);
-
-
},
-
position:'last'
-
});
-
-
-
-
-
//console.log('test');
-
";
Forum Timezone: Europe/Sofia
Most Users Ever Online: 715
Currently Online:
39 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