EasyUI Forum
May 11, 2024, 12:40:02 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 / General Discussion / Re: sort demos! on: April 19, 2017, 06:10:21 AM
Great, thanks, that was quick!

Just out of curiosity, wouldn't you want to directly sort it by default?
2  General Category / General Discussion / sort demos! on: April 18, 2017, 12:56:11 PM
Hi,

this sounds like a detail but it would really be helpful if the widgets (in the demos) would be sorted by name, or categorized somehow ...I keep hitting Ctrl-F just to find out where to click  Roll Eyes
3  General Category / EasyUI for jQuery / Re: tree drag drop + keyboard navigation on: February 22, 2017, 12:21:51 AM
Thanks Jarry,

the focus did the trick. I had to place it in the onClick of the tree though, since it would get lost once you click elsewhere.


Code:
onClick: function(e) {
$(this).focus();
}
4  General Category / EasyUI for jQuery / [Solved] tree drag drop + keyboard navigation on: February 21, 2017, 03:50:40 AM
Hi,

I successfully added keyboard navigation on a tree using a slight variation of the code snippet found here:
http://www.jeasyui.com/forum/index.php?topic=5167.0

The way you listen to keyboard events on a tree was:

Code:
mytree.attr('tabindex', 1).bind('keydown', function (e) {...});

This worked fine ...until DND was enabled on the tree. Afterwards, the event handler isn't even called. Does anyone know how to do it properly?

I also got exactly the same problem with the datagrid. Without DND key events work fine, once enabled it doesn't trigger anymore. ...it would be really nice if there was a proper way to add key bindings.
5  General Category / General Discussion / Re: Complete tree keyboard navigation on: February 21, 2017, 03:49:44 AM
Please note that the left/right keycodes were inverted. It should be:
Code:
            case 39: // right
                $(this).tree('nav', 'right');
                break;
            case 37: // left
                $(this).tree('nav', 'left');
                break;
6  General Category / Bug Report / small CSS fix on: February 20, 2017, 05:28:00 AM
Hi,

here is a small enhancement for the "mobile.css" theme.
Since the nodes have a greater height in mobile, the input box when editing it was on top rather than centered, which looks odd. Here's a "basic" fix.

Code:
/* editted tree node: input centered */
.tree-editor {
top: 5px;
}
7  General Category / Bug Report / Re: remoteSort:false combined with a loadFilter is buggy on: February 12, 2017, 04:25:10 PM
Here is a modified example of your multisort. As you can see, each sorting will provoke a doubling of the "unit cost".
It's quite an artificial example, since "loadFilter" is usually used to transom some data in easyui's format. However, re-calling it on each sort is simply a bug. Just wanna be helpful here.

Code:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Multiple Sorting - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="../demo.css">
<script type="text/javascript" src="../../jquery.min.js"></script>
<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
</head>
<body>
<h2>Multiple Sorting</h2>
<p>Set 'multiSort' property to true to enable multiple column sorting.</p>
<div style="margin:20px 0;"></div>

<table id="dg">
<thead>
<tr>
<th data-options="field:'itemid',width:80,sortable:true">Item ID</th>
<th data-options="field:'productid',width:100,sortable:true">Product</th>
<th data-options="field:'listprice',width:80,align:'right',sortable:true">List Price</th>
<th data-options="field:'unitcost',width:80,align:'right',sortable:true">Unit Cost</th>
<th data-options="field:'attr1',width:250">Attribute</th>
<th data-options="field:'status',width:60,align:'center'">Status</th>
</tr>
</thead>
</table>
<script>
function twice(data) {
for(var i=0;i<data.rows.length;i++) {
data.rows[i]['unitcost'] *= 2;
}
return data;
}

$("#dg").datagrid({
url:'datagrid_data1.json',
method:'get',
loadFilter: twice,
remoteSort:false
});
</script>
</body>
</html>

8  General Category / Bug Report / remoteSort:false combined with a loadFilter is buggy on: February 12, 2017, 02:45:42 PM
Hi,

basically, client side sorting re-applies the loadFilter each time on the already transformed data (usually leading to exceptions or broken data). The workaround is pretty simple, since checking for a flag in the data is sufficient.
Perhaps fixing this bug would be relatively simple too ...perhaps.
9  General Category / General Discussion / unpolished diamond on: February 02, 2017, 09:55:15 AM
Hi Staff,

I think easyui is really a great lib. There is really a lot of neat stuff inside.  Grin

However, how it's presented is a bit lacking and leaves a poor impression. Here are relatively simple changes IMHO that may drastically improve how easyui is perceived (hence sell better too).

1. The screenshots on the front page are simply ugly and outdated. For some people it may already be reason to leave.

2. You mobile theme looks good! Dunno if it works for every widget, but my first impression was that it did and looks much better on desktop too. Make it the default! (and the one without it would be called "condensed"). The mobile theme looks better and is more trendy. Using it in the examples, screenshots, theme roller would be great!

3. In the free license, add a tiny link "powered by jeasyui.com" popping up in the corner of the page when the script loads.

4. Split you commercial license into 2 groups:
- pro: 1 dev, 1 site, community support, 200$
- enterprise: 5 devs, unlimited sites, dedicated support, source, 800$ or so
...small developers may be more inclined to spend the small license and companies will without fuss pay for the bigger license.

5. Provide a x% promotion if they provide you a testinomial so that you can showcase who is using it.

6. Categorize your demos in: layout / form / data / misc, and sort them alphabetically. Ideally with a small icon instead of the gears.

7. Feature wise, I'd say key navigation is on the top spot. There are several examples in the forum, but it's really a pity it's not enabled by default.

...my 2 cents. Besides of this, good work guys!



 
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!