EasyUI Forum
June 16, 2025, 09:37:20 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: How to hide row in treegrid on: October 31, 2019, 05:36:23 AM
thank you very much Cheesy
2  General Category / EasyUI for jQuery / [SOLVED]How to hide row in treegrid on: October 29, 2019, 01:01:32 AM
tree:
Code:
$('#tt').tree('getChildren').forEach(x => {
    var n = $(x.target);
    if (x.text.match('A'))
        n.hide();
    else
        n.show();
});

treegrid:

$('#tg').treegrid('getChildren').forEach(x => {
    var n = Huh Huh
    if (x.text.match('A'))
        n.hide();
    else
        n.show();
});
3  General Category / EasyUI for jQuery / Re: How can I get field with datagrid onRowContextMenu on: June 27, 2019, 10:45:43 PM
Thank you very much Mr. stworthy.

Please try this code to get the field name.
Code:
onRowContextMenu: function(e){
var td = $(e.target).closest('td[field]');
var field = td.attr('field');
console.log(field)
}
4  General Category / EasyUI for jQuery / [SOLVED]How can I get field with datagrid onRowContextMenu on: June 26, 2019, 04:48:52 PM
How can I get field with datagrid onRowContextMenu(e, index, row)
thanks
5  General Category / EasyUI for jQuery / Re: textbox editable property on: June 26, 2019, 04:44:47 PM
i use "readonly" ad style Cheesy
6  General Category / EasyUI for jQuery / Re: SwitchButton keyboard events on: June 13, 2019, 04:50:47 AM
Thanks for quick reply.

Works great.
7  General Category / EasyUI for jQuery / [SOLVED]SwitchButton keyboard events on: June 12, 2019, 04:16:45 PM
I don't want switchbutton send onChange event by keyboard(Enter button), any one can solve it?
Here is my code:
Code:
   var sb = $('#sb')
    sb.next().attr('tabindex',1).bind('keyup',function(e){
   if (e.keyCode == 13){
                 e.preventDefault();
   }
    });
Thanks
8  General Category / EasyUI for jQuery / Re: treegrid keyboard navigation on: June 02, 2019, 06:34:13 PM
Code:
$.extend($.fn.treegrid.methods, {
    nav: function (jq) {
        return jq.each(function () {
            var t = $(this), o = t.treegrid('options'), a, l;
            var toArr = function (d) {
                $.each(d, function (i, x) {
                    a.push(x.id);
                    if (x.children) toArr(x.children);
                });
            }
            var skip = function (c, m) {
                var i = c + m;
                i = (i < 0) ? 0 : ((i > l) ? l : i);
                if (!isV(i))
                    skip(i, (i == l) ? -m : m);
                else
                    t.treegrid('select', a[i]);
            }
            var isV = function (x) {
                var c = t.treegrid("options").finder.getTr(t[0], a[x]);
                return $(c).is(':visible');
            }
            if (!o.hasSetEvents) {
                o.hasSetEvents = true;
                var u = o.onLoadSuccess;
                o.onLoadSuccess = function (row, data) {
                    a = [];
                    toArr(data);
                    l = a.length - 1;
                    u.call(this);
                };
            }
            t.treegrid('getPanel').panel('panel').attr('tabindex', 1).bind('keydown', function (e) {
                var k = e.keyCode;
                if (k == 38 || k == 40) {
                    var s = t.treegrid('getSelected');
                    var c = (s) ? $.inArray(s.id, a) : 0;
                    skip(c, (k == 38) ? -1 : 1);
                }
            });
        });
    }
});
9  General Category / EasyUI for jQuery / Re: How can I set checkbox and radiobutton readonly? on: May 08, 2019, 07:19:16 PM
Please set the 'readonly' property. Make sure to download the newest version from the site.

Thank you!
Now all is working properly!
10  General Category / EasyUI for jQuery / Re: How can I set checkbox and radiobutton readonly? on: May 08, 2019, 07:18:30 PM
Thank you very much.
11  General Category / EasyUI for jQuery / Re: How can I set checkbox and radiobutton readonly? on: May 07, 2019, 07:25:29 AM
Try this
This will  work for both checkbox and radiobutton.
Code:
<input type="checkbox" onclick="return false;"/>
/code]

thanks, but it is easyui-checkbox and easyui-radiobutton
12  General Category / EasyUI for jQuery / [SOLVED]How can I set checkbox and radiobutton readonly? on: May 07, 2019, 05:16:37 AM
How can I set checkbox and radiobutton readonly? Thanks.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!