EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: keja on September 28, 2021, 11:09:13 PM



Title: Combo Grid scroll bar not working in IE
Post by: keja on September 28, 2021, 11:09:13 PM
Hello Jarry,

We are using combo grid. We set "limitToList:true" property. However the item does not vanish automatically in case if it is not in the combo list in any browser.

We then tried "reversed: true". It clears the combo for the item not in a list. However if one item is selected from the list and tried to append a different text, it clears the appended text and keeps the old selected item as is in combo grid. We require to clear a  combo grid without any text.

Kindly suggest


Title: Re: Combo Grid scroll bar not working in IE
Post by: jarry on September 30, 2021, 01:20:57 AM
Please add a 'clear' button to clear the whole inputing values.
Code:
$('#cc').combogrid({
panelWidth: 700,
idField: 'itemid',
textField: 'productname',
data: data,
columns: [[
{field:'itemid',title:'Item ID',width:80},
{field:'productname',title:'Product',width:120},
{field:'listprice',title:'List Price',width:80,align:'right'},
{field:'unitcost',title:'Unit Cost',width:80,align:'right'},
{field:'attr1',title:'Attribute',width:200},
{field:'status',title:'Status',width:60,align:'center'}
]],
fitColumns: true,
label: 'Select Item:',
labelPosition: 'top',
reversed: true,
icons:[{
iconCls:'icon-clear',
handler: function(e){
var v = $(e.data.target).combogrid('clear');
}
}]
})