EasyUI Forum
May 07, 2024, 12:34:07 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: 1 2 3 [4]
46  General Category / EasyUI for jQuery / Hide ul in easyui-accordion on: February 16, 2019, 01:45:34 AM
How can I hide ul eliment in easyui-accordion if it has no childeren.
47  General Category / EasyUI for jQuery / Re: Combogrid select item with double click instead of single click on: January 31, 2019, 04:04:12 AM
Solved the border issue with this code.

Code:
$('#cc').combo('panel').css('border','none');
48  General Category / EasyUI for jQuery / Re: Combogrid select item with double click instead of single click on: January 30, 2019, 10:16:35 PM
Hi Jarry!

Thanks this solved the problem. One last minor issue combobox dropdown panel border width is doubled. I use following css to solve this issue, but it removes the border from all comboboxes is there any way to remove the panel border from only a specific combobox.

Code:

.combo-panel{
border:0;
}

49  General Category / EasyUI for jQuery / Re: Combogrid select item with double click instead of single click on: January 30, 2019, 05:09:42 AM
I am facing a problem, when i add a toolbar to datagrid which includes textboxes i can't select the textbox.
Please see the below image and code.



Code:

<input id="cc" class="easyui-combo"></input>

<div id="tb" style="padding:2px 5px;">
Search on:
<select class="easyui-combobox" panelHeight="auto" style="width:100px">
<option value="id">Item ID</option>
<option value="prod">Product</option>
<option value="attr">Attribute</option>
<option value="status">Status</option>
</select>
Search: <input class="easyui-textbox" style="width:110px"></input>
<a href="#" class="easyui-linkbutton" iconCls="icon-search">Search</a>
</div>        



Code:

var cc = $('#cc').combo({
editable:true, panelWidth: 500
});

var dg = $('<table></table>').appendTo($('#cc').combo('panel'));

dg.datagrid({
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'}
]],
url: 'datagrid_data1.json',
toolbar:'#tb',
height:'100%',
width:'100%',
fitColumns: true,
singleSelect:true,
onDblClickRow: function(index,row){

cc.combo('setValue', row.itemid).combo('setText',row.productname);
cc.combo('hidePanel')

}
});


50  General Category / EasyUI for jQuery / Re: Combogrid select item with double click instead of single click on: January 30, 2019, 02:55:22 AM
Thank's jarry it works.
51  General Category / EasyUI for jQuery / Combogrid select item with double click instead of single click on: January 29, 2019, 10:48:11 PM
Is it posible to select item from combogrid with double click on row instead of single click.


Pages: 1 2 3 [4]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!