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
afterSaveCell
04/05/2013
04:07
Avatar
sepoto
Member
Members
Forum Posts: 4
Member Since:
06/02/2013
sp_UserOfflineSmall Offline

For some reason I am getting alert2 when I enter the cell to edit but I am not getting alert1 when I press the enter key to save the data to the grid again. Why would my alert inside of afterSaveCell not be coming up when I press the enter key with the cursor inside of the cell to edit?

<!DOCTYPE html>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>My First Grid</title>

<style type="text/css">

html, body {

margin: 0;

padding: 0;

font-size: 75%;

}

</style>

<link rel="stylesheet" type="text/css" media="screen" href="jqueryui/themes/redmond/jquery-ui.css" />

<link rel="stylesheet" type="text/css" media="screen" href="jqueryui/themes/redmond/jquery.ui.theme.css" />

<link rel="stylesheet" type="text/css" media="screen" href="jqgrid/css/ui.jqgrid.css" />

<link rel="stylesheet" type="text/css" media="screen" href="timepicker/jquery-ui-timepicker-addon.css" />

<link rel='stylesheet' type='text/css' href='fullcalendar/fullcalendar/fullcalendar.css' />

<link rel='stylesheet' type='text/css' href='fullcalendar/fullcalendar/fullcalendar.print.css' media='print' />

<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>

<script src="http://code.jquery.com/jquery-migrate-1.1.1.min.js"></script>

<script src="jqueryui/js/jquery-ui-1.10.1.custom.min.js"></script>

<script src="jqgrid/js/i18n/grid.locale-en.js" type="text/javascript"></script>

<script src="jqgrid/js/jquery.jqGrid.min.js" type="text/javascript"></script>

<script type='text/javascript' src='fullcalendar/fullcalendar/fullcalendar.min.js'></script>

<script type='text/javascript' src='timepicker/jquery-ui-sliderAccess.js'></script>

<script type='text/javascript' src='timepicker/jquery-ui-timepicker-addon.js'></script>

<script type="text/javascript">

$(function(){

$("#list").jqGrid({

url:'php.scripts/customers.get.php',

datatype: 'xml',

mtype: 'POST',

colNames:['idcustomers','firstname', 'lastname','address1','address2','city','state','zip','phone','email','cell'],

colModel :[

{name:'idcustomers', index:'idcustomers', width:55},

{name:'firstname', index:'firstname', width:90, editable: true},

{name:'lastname', index:'lastname', width:90, editable: true},

{name:'address1', index:'address1', width:90, editable: true},

{name:'address2', index:'address2', width:90, editable: true},

{name:'city', index:'city', width:90, editable: true},

{name:'state', index:'state', width:90, editable: true},

{name:'zip', index:'zip', width:90, editable: true},

{name:'phone', index:'phone', width:90, editable: true},

{name:'email', index:'email', width:90, editable: true},

{name:'cell', index:'cell', width:90, editable: true}

],

pager: '#pager',

rowNum:10,

rowList:[10,20,30],

sortname: 'idcustomers',

sortorder: 'asc',

viewrecords: true,

gridview: true,

caption: 'Customers',

cellEdit: true,

cellsubmit: 'clientArray',

afterSaveCell: function(rowid,name,val,iRow,iCol) {

alert("alert1!");

},

afterEditCell: function (id,name,val,iRow,iCol){

alert("alert2!");

}

});

});

</script>

</head>

<body>

<table id="list"><tr><td/></tr></table>

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

</body>

</html>

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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