EasyUI Forum
May 01, 2024, 10:06:35 PM *
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 / Bug Report / getValue in maskedbox returns masked format on: August 17, 2022, 11:18:21 PM
Hello

When i use getValue Method, when maskedbox is empty, it return mask instead empty value.
Code:
$('input#start').maskedbox({ mask: '9999/99/99' })
...

var val = $('input#start').maskedbox('getValue');         // return ____/__/__

2  General Category / General Discussion / Re: Howto reRender tree with changed formatter? on: November 05, 2016, 10:56:13 PM
I think somebody can programming an extend for reRendering tree.
3  General Category / General Discussion / Howto reRender tree with changed formatter? on: November 03, 2016, 01:49:57 AM
Hello,

I dynamically changed my tree options like:
Code:
tree.tree("options").formatter = function(node) { return ... }

I want render tree (with new formatter) again without reloading data.
How to?
thanks
4  General Category / General Discussion / Combobox method to get record? on: September 14, 2016, 12:04:22 AM
Hello
I want to get record of selected item with method.
The record is a json object of item.
How? thanks
5  General Category / General Discussion / Howto set resizable window or panel dynamically? on: August 31, 2016, 11:38:47 PM
Hello,
Is where a method (or way) to enable or disable some properties like resizable/draggable on window or panel or dialog easyui?
thanks
6  General Category / General Discussion / Tree: update node state not work. on: August 22, 2016, 11:50:22 PM
Hi,
Why this code does not work?

Code:
$('#tt').tree('update', { target: node.target, state: 'closed' });

I want reload ajax a node in client. but node state is open and i want it be closed then use:
Code:
$('#tt').tree('reload', node.target);

7  General Category / General Discussion / Re: Parent of source argument OnDrop is null (tree) on: February 01, 2016, 09:20:03 PM
The onDrop event fires after a node is dropped. The source  node has been moved. You can not access it by .target property. To get the moved node, please call find method with the id value of the special node.

very thanks
8  General Category / General Discussion / Parent of source argument OnDrop is null (tree) on: February 01, 2016, 02:38:28 AM
Hello, my code is:
Code:
onDrop: function (target, source, point) {
    var parent = $(this).tree('getParent', source.target);
    // parent become null

Why parent become null?
thanks
9  General Category / General Discussion / Why tree has not "destroy" method? on: January 22, 2016, 11:24:55 PM
Hello,
How to destroy tree easyui?
thanks
10  General Category / EasyUI for jQuery / Dialog close vs dialog destroy method? on: August 23, 2015, 10:00:58 PM
Hello,
What is difference between close and destroy?
please describe what elements or data be removed in close and in destroy?
thanks
11  General Category / General Discussion / Complete tree keyboard navigation on: August 23, 2015, 04:42:15 AM
Hello,
Use and reply. I think it has not bug.
Improved:
Code:
$.extend($.fn.tree.methods, {
    nav: function (jq, dir) {
        return jq.each(function () {
            var nodes = $(this).tree('getChildren');
            if (!nodes.length) return;
            var node = $(this).tree('getSelected');
            if (!node) { $(this).tree('select', dir == 'down' ? nodes[0].target : nodes[nodes.length - 1].target); }
            else {
                if (dir == 'left') {
                    if (!$(this).tree('isLeaf', node.target) && node.state == "open") $(this).tree('collapse', node.target);
                    else {
                        var parent = $(this).tree('getParent', node.target);
                        if (parent) $(this).tree('select', parent.target);
                    }
                } else if (dir == 'right') {
                    if (!$(this).tree('isLeaf', node.target)) $(this).tree('expand', node.target);
                } else {
                    var index = 0;
                    for (var i = 0; i < nodes.length; i++) if (nodes[i].target == node.target) { index = i; break; }
                    if (dir == 'down') { if (index == nodes.length - 1) index = 0; else while (index < nodes.length - 1) { index++; if ($(nodes[index].target).is(':visible')) break; } }
                    else if (dir == 'up') { if (index == 0) index = nodes.length - 1; else while (index > 0) { index--; if ($(nodes[index].target).is(':visible')) break; } }
                    if ($(nodes[index].target).is(':visible')) $(this).tree('select', nodes[index].target);
                }
            }
        });
    }
});

and call nav:
Code:
tree.attr('tabindex', 1).bind('keydown', function (e) {
        var selected = tree.tree('getSelected');
        switch (e.keyCode) {
            case 13: // Enter
                if (selected) $(selected.target).trigger('click');
                break;
            case 38: // up
                tree.tree('nav', 'up');
                break;
            case 40: // down
                $(this).tree('nav', 'down');
                break;
            case 37: // right
                $(this).tree('nav', 'right');
                break;
            case 39: // left
                $(this).tree('nav', 'left');
                break;
        }
});

thanks from msg4344
12  General Category / EasyUI for jQuery / tree and hide/show checkbox on: August 05, 2015, 10:19:11 PM
Hello

When I use:
Code:
$('#tree').tree({ checkbox: true });
Or
Code:
$('#tree').tree({ checkbox: false});
my tree rebinds its data and request data from my server second time.

Why tree has not showCheckbox or hideCheckbox methods?
13  General Category / Bug Report / Re: a bug occurred when closing messager on: May 26, 2015, 09:55:19 PM
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!