EasyUI Forum
May 05, 2024, 09:58:14 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 5
31  General Category / EasyUI for jQuery / Re: Title of collapsed west/east layout panel becomes overlapped by iconCls on: July 11, 2020, 01:38:02 PM
I tried this, my licensed download is available at https://www.jeasyui.com/download/d/download.php?link=xxxxxxxxxxxxx
However the problem remains after upgrade to my latest licensed version. I notice the version at my download link is 1.9.6. However the latest free version is 1.9.7. Might that be the reason? Can I then install the free over the licensed?
32  General Category / EasyUI for jQuery / Title of collapsed west/east layout panel becomes overlapped by iconCls on: July 10, 2020, 03:37:31 AM
Can I have code snippet that fixes this automatically for everywhere its used? It seems like the component should know East and West should not overlap. The same way North and South does not overlap. Please advice.
33  General Category / EasyUI for jQuery / How to change Easyloader theme @ run-time? on: April 21, 2020, 08:12:55 AM
I would like to let the user change skin by selecting a theme from combo box. I have fond posts about changing the CSS reference via giving it an id. However it’s probably not the correct solution in my case. The ribbon menu pictures gets lost and it looks overall strange. I believe the reason for this is that my app is using easyloader. At initial page-load my code sets the theme like so:

easyloader.theme = 'material-teal';
easyloader.locale = 'se_SW';

How can I implement a method for changing easyloader.theme and re-render the page to have this theme taking effect?
34  General Category / EasyUI for jQuery / Re: Form using JS on: April 20, 2020, 09:38:40 AM
I simplifyed
Code:
var controles = [
    { type: 'textbox', name: "Name", required: true }
    , { type: 'textbox', name: "Email" }
    , { type: 'textbox', name: "Phone" }
    , { type: 'filebox', name: "File" }
    , { type: 'linkbutton', iconCls: 'icon-ok', text: 'OK', height: 30 }
];

var $cont = $('<form/>', { id: 'ff0' });

$.each(controles, function (i, o) {
    using(o.type, function () {
        $cont.append($('<input/>', { id: 'ff' + i }).appendTo($('<div/>', {}).appendTo($cont))[o.type]($.extend({ width: "100%", label: o.name }, o)));
    });
});

$('body').append($('<div/>', { id: 'win_' }));
using('window', function () {
    $('#win_').window({ title: 'Test js form', width: 300, height: 200, content: $cont });
});
But button comes in the top. Any suggestions why, or how to make the code correct?
35  General Category / EasyUI for jQuery / Form using JS on: April 19, 2020, 06:39:50 PM
Looking for a way to create a form using only JS, something like attached picture.

Code:
    var $cont = $('<form/>', { id: 'ff0' });
    var $cont1 = $('<input/>', { id: 'ff1' });
    var $cont2 = $('<input/>', { id: 'ff2' });
    var $cont3 = $('<input/>', { id: 'ff3' });
    var $cont4 = $('<input/>', { id: 'ff4' });
    var $cont5 = $('<input/>', { id: 'ff5' });

    using(['combobox', 'textbox', 'filebox', 'passwordbox', 'linkbutton'], function () {
        $cont1.textbox({ label: "Name", name: "Name" }).wrap('<div/>', {});
        $cont2.textbox({ label: "Email", name: "Email" }).wrap('<div/>', {});
        $cont3.textbox({ label: "Phone", name: "Phone" }).wrap('<div/>', {});
        $cont4.filebox({ label: "File", name: "File" }).wrap('<div/>', {});
        $cont5.linkbutton({ iconCls: 'icon-ok', text: 'OK', width: 70}).wrap('<div/>', {});
    });

    $cont.append($cont1);
    $cont.append($cont2);
    $cont.append($cont3);
    $cont.append($cont4);
    $cont.append($cont5);

    $('body').append($('<div/>', { id: 'win_' }));
    using('window', function () {
        $('#win_').window({ title: 'Test js form', width: 300, height: 200, content: $cont });
    });
This works however not giving the right result, please advice.



36  General Category / EasyUI for jQuery / Adding button to propertygrid on: February 17, 2020, 09:10:13 AM
Is there a simple way to add a button to the lower left part of the propertygrid table as described in attached picture? If the dialog plugin could be embedded as a page component like layout, it could have been achieved that way I think. But it only opens in  window.

