Forum

July 12th, 2025
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
gridimgpath is not defined
16/10/2009
01:43
Avatar
kikz4life
Philippines
Member
Members
Forum Posts: 14
Member Since:
15/10/2009
sp_UserOfflineSmall Offline

Im trying to integrate the jgGrid in CodeIgniter and this problem arises to me "gridimgpath is not defined". I trace it using the firebug  and its in this line   "imgpath: gridimgpath,".

can anyone help me with this? im stuck :((.

Here is my code in js

jQuery('.listFlex').jqGrid
(
    {
        url: root + mod + '/listview',
        dataType: 'json',
        colNames:['role_id','role_code','role_description'],
        colModel : [   
            {name : 'role_id', width : 50, align : 'left', editable:true, editoptions:{size:25}, sortable:true}               
            ,{name : 'role_code', width : 100, align : 'left', editable:true, editoptions:{size:25}, sortable:true}
            ,{name : 'role_desc', width : 200, align : 'left', editable:true, editoptions:{size:25}, sortable:true}   
                       
            ],
        rowNum:10,
        rowList:[10,20,30],
        imgpath: gridimgpath,
        pager: jQuery('#pager2'),
        sortname: 'id',
        viewrecords: true,
        sortorder: "desc",
        caption:"User Role List" }).navGrid('#pager2',{edit:false,add:false,del:false});
16/10/2009
02:39
Avatar
Corrado
Italy - Milano
Member
Members
Forum Posts: 16
Member Since:
22/05/2009
sp_UserOfflineSmall Offline

Hi,

gridimgpath is a variable name; you must define it before using it!

You can also use: imgpath: '/your/img/folder/image.jpg'

I hope I've been useful.

Corrado.

16/10/2009
02:53
Avatar
kikz4life
Philippines
Member
Members
Forum Posts: 14
Member Since:
15/10/2009
sp_UserOfflineSmall Offline

Hi Corrado

first of all thanks for the response. 😀

is it okay if i just dont include gridimgpath in the code.? when delete the output seems fine but still no data retrieved in the table. Still a long way to go :(.

16/10/2009
08:34
Avatar
Pete
Member
Members
Forum Posts: 100
Member Since:
01/09/2008
sp_UserOfflineSmall Offline

If you are using 3.5 then the imgpath variable has been deprecated and is not required.  It shouldn't affect grid construction.

Pete

30/10/2009
03:40
Avatar
Snakeh
Guest
Guests

put the following codes before jQuery('.listFlex').jqGrid

jQuery(document).ready(function(){

add following codes after your code

});

hopes this help Laugh

Forum Timezone: Europe/Sofia

Most Users Ever Online: 994

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