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
ADD, EDIT, DEL... Buttons not appear, please help
13/01/2011
05:44
Avatar
keath
New Member
Members
Forum Posts: 1
Member Since:
13/01/2011
sp_UserOfflineSmall Offline

Hallo,

i´m not able to get the ADD, EDIT, DEL Buttons to appear.

this is the code i have got right now:

$("#google-tracker-grid-urls").jqGrid( {
            url : 'user.controller.php',
            //data : mydata,
            datatype : "JSON",
         mtype : 'POST',
         imgpath:'/css/custom-theme/images',
         loadError: function(xhr,status,error){alert(status+" "+error);},
             postData : {
             'load' : $.toJSON(lo.load_url_list())
             },
             jsonReader : {
               
                  repeatitems:false
               },
               onSelectRow: function(id){
                     //jQuery('#$jqgrid').editRow(id, true);
                         //console.log('selected'+id+' '+lastSel);
//                          if(id && id==lastSel){
//                             
//                          }
//                          lastSel=id;
                    },
                    ondblClickRow: function(id){        
                            jQuery('#google-tracker-grid-urls').editGridRow(id, true);
                            lastSel=id;
                    },
            colNames : [ 'id', 'url', 'user_id', 'timestamp' ],
            colModel : [ {
                name : 'id',
                index : 'id', width:150,
                 sorttype:'int',editable:true,key:true
            }, {
                name : 'url',
                index : 'url',width:150,
                 sortable:false,editable:true
            }, {
                name : 'user_id',
                index : 'user_id',width:150,
                 sorttype:'int',editable:true
            }, {
                name : 'timestamp',
                index : 'timestamp',width:150,
                sorttype:'date',editable:true
            } ],
            altRows: true,
            multiselect: true, rowNum:10, rowTotal: 50, rowList:[10,20,30], pager: '#pg_pcrud', sortname: 'id',
            loadonce: true, viewrecords: true, sortorder: "desc"
            //editurl: 'user.controller.php'        
                });
    });$("#google-tracker-grid-urls").jqGrid('navGrid', '#pg_pcrud', { edit: true, add: false, del: true, search: false });

The classes for example "ui-icon-refresh" are working, if i add this to an element manually, the refresh button appears.

I´m using jqGrid  3.8.2.

Please help, i´m trying for hours now, i just don´t know whats wrong.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
44 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