EasyUI Forum
April 29, 2024, 09: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 ... 149 150 [151]
2251  General Category / Bug Report / Re: menu height higher than document height on: May 25, 2014, 08:10:17 AM
This issue has been solved now. Please download the latest patch file from http://www.jeasyui.com/download/downloads/jquery-easyui-1.3.6-patch.zip.
2252  General Category / Bug Report / Re: header check on datagrid on: May 25, 2014, 08:08:18 AM
Please download the latest patch file from http://www.jeasyui.com/download/downloads/jquery-easyui-1.3.6-patch.zip. You only need to include the 'jquery.easyui.patch.js' file to the page.
2253  General Category / Bug Report / Re: header check on datagrid on: May 24, 2014, 01:10:11 AM
Please download the patch file from http://www.jeasyui.com/download/downloads/jquery-easyui-1.3.6-patch.zip, extract it and you will see the 'jquery.easyui.patch.js' file. Please include this file to your page.
2254  General Category / Bug Report / Re: menu height higher than document height on: May 24, 2014, 01:07:48 AM
To solve this issue, you have to set the height of menu.
Code:
<div id="mm" class="easyui-menu" style="width:120px;height:200px;overflow:auto">
...
</div>
2255  General Category / EasyUI for jQuery / Re: onChange for Datebox fired everytime I type a char on: May 23, 2014, 07:39:12 PM
The 'onChange' event fires when any changes are applied to the datebox. In addition to this event, you can bind any other events to the input box to do what you want.
Code:
var input = $('#dd').datebox('textbox');  // get the text box object
input.bind('change', function(){
  //...
});
2256  General Category / EasyUI for jQuery / Re: Virtual Scrolling for TreeGrid on: May 22, 2014, 05:02:33 PM
No virtual scrollview exists for the treegrid but you can achieve a dynamic loading treegrid that helps to load rows from server in parts and avoid long waits to load huge data. For more information please visit http://www.jeasyui.com/tutorial/tree/treegrid3.php.
2257  General Category / EasyUI for jQuery / Re: Numberbox format to 5 or 5.1 not 5.0 on: May 22, 2014, 08:28:07 AM
If you want to do some special conversions, you have to customize the 'formatter' and 'parser' functions. The code below achieves how to round a number downwards to the nearest integer.
Code:
{field:'ano1',title:'ANO 1',width:70,align:'center',
  editor:{
    type:'numberbox',
    options:{
formatter:function(v){
return v;
},
parser:function(s){
var v = parseFloat(s);
return isNaN(v)?'':Math.floor(v);
}
    }
  }
},
2258  General Category / EasyUI for jQuery / Re: Numberbox format to 5 or 5.1 not 5.0 on: May 22, 2014, 07:55:16 AM
The numberbox takes the 'precision' property that can be used to display the number precision after the decimal separator.
Code:
{field:'ano1',title:'ANO 1',width:70,align:'center',
  editor:{
    type:'numberbox',
    options:{
      precision:1
    }
  }
},
2259  General Category / EasyUI for jQuery / Re: How to disable validatebox on: May 22, 2014, 01:30:07 AM
Yes, you can disable a input box.
Code:
<input type id="unitId" name="unit" disabled="disabled"></input>
A disabled input box has no validating actions on it but can't accept any entering chars. If you only want to disable the validation, set 'novalidate' property to true.
Code:
$('#unitId').validate({
  novalidate:true
});
2260  General Category / EasyUI for jQuery / Re: How to disable validatebox on: May 21, 2014, 10:30:10 PM
Please call 'disableValidation' method to disable validation.
2261  General Category / EasyUI for jQuery / Re: Datagrid column sizing programatically on: May 21, 2014, 05:52:41 PM
Extending a new method to achieve this functionality may be a better way. The code below is the implementation of 'resizeColumn' method that can be used to resize a column programmatically.
Code:
$.extend($.fn.datagrid.methods,{
resizeColumn:function(jq,param){
return jq.each(function(){
var dg = $(this);
var col = dg.datagrid('getColumnOption', param.field);
col.boxWidth = param.width + (col.boxWidth-col.width);
col.width = param.width;
dg.datagrid('fixColumnSize', param.field);
})
}
})
For example, to resize the 'itemid' column's size, you can call 'resizeColumn' method. The code looks like this:
Code:
$('#mygrid').datagrid('resizeColumn', {
  field: 'itemid',
  width: 200
});
2262  General Category / EasyUI for jQuery / Re: setting a method without initializing on: May 21, 2014, 07:13:53 AM
You can call 'options' method to get the options of a object. Some properties such as 'onBeforeLoad' can be modified directly on this 'options' object. Try this:
Code:
$('#tt').tree('options').onBeforeLoad = function(){...}
Pages: 1 ... 149 150 [151]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!