Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
JqGrid - Edit / Add Dialog box sizes not setting
15/12/2010
04:48
Avatar
sone
Member
Members
Forum Posts: 4
Member Since:
14/12/2010
sp_UserOfflineSmall Offline

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

http://pastebin.com/WvFpVkft

  1. $javascript = "
  2.                
  3.                                 var lastSel = 0;
  4.                
  5.                                 jQuery('#$jqgrid').GridUnload()
  6.                                
  7.                         $("#$jqgrid").jqGrid({
  8.                             url:'$url/table/$table',
  9.                             datatype: 'json',
  10.                             mtype: 'POST',
  11.                             colNames:$colNames,
  12.                             colModel:$colModel,
  13.                             onSelectRow: function(id){
  14.                              //jQuery('#$jqgrid').editRow(id, true);
  15.                                 //console.log('selected'+id+' '+lastSel);
  16.                                       if(id && id==lastSel){
  17.                                                
  18.                                       }
  19.                                       lastSel=id;
  20.                             },
  21.                             ondblClickRow: function(id){       
  22.                                     jQuery('#$jqgrid').editGridRow(id, true);
  23.                                     lastSel=id;
  24.                         },
  25.                            
  26.                             pager: '$jqpager',
  27.                             rowNum:30,
  28.                             rowList:[10,20,30],
  29.                             sortname: '$tbl_cols[0]',
  30.                             sortorder: 'asc',
  31.                             viewrecords: true,
  32.                             caption: '$table',
  33.                             autowidth: true,
  34.                             height: '200px',
  35.                                 editurl: '/admin/ajax/jqgridupdate/table/$table',
  36.                                 altRows: true,
  37.                                 multiselect: true
  38. //                              ,
  39. //                              edit:{
  40. //                                      addCaption: 'Add Recordsss',
  41. //                                      editCaption: 'Edit Recordsss',
  42. //                                      bSubmit: 'Submit',
  43. //                                      bCancel: 'Cancel',
  44. //                                      bClose: 'Close',
  45. //                                      saveData: 'Data has been changed! Save changes?',
  46. //                                      bYes : 'Yes',
  47. //                                      bNo : 'No',
  48. //                                      bExit : 'Cancel',
  49. //                                      height: '700',
  50. //                                      width: '700'
  51. //                              }
  52. //                             
  53.                                
  54.                                
  55.                                
  56.                           }).navGrid('#$jqpager',{edit:false,add:true,del:false,search:false})
  57.                           .navButtonAdd('#$jqpager',{
  58.                                    caption:'Add',
  59.                                    buttonicon:'ui-icon-add',
  60.                                    onClickButton: function(){
  61.                                      //alert('Adding Row');
  62.                                      jQuery('#$jqgrid').editGridRow('new',{height:600,width:600,reloadAfterSubmit:false});
  63.                                      
  64.                                    },
  65.                                    position:'last'
  66.                                 })
  67.                                 .navButtonAdd('#$jqpager',{
  68.                                    caption:'Del',
  69.                                    buttonicon:'ui-icon-del',
  70.                                    onClickButton: function(){
  71.                                       //alert('Deleting Row');
  72.                                      
  73.                                       //console.log(jQuery('#$jqgrid').getGridParam('selarrrow'));
  74.                                      
  75.                                       var rows = jQuery('#$jqgrid').getGridParam('selarrrow');
  76.                                      
  77.                                       jQuery('#$jqgrid').delGridRow(rows);
  78.                                      
  79.                                    },
  80.                                    position:'last'
  81.                                 });
  82.                          
  83.        
  84.        
  85.        
  86.          //console.log('test');
  87.        ";
16/12/2010
16:30
Avatar
rmvenancio
Portugal
Member
Members
Forum Posts: 12
Member Since:
09/11/2010
sp_UserOfflineSmall Offline

But the values like this :

height: 700,

width: 700

Only remove the ( ' ) 

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information