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
undefined message when loading data
25/01/2010
11:05
Avatar
noelg
Member
Members
Forum Posts: 6
Member Since:
25/01/2010
sp_UserOfflineSmall Offline

hello everyone,

I am new to jqgrid.

I get a label that says "undefined" when loading data into my jqgrid. The data is loaded properly but the message is always there.

Any idea??

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Prueba de JQGrid</title>
<link rel="stylesheet" type="text/css" media="screen" href="css/ui.jqgrid.css" />
<link rel="stylesheet" type="text/css" media="screen" href="css/jquery-ui-1.7.2.custom.css" />
<script type="text/javascript" src="js/grid-locale-sp.js"></script>
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/jquery.jqGrid.min.js"></script>

<script type="text/javascript">

    jQuery(document).ready(function() {

        jQuery("#list").jqGrid({

            url: 'Generador',

            datatype: 'json',

            mtype: 'GET',

            colNames: ['Nombre','DNI', 'Edad', 'Ocupacion','Salario'],

            colModel: [

              { index: 'Nombre', width: 150, align: 'left' },

              { index: 'DNI', width: 150, align: 'left', sortable: false },

              { index: 'Edad', width: 80, align: 'center' },

              { index: "Ocupacion", width: 120, align: 'left'},
              
              { index: "Salario", width: 120,editable:true, align: 'left'}],

            pager: jQuery('#pager'),

            rowNum: 50,

            rowList: [20, 50, 100],

            sortname: 'Nombre',

            sortorder: 'asc',

            viewrecords: true,

            imgpath: '/css/images',

            caption: 'Agenda personal',

            height: 400,

            width: 900

            
        });

    });

</script>    
</head>
<body>
<p>Esto es una pagina de prueba de JQGrid con una ui de Cupertino</p>
<table id="list"></table>

<div id="pager"></div>    

</body>
</html>

This is the html

25/01/2010
13:13
Avatar
noelg
Member
Members
Forum Posts: 6
Member Since:
25/01/2010
sp_UserOfflineSmall Offline

I solved the problem,

I wasn't loading language js properly.

sorry for that

24/11/2010
07:23
Avatar
samiam
New Member
Members
Forum Posts: 2
Member Since:
23/11/2010
sp_UserOfflineSmall Offline

noelg said:

I solved the problem,

I wasn't loading language js properly.

sorry for that


Helped me out - thanks for posting the update

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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