EasyUI Forum
April 28, 2024, 02:40:45 AM *
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 ... 7
31  General Category / EasyUI for jQuery / Initialize a combobox without firing onChange event on: March 14, 2018, 04:21:30 AM
Hello,

How can I initialize a combobox without firing onChange event?

Is there a combobox method, similar to initValue textbox method, that can be called only to initialize combobox?

Thanks
32  General Category / EasyUI for jQuery / Datagrid issue when Tab button is used in filter fields on: February 28, 2018, 04:44:35 AM
Hi,

I’m currently using the version 1.5.4.1.

When I have a datagrid with a horizontal scrollbar. If I set the focus in the first filter field (Customer filter field) and use the "tab" button to jump to the next filter fields(until the last column), only column name in header are moving.  The scrollbar and the datagrid rows are fixed.

In this case the column names in header and the data in rows are not consistent.

Please refer to this example: http://jsfiddle.net/v7hporvw/20/

Thanks in advance!
33  General Category / EasyUI for jQuery / Re: datagrid inside a window doesn't show remote content (1.5.4) on: January 24, 2018, 07:11:53 AM
FYI:
There is a recent fix available in version 1.5.4.1 which also relates to display of Datagrid content in a window. May be it solves your problem as well.
34  General Category / EasyUI for jQuery / Re: Datagrid in Window doesn't load properly on: January 24, 2018, 07:07:40 AM
Stworthy, many thanks for clarifying this one. I located a local refresh issue in code and its working fine now with version 1.5.4.1.

35  General Category / EasyUI for jQuery / Re: Datagrid in Window doesn't load properly on: January 23, 2018, 06:29:12 AM
Thanks Stworthy for the updated version 1.5.4.1. With this version the mentioned Problem seem to be fixed BUT the Problem still remains if the same Edatagrid is loaded remotely in the window using 'href' option.

I can't give a demo with the href option because for that the Edatagrid code should be put on the server and in JSFiddle this not possible.

Would be great if you could check this one out.
36  General Category / EasyUI for jQuery / Datagrid in Window doesn't load properly on: January 22, 2018, 08:38:40 AM
I have a window with an Edatagrid in it. On window open, the Edatagrid gets loaded but shows only its pagination bar.

If I adjust the size of window by dragging its corner, the data in edatagrid gets displayed. Please find a demo of this problem here: http://jsfiddle.net/v7hporvw/1/

The problem exists in versions 1.5.3 & in 1.5.4

37  General Category / EasyUI for jQuery / Re: Performance issue while switching between tabs on: November 03, 2017, 07:19:36 AM
The patch works great! Thanks once again for the timely support!!
38  General Category / EasyUI for jQuery / Re: Performance issue while switching between tabs on: November 02, 2017, 02:50:45 AM
Thanks Stworthy for looking into the matter and for the patch. I will test the patch asap and feedback.
39  General Category / EasyUI for jQuery / Re: Performance issue while switching between tabs on: November 01, 2017, 01:32:41 AM
After analysing the source code of easyui, I found that the reason that causes a delay in switching tabs which contain 'n' number of tabs within, is due to 'unnecessary' calls to resize the panel.

In order to fix this performance issue, I made adjustments in the following two source-files of easyui:
- jquery.panel.js
- jquery.tabs.js

In jquery.panel.js I made the following two changes:

1. Adjusted setSize function to avoid unnecessary resize
2. Adjusted openPanel.cb function to avoid repeated call to loadData and doLayout if collapse is set to false

Code:

