EasyUI Forum
September 14, 2025, 01:57:34 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: datebox's calendar shows wrong date on: November 07, 2013, 01:00:26 AM
For what it worst, I end up with writing function set_calendar which move calendar to right date
at start  and each time when calendar is picked
Code:

$('#dd').datebox({
onSelect: function(date){
set_calendar(date.getFullYear(), date.getMonth(), date.getDate());
}
});

function set_calendar(y, m, d) {
     var el = $('#dd').datebox('calendar');
     el.calendar('moveTo', new Date(y, m, d));
}
2  General Category / EasyUI for jQuery / Re: datebox's calendar shows wrong date on: November 05, 2013, 02:09:02 AM

Code:
<input id="f_d1" type="text" class="easyui-datebox" value="01.11.2013">

<script>
$.fn.datebox.defaults.formatter = function(date){
var y = date.getFullYear();
var m = date.getMonth()+1;
var d = date.getDate();
return (d<10?('0'+d):d)+'.'+(m<10?('0'+m):m)+'.'+y;
}
</script>
3  General Category / EasyUI for jQuery / datebox's calendar shows wrong date on: November 04, 2013, 10:33:23 PM
Hello All !

I would like to display date in datebox as "dd.mm.yyyy" .

It works fine until I call calendar: "01.11.2013" becomes 11th January instead of 1st of November.
Please advise what am I miss.
Thanks, Ilya
4  General Category / EasyUI for jQuery / cakePHP and displaying datagrid columns on: September 01, 2013, 10:53:25 PM
Hello All !
Using cakePHP 2.3.9 and easyui 1.3.4

Datagrid don't show any columns.
At Firebug I see that
<div class="datagrid-view1" style="width: 10000px;">
<div class="datagrid-view2" style="width: 0px;">

Datagrid column properties and source data are loaded fine and can be seen after manual changing 10000px to reasonable values.
Everything works fine under PHP without framework.

Please, advise.
Ilya Kaurov

PHP:
Code:
<table id="dg" ></table>
javascript:
Code:
$(document).ready(function() {
$('#dg').datagrid({
    url:'datagrid_data.json',
    columns:[[
        {field:'code',title:'Code',width:100},
        {field:'name',title:'Name',width:100},
        {field:'price',title:'Price',width:100,align:'right'}
    ]]
});
});
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!