EasyUI Forum
March 28, 2024, 11:28:39 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Combo Grid scroll bar not working in IE  (Read 3407 times)
keja
Newbie
*
Posts: 26


View Profile Email
« 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
Logged
jarry
Administrator
Hero Member
*****
Posts: 2260


View Profile Email
« Reply #1 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');
}
}]
})
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!