Omer
1) Syntax for select list editor is
editor: {
type: 'select',
options: [ { '1ABC' : 'Option-1' }, { '415': 'Option-2' }, { '5454': 'Federal Shipping' } ]
}
2) Multi Select
var multiSelectEditor = function(ui) {
var $cell = ui.$cell,
dataIndx = ui.dataIndx,
cls = ui.cls,
dc = ui.rowData[dataIndx];
$cell.append('<select id="example" name="'+dataIndx+'" multiple="multiple" class="'+cls+'">'+
'<option value="1">Option 1</option>'+
'<option value="2">Option 2</option>'+
'<option value="3">Option 3</option>'+
'<option value="4">Option 4</option>'+
'<option value="5">Option 5</option>'+
'</select>');
$("#example").multiselect();
}
3) The code is below. You may need to make minor ajustments to it as I haven't tested it. getEditCellData is not required.
var inputEditor = function(ui) {
var $cell = ui.$cell,
dataIndx = ui.dataIndx,
cls = ui.cls,
dc = ui.rowData[dataIndx];
$cell.append("<div id='ie' class='ekar'>"+
"<input type='text' name='"+dataIndx+"' value='" + dc + "' class='" + cls + " pq-edit-input ui-state-default input-full' />"+
"<span class='ek ui-widget-header' style='margin-left:-20px;'>"+
"<i class='ui-icon ui-icon-search ck'></i></span>"+
"<span class='ek ui-widget-header'><i class='ui-icon ui-icon-plus ck'></i></span>"+
"</div>");
//$cell.append("<input type='text' value='" + dc + "' class='pq-edit-input'/>");
$cell.find(".ui-icon-search").click(function() {
var theURL = "popup.asp?id=pq-edit-input&process=list";
Popup(theURL, "myWin", 600, 200, 100, 200);
});
$cell.find(".ui-icon-plus").click(function() {
var theURL = "popup.asp?id=pq-edit-input&process=add";
Popup(theURL, "myWin", 600, 200, 100, 200);
});
}