How can I add the button dynamically on top aligning right? Is there any other way recomended?
37  General Category / EasyUI for jQuery / Re: Using easyloader and setting defaults.formatter to datebox on: February 07, 2020, 05:00:59 PM
Perfect, that works very good thanks.
38  General Category / EasyUI for jQuery / Re: Using easyloader and setting defaults.formatter to datebox on: February 06, 2020, 11:41:17 AM
The suggested code gives the following date format: ss/mm/yyyy while I am after yyyy-mm-dd. The code I supplied gives the format attached. No language selection gives me this swedish date format, not 'se_SW' either. Pls advice.
39  General Category / EasyUI for jQuery / Using easyloader and setting defaults.formatter to datebox on: February 04, 2020, 06:39:10 PM
Hi, I'm using easyloader and wants to extend datebox defaults.formatter with the following code
Code:
$.fn.datebox.defaults.formatter = function (date) {
var y = date.getFullYear();
var m = date.getMonth() + 1;
var d = date.getDate();
return y + '-' + (m < 10 ? ('0' + m) : m) + '-' + (d < 10 ? ('0' + d) : d);
};
$.fn.datebox.defaults.parser = function (s) {
if (!s) return new Date();
var ss = s.split('-');
var d = parseInt(ss[2], 10);
var m = parseInt(ss[1], 10);
var y = parseInt(ss[0], 10);
if (!isNaN(y) && !isNaN(m) && !isNaN(d)) {
return new Date(y, m - 1, d);
} else {
return new Date();
}
};
Can I put this into the $.extend(easyloader.modules, {})?
How should that look?
Please advice.
40  General Category / EasyUI for jQuery / How to update a datagrid column separately after page is loaded? on: February 03, 2020, 08:35:51 AM
For one case I use a data table where one column is a count of existent rows in another table for that row combination. A normal joint view with a count works but in my case the second table contains millions rows which slows the view or query down. So I would like the original table to load fully and then that count column to be separately loaded with a spinning wheel while loading or similar. Only the count of rows for the ones being displayed in the datagrid needs to be extracted. If the user reloads by pagination or filer or so, that set needs to be post loaded again. Anyone done something similar? Any ideas of how to achieve this?
41  General Category / EasyUI for jQuery / Re: Tree scrollTo problem when animation on: January 28, 2020, 07:53:44 AM
Works, yes. Thanks!
42  General Category / EasyUI for jQuery / Tree scrollTo problem when animation on: January 26, 2020, 04:06:16 PM
Hi, I have a datagrid side by side with a Tree. Clicking a row in the grid expands, selects and scollTo that node in the Tree However selected Tree node becomes outside the window as the animation has not finished when scrollTo executes. The node becomes visible in the window for a split second but is moved down and outside the window as the animation continues. When animation is ready, the selected node is outside the window. If I turn animation off, it works fine. How can I make the scrollTo wait for the animation before start scrolling to the node so it becomes visible when done?
Code:
$('#dg').datagrid({
title: 'dg',
...
onSelect: function (index, row) {
var node = $('#tree').tree('find', row.Code);
$('#tree').tree('expandTo', node.target).tree('select', node.target);
$('#tree').tree('scrollTo', node.target);
}
});
43  General Category / EasyUI for jQuery / Re: Easyloader error ver 1.9.3 using Crome on: January 26, 2020, 03:26:01 PM
Yes, thats works fine. Thank you!
44  General Category / EasyUI for jQuery / Re: Easyloader error ver 1.9.3 using Crome on: January 23, 2020, 09:07:20 AM
This is what I get after a couple of push on refresh or "F5" in my Google Chrome.
45  General Category / EasyUI for jQuery / Easyloader error ver 1.9.3 using Crome on: January 23, 2020, 06:35:51 AM
When using Easyloader and Google Chrome I get an error. My EasyUI ver is 1.9.3 and below code works for first load, however when refreshing the page I get an error
Code:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>Pricing Service</title>
<script src="jquery/jquery-3.4.1.min.js"></script>
<script src="easyui/easyloader.js"></script>
<script>
using('layout', function () { });
</script>
</head>
<body class="easyui-layout">
<div data-options="region:'north',title:'North Title',split:true" style="height: 100px;"></div>
<div data-options="region:'south',title:'South Title',split:true" style="height: 100px;"></div>
<div data-options="region:'east',title:'East',split:true" style="width: 100px;"></div>
<div data-options="region:'west',title:'West',split:true" style="width: 100px;"></div>
<div data-options="region:'center',title:'center title'" style="padding: 5px; background: #eee;"></div
</body>
</html>

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