function setSize(target, param){
var state = $.data(target, 'panel');
var opts = state.options;
var panel = state.panel;
var pheader = panel.children('.panel-header');
var pbody = panel.children('.panel-body');
var pfooter = panel.children('.panel-footer');
// -------------------START: Code changed by Gordis GmbH--------------------- //
if(opts.prevWidth && param) {
// prevWidth exists. that means setSize is already called once for this panel. Now proceed only if any one of the params (width,height,minWidth etc.) has changed
if(opts.prevWidth == param.width
&& opts.prevHeight == param.height
&& opts.prevMinWidth == param.minWidth
&& opts.prevMaxWidth == param.maxWidth
&& opts.prevMinHeight == param.minHeight
&& opts.prevMaxHeight == param.maxHeight
&& opts.prevLeft == param.left
&& opts.prevTop == param.top) {
return;
}
}

if (param){
$.extend(opts, {
width: param.width,
height: param.height,
minWidth: param.minWidth,
maxWidth: param.maxWidth,
minHeight: param.minHeight,
maxHeight: param.maxHeight,
left: param.left,
top: param.top,
prevWidth: param.width,
prevHeight: param.height,
prevMinWidth: param.minWidth,
prevMaxWidth: param.maxWidth,
prevMinHeight: param.minHeight,
prevMaxHeight: param.maxHeight,
prevLeft: param.left,
prevTop: param.top,
});
}
// -------------------END: Code changed by Gordis GmbH--------------------- //
panel._size(opts);
pheader.add(pbody)._outerWidth(panel.width());
if (!isNaN(parseInt(opts.height))){
pbody._outerHeight(panel.height() - pheader._outerHeight() - pfooter._outerHeight());
} else {
pbody.css('height', '');
var min = $.parser.parseValue('minHeight', opts.minHeight, panel.parent());
var max = $.parser.parseValue('maxHeight', opts.maxHeight, panel.parent());
var distance = pheader._outerHeight() + pfooter._outerHeight() + panel._outerHeight() - panel.height();
pbody._size('minHeight', min ? (min - distance) : '');
pbody._size('maxHeight', max ? (max - distance) : '');
}
panel.css({
height: '',
minHeight: '',
maxHeight: '',
left: opts.left,
top: opts.top
});

opts.onResize.apply(target, [opts.width, opts.height]);

$(target).panel('doLayout');
// $(target).find('>div:visible,>form>div:visible').triggerHandler('_resize');
}



function openPanel(target, forceOpen){
var opts = $.data(target, 'panel').options;
var panel = $.data(target, 'panel').panel;

if (forceOpen != true){
if (opts.onBeforeOpen.call(target) == false) return;
}
panel.stop(true, true);
if ($.isFunction(opts.openAnimation)){
opts.openAnimation.call(target, cb);
} else {
switch(opts.openAnimation){
case 'slide':
panel.slideDown(opts.openDuration, cb);
break;
case 'fade':
panel.fadeIn(opts.openDuration, cb);
break;
case 'show':
panel.show(opts.openDuration, cb);
break;
default:
panel.show();
cb();
}
}

function cb(){
opts.closed = false;
opts.minimized = false;
var tool = panel.children('.panel-header').find('a.panel-tool-restore');
if (tool.length){
opts.maximized = true;
}
opts.onOpen.call(target);

if (opts.maximized == true) {
opts.maximized = false;
maximizePanel(target);
}
if (opts.collapsed == true) {
opts.collapsed = false;
collapsePanel(target);
}

// -------------------START: Code changed by Gordis GmbH--------------------- //
if (!opts.collapsed){
if(opts.loadDataDoLayoutDone == true) {
return;
}
loadData(target);
doLayout(target);
opts.loadDataDoLayoutDone = true;
}
// -------------------END: Code changed by Gordis GmbH--------------------- //
}
}

In jquery.tabs.js I adjusted the setSelectedSize function to avoid unnecessary calls to tabpanel-resize:

Code:
	/**
* set selected tab panel size
*/
function setSelectedSize(container){
var opts = $.data(container, 'tabs').options;
var tab = getSelectedTab(container);
if (tab){
var panels = $(container).children('div.tabs-panels');
var width = opts.width=='auto' ? 'auto' : panels.width();
var height = opts.height=='auto' ? 'auto' : panels.height();
// -------------------START: Code changed by Gordis GmbH--------------------- //
var tabPanelOpts = tab.panel('options');
if(tabPanelOpts.prevWidth) {
// prevWidth exists, now proceed with resize only if width or height has changed!
if(tabPanelOpts.prevWidth == width && tabPanelOpts.prevHeight == height)
return;
}

tab.panel('resize', {
width: width,
height: height
});
tabPanelOpts.prevWidth = width;
tabPanelOpts.prevHeight = height;
// -------------------END: Code changed by Gordis GmbH--------------------- //
}
}

