I am trying to use combogrid with multiple:true and search data
$('#cc').combogrid({
panelWidth:450,
multiple:true,
idField:'name', textField:'name',
mode:'remote', method:'get',
url:'Employees/list',
columns:[[
{field:'regd',title:'Code',width:60},
{field:'name',title:'Name',width:100},
{field:'addr',title:'Address',width:120}
]]
});
I have hundred of employees, I want to select 2 or more employees by typing their name on the input of the combobgrid. On the server side, I got the q value for the first name, for the second value, typing does not help because the query alfready contains the first typed name. So using multiple becomes useless. But I solve this problem by reading the q string after the last comma. The problem is combogrid does not clear the typed query string. For example I type 23 for the regd, then I select the name on the grid, the regd 23 is appended to the name selected. How do I clear this? How do I clear the search term I used after selecting the item?
Look at this example.
http://jsfiddle.net/Bz9Js/When you type something, even after selecting our choices from the grid, the typed letters still exist in the input field.
Thanks and regards,
Alfred