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
c.p.colModel[f].formoptions is undefined when submit via dialog form
12/09/2010
20:57
Avatar
Jay
New Member
Members
Forum Posts: 1
Member Since:
03/04/2009
sp_UserOfflineSmall Offline

I keep getting this error c.p.colModel[f].formoptions is undefined when I try and update data on the dialog form.  I'm using jqGrid v3.7.2.

My data is plan stuf (i.e. name, email, phone number) so nothing out of the ordinary.  I've used jqGrid in the past for similar data updates and no problem.

Anyone got any ideas?   Here is my HTML page:

[sourcecode language="text"]

<link rel="stylesheet" type="text/css" href="css/main.css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/ui.jqgrid.css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/redmond/jquery-ui-1.8.4.custom.css" />
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.4.custom.min.js"></script>
<script type="text/javascript" src="js/grid.locale-en.js" ></script>
<script type="text/javascript" src="js/jquery.jqGrid.min.js" ></script>
<script type="text/javascript">
<!--
$.jgrid.no_legacy_api = true;
$.jgrid.useJSON = true;
$(function() {
    $("#list").jqGrid({
            url:'php/adminCalFunctions.php?nd='+new Date().getTime(),
            datatype:'json',
            colNames:['ID','Date','Time Slot','Event Name','Contact Number','Contact Email','Number of children','Comments'],
            colModel:[
                    {name:'id',index:'id', width:50},
                    {name:'booked_date',index:'booked_date', width:90, editable:false},
                    {name:'booked_time',index:'booked_time', width:80, editable:false},
                    {name:'party_name',index:'party_name', width:80, editable:true},
                    {name:'contact_number',index:'contact_number', width:80, editable:true},
                    {name:'contact_email',index:'contact_email', width:80, editable:true},
                    {name:'kids',index:'kids', width:80, editable:true},
                    {name:'comments',index:'comments', width:80, editable:true}
            ],
            rowNum:10,
            rowList:[10,20,30],
            pager:'#pager1',
            sortname:'id',
            viewrecords:true,
            sortorder:'desc',
            caption:'Test Caption'
    });
    $("#list").jqGrid('navGrid','#pager1',
    {}, //options
    {reloadAfterSubmit:true}, // edit options
    {reloadAfterSubmit:true}, // add options
    {reloadAfterSubmit:true}, // del options
    {} // search options
    );
    
});
// -->

</script>
</head>

[/sourcecode]

This is trying to post to a php to write to a DB.

18/11/2011
18:19
Avatar
rwor28
New Member
Members
Forum Posts: 1
Member Since:
18/11/2011
sp_UserOfflineSmall Offline

check to make sure ID is set

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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