We at Gordis are testing the code, looks good so far. The switching between tabs is enormously improved (especially in IE). The resize of panel/tabs does get triggered if there is a change in the size (for e.g. if i change the size of browser). Collapse /open of panel works as desired.

Questions @easyi-ui owners/experts:
1. Does the changes made above makes sense?
2. Are there any consequences which I haven't yet located?
3. If the changes made above makes sense, will they be adopted in the coming version or made available as a patch?

Please let me know.
40  General Category / EasyUI for jQuery / Re: Question about tabs - Performance problem on: October 24, 2017, 07:19:20 AM
Unfortunately this performance problem of switching between already loaded tabs persists even with easyui 1.5.x

Demo: http://jsfiddle.net/6NXjB/26/

Click on a few "Platform Instance" tabs and then try switching between tabs "My Platforms" and "My Apps" or between "Platform 1" and "Platform 2"

I posted the problem hier: https://www.jeasyui.com/forum/index.php?topic=6921.0

As you can see there are no dateboxes rendered in the tabs; only datagrid with pagination.

Any idea to speed up switching of tabs?
41  General Category / EasyUI for jQuery / Performance issue while switching between tabs on: October 02, 2017, 01:46:50 AM
I have few nested tabs with a datagrid in each of these lower tabs.
These datagrids are loaded lazily i.e. only then when tabs are selected and can have max 200 rows each. The no. columns in datagrid can vary between 5 and 10. After loading few datagrids, the switching between these tabs take upto 5 seconds. In Chrome its bit quicker, in IE (tested in version 11) it takes even longer.

The following fiddle demonstrates the issue: http://jsfiddle.net/6NXjB/26/

To see the problem:
Click on a few "Platform Instance" tabs and then try switching between tabs "My Platforms" and "My Apps" or between "Platform 1" and "Platform 2"

Why does it take that long?
Thanks for checking this one out!
42  General Category / EasyUI for jQuery / Datagrid loadData pagination bar gets lost on: August 02, 2017, 04:06:04 AM
In a customized datagrid pagination layout, the pagination-bar disappears on calling loadData as shown in the following fiddle:
http://jsfiddle.net/8maancy3/

Moreover, the displayMsg text is not shown when the pagination bar is customized.

Please help.


43  General Category / General Discussion / Re: Is jquery-easyui-1.5.2-patch already integrated into EasyUI 1.5.2? on: July 17, 2017, 06:45:12 AM
Thanks for the reply.

In this case, it would be nice to find the latest patch listed somewhere under downloads section... otherwise, anyone downloading the latest version wouldn't know about the patch.

An another improvement would be to notify atleast the "licensed users" about such patches. I hope that makes sense.
44  General Category / General Discussion / Is jquery-easyui-1.5.2-patch already integrated into EasyUI 1.5.2? on: July 14, 2017, 02:54:07 AM
Hi,

Yesterday after updating EasyUI to the version 1.5.2. I saw that there is a patch "jquery-easyui-1.5.2-patch".

Is this patch already integrated into EasyUI 1.5.2?

Thanks!
45  General Category / EasyUI for jQuery / Re: tree drop unexpected behaviour on: March 18, 2017, 04:14:02 AM
Can anybody please look into this?

One temporary work around to this problem would be  to deny the dragging of node 'S1':
http://jsfiddle.net/0hk1twng/141/

But this is not a fully acceptable solution because in this case the user may get the impression that 'S1' doesn't get dragged due to some unknown error.

One may come with an idea to use diffrent styles for draggable and non-draggable nodes but then the user has to learn / remember which style means what.



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