Tried image to upload png, jpg and size below 100kb also no luck - unable to upload gave error tried few times.
var vendorsList = function (ui) {
var $inp = ui.$cell.find("select"),
$grid = $(this);
$inp.change(function ()
{
var vendor = this.value;
getVendorInfo(companyid, vendor);
});
//initialize the editor
// $inp.css('z-index', '999999');
$inp.select2({
dropdownAutoWidth: true
});
}
var colM = [
{
dataIndx: "vendorno", title: "Vendor", width: 200,
editor: {
type: "select",
prepend: { "": "" },
mapIndices: { name: "vendorno", id: "vid" },
labelIndx: "vname",
valueIndx: "vid",
options: function (ui) {
var comps = pq.companies,
id = ui.rowData.coid;
var venders = pq.vendors;
if (id) {
var found_names = $.grep(pq.vendors, function (v) {
return v.coid === id;
});
return found_names;
}
return [];
},
init:vendorsList
},