EasyUI Forum
November 05, 2025, 01:01:46 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / EasyUI for jQuery / Re: How to bind function 'icon-click' to combobox defaults on: May 06, 2015, 10:31:46 AM
Thank you . It turned out like this:
Code:
$.fn.combobox.defaults=$.extend({}, $.fn.combobox.defaults, {
valueField: 'id',
textField: 'name',
mode: 'remote',
method: 'get',
delay: 604800000,
selectOnNavigation: false,
hasDownArrow: false,
inputEvents: $.extend({}, $.fn.combo.defaults.inputEvents, {
keyup: function(e){
if (e.keyCode == 40 && e.altKey){
var _text = $(e.data.target).combobox('getText');
$(e.data.target).combobox('reload','/Scripts/get_org.php?org_text='+_text)
.combobox('showPanel')
.combobox('setValue', _text);
}
}
}),
icons:[{
iconCls: 'icon-down-arrow',
handler: function(e){
var _text = $(e.data.target).combobox('getText');
$(e.data.target).combobox('reload','/Scripts/get_org.php?org_text='+_text)
.combobox('showPanel')
.combobox('setValue', _text);
}
}]
});
I had to hide the standard icon and add the desired icon into css
2  General Category / EasyUI for jQuery / How to bind function 'icon-click' to combobox defaults on: May 05, 2015, 11:33:19 AM
Hello. I changed combobox.default settings as I needed.
Code:
$.fn.combobox.defaults=$.extend({}, $.fn.combobox.defaults,{
valueField: 'id',
textField: 'name',
mode: 'remote',
method: 'get',
delay: 604800000,
selectOnNavigation: false
});
How to add these functions into combobox.defaults ?
Code:
$('#cc').combobox('textbox').bind("keyup",function(e){
if (e.keyCode == 40 && e.altKey){
var _text=$(this).parent().prev().combobox('getText')
$(this).parent().prev().combobox('reload','/Scripts/get_org.php?org_name='+_text)
.combobox('showPanel')
.combobox('setValue',_text);
}
});
$('#cc').textbox('options').icons[0].handler=
function(index){
var _text=$(this).parent().prev().combobox('getText')
$(this).parent().prev().combobox('reload','/Scripts/get_org.php?org_name='+_text)
.combobox('showPanel')
.combobox('setValue',_text);
};
3  General Category / EasyUI for jQuery / layout panel refresh parametr on: April 23, 2015, 06:39:01 AM
Hello.
When calling a function
Code:
$('#lay').layout('panel','center').panel('refresh','./Scripts/get_something.php');
always applied incremental option _
GET request looks like this
Code:
http://localhost/Scripts/get_something.php?_=1429796025673
http://localhost/Scripts/get_something.php?_=1429796025674
http://localhost/Scripts/get_something.php?_=1429796025675
What is this parameter and how to turn it off?
4  General Category / Bug Report / Re: datagrid fitColumns not working on: April 16, 2015, 09:56:35 AM
Thank you
5  General Category / Bug Report / datagrid fitColumns not working on: April 15, 2015, 11:05:35 AM
Hello
Code:
<html>
<head>
<meta charset="UTF-8">
<title>Test page</title>
<link rel="stylesheet" type="text/css" href="./jquery-easyui-1.4.2/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="./jquery-easyui-1.4.2/themes/icon.css">
<link rel="stylesheet" type="text/css" href="./jquery-easyui-1.4.2/demo/demo.css">
<script type="text/javascript" src="./jquery-easyui-1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="./jquery-easyui-1.4.2/jquery.easyui.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#dg').datagrid({
columns:[[
{field:'id',title:'id field'},
{field:'code',title:'code field'}
]],
fitColumns: true
});
});
</script>
</head>
<body>
<table id="dg" class="easyui-datagrid" title="Test" style="width:500px"></table>
</body>
</html>
fitColumns not work regardless of the availability of data in the table
6  General Category / Bug Report / Combobox reload method bug on: April 12, 2015, 08:37:45 AM
Code:
$(document).ready(function(){
$('#cc').combobox({
valueField: 'id',
textField: 'name',
mode: 'remote',
method: 'get',
delay: 604800000,
selectOnNavigation: false
});
});
When calling a function "reload" edit field is cleared
Code:
$('#cc').combobox('reload','/Scripts/get_org.php?org_name=')
7  General Category / EasyUI for jQuery / Re: combobox reload on: April 10, 2015, 09:18:12 AM
Sorry. Code 40 belongs to the button down. It is only necessary to understand how to pass a combination.
Understood almost everything. Besides why erased text from the edit field in the call combobox ('reload')
Code:
$('#cc').combobox('textbox').bind("keyup",function(e){
if (e.keyCode == 40 && e.altKey){
var _combo=$(this).parent().prev();
var _text=_combo.combobox('getText');
_combo.combobox('reload','/Scripts/get_lpu.php?lpu_text='+_text)
_combo.combobox('showPanel');
}
});
8  General Category / EasyUI for jQuery / combobox reload on: April 06, 2015, 12:14:20 PM
Hello. Sorry for my English.
Code:
$('#cc').combobox({
valueField: 'id',
textField: 'name',
mode: 'remote',
method: 'get'
});
$('#cc').combo('options').delay=604800000;
$('#cc').combobox('options').selectOnNavigation=false;
$('#cc').combobox('textbox').bind('keyup',function(e){
if (e.keyCode == 40){
var _combo=$(this).parent().prev();
_combo.combobox('reload','/Scripts/get_org.php?org_text='+_combo.combobox('getText'));
_combo.combobox('showPanel');
}
});
Enter text and press "alt" + "keydown" opens a drop-down list and the text in the edit is deleted. Then when you press the "down" there is no move through the panel, but called update (GET request) . Navigating the panel works by pressing the " down " . I do not correct or error in easyui?
9  General Category / EasyUI for jQuery / Re: How to call parent method on: March 29, 2015, 11:33:17 AM
Works. Thanks a lot
10  General Category / EasyUI for jQuery / How to call parent method on: March 28, 2015, 12:09:02 PM
Hello. Sorry for my English . I decided to manually open the drop-down list , and has done so for this :
$('#cc').combo('options').delay=604800000;
$('#cc').combobox('options').selectOnNavigation=false;
$('#cc').combobox('textbox').bind('keyup',function(e){
   if(e.keyCode==40)
      //how to call there $('#cc').combobox('showPanel') thru the "this"
});
Thanks
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!