Hi
MY PayPAL transaction id xxxx180S (Mainstream NZ Ltd).
When you tab in inline editing and you have a select and you don't wait until it is visible the focus goes out of the grid.
The following code is the JSON function on editor init: selectTypes.
// ---------------------
// Select Freight Types
// ---------------------
var selectTypes = function (ui) {
$inp = ui.$cell.find("select");
$grid = $(this);
//alert(ui.cellData);
//console.log($inp);
//var dataIndx = ui.dataIndx;
url = "
https://rest.mainstream.co.nz:9191/MAINTEST/subroutine/WEBUSRUPD";
var params = new Object();
params.user = user;
params.userdetin = "0";
params.mode = "ENQ";
$.support.cors = true;
$.ajax({
type: "POST",
dataType: 'json',
data: JSON.stringify(params),
url: url,
contentType: "application/json; charset=utf-8",
beforeSend: function (xhr) { //MNS
xhr.setRequestHeader("Authorization",
"Basic d2VidXNlcjptNCR0M3I=");
}, //MNS
success: function (pdata) {
var s1 = pdata.msg.msgSeverity,
s2 = pdata.msg.msgCust,
s3 = pdata.msg.msgMain;
if (s1 == "F") {
alert(s3);
} else {
console.log(s1 + " " + s3);
}
var seldet = [];
var seldef = "";
$(pdata.svs.jobt).each(function (val) {
var opt = $('<option />');
if (this.jobTyp == ui.cellData) {
// this is the default option so set the 'selected' attribute
opt.attr('value', this.jobTyp).text(this.jobDesc);
opt.attr('selected', 'selected');
}
else {
opt.attr('value', this.jobTyp).text(this.jobDesc);
}
$inp.append(opt);
});
},
error: function () {
// constitutes some error from the Web Service
console.log("WEBUSRUPD failed");
}
});
};