EasyUI Forum
May 02, 2024, 07:36:22 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
1  General Category / EasyUI for jQuery / Re: [SOLVED] dynamically change option 'required' on: May 29, 2019, 05:40:34 AM
Who wants to use required dynamically it's better to use combobox methods extensension.
Code:
Object.assign($.fn.combobox.methods, {
        require: function(jq, value) {
            return jq.each(function() {
                const $combobox = $(this);

                value = value === undefined ? true : Boolean(value);

                $combobox.combobox('options').required = value;
                $combobox.combobox('textbox').validatebox('options').required = value;
                $combobox.combobox('validate');
            });
        },
    });
2  General Category / EasyUI for jQuery / Combobox self cleaning on: April 19, 2018, 06:08:54 AM
I have combobox with onChange method. In some case I need to check user input value and if it wrong (in my algorithm) call combobox('clear'). But when I call this in onChange method EasyUI call onSelect method with putting user input value again.
How can I clean combobox value from onChange method?
3  General Category / EasyUI for jQuery / Re: Menubutton in datagrid toolbar on: February 04, 2018, 12:15:52 AM
I found decision but it take little source code update.
In datagrid toolbar we can use #id or array of linkbutton configs, but if add linkbutton element (or his childs) it takes little change in build grid method source code.

In the toolbar create part (for->else) add checking
Code:
$.isPlainObject(btn)
for detect it just conf or element, and if it element do
Code:
element.appendTo(td)
In my case it work stable.

If it possible please include this feature in next patch/release.
4  General Category / EasyUI for jQuery / Re: Menubutton in datagrid toolbar on: February 03, 2018, 01:07:23 AM
Thank you!
But it not work for me. I use toolbar like array (in datagrid object config) and in your example menubutton added to already exist toolbar.
5  General Category / EasyUI for jQuery / Menubutton in datagrid toolbar on: February 02, 2018, 06:34:46 AM
Hello!
I need menubutton (multi add actions) in my datagrid toolbar.
I tryed to find decision in source but my effort was fail.
Please explain, how to programmaticaly! create menubutton in datagrid toolbar. I already have few linkbuttons in toolbar.
Thank you!
6  General Category / EasyUI for jQuery / Re: MultiSort with ctrl+click on: September 26, 2017, 01:12:35 AM
It is work fine.
Thank you!
7  General Category / EasyUI for jQuery / MultiSort with ctrl+click on: September 25, 2017, 12:42:35 AM
Hello!
I need multisort with ctrl+click on fields headers. Now, if I click one second/third/etc field header it is become multisort, but I need this behaviour only when ctrl+click. onHeaderContextMenu works only on RBC, I didn`t find method for LBC.
I need your help.
Thank you!
8  General Category / EasyUI for jQuery / Re: Need help with droppable on: August 09, 2017, 07:10:04 AM
Thanks for help!
I think the main reason of stable work is
Code:
data:$.extend(true,{},data),
9  General Category / EasyUI for jQuery / Re: Need help with droppable on: August 08, 2017, 05:38:01 AM
Thank you!
It's fix some errors but stay unstable.
Some rows can be losted when d-n-d (return to source datagrid or disappear)
10  General Category / EasyUI for jQuery / Re: Need help with droppable on: August 05, 2017, 02:27:09 AM
I try this one http://www.jeasyui.com/forum/index.php?topic=5686.0
It's work fine when use 2 datagrids vertically, but in horizontal layout it catch error:

Code:
Uncaught TypeError: Cannot read property 'options' of undefined
    at _39 (jquery.easyui.min.js:389)
    at HTMLDocument._49 (jquery.easyui.min.js:483)
    at HTMLDocument.dispatch (jquery-1.11.3.min.js:4)
    at HTMLDocument.r.handle (jquery-1.11.3.min.js:4)

Bug with layer detection.
11  General Category / EasyUI for jQuery / Re: Need help with droppable on: August 03, 2017, 11:40:20 PM
More capture
12  General Category / EasyUI for jQuery / Need help with droppable on: August 03, 2017, 10:31:30 PM
I use datagrid in center & east layout region. It's look like Far or TC. When I try to drag-&-drop one line on another line I have got unstable result.
For example:
1) if source line and destination line in center region it's ok;
2) if source line in east region and destination line in center region it's ok;
3) if source line and destination line in east region it's error every time, show that destination in center region, but it's in east;
4) if source line in center region and destination line in east region it's unstable behaviour, sometimes show center, sometimes east.

It's look like wrong destination detection.
P.S. I don't use any z-index values.
13  General Category / EasyUI for jQuery / Re: Add combobox or searchbox programmaticaly in toolbar on: June 18, 2017, 08:54:26 AM
I know this variant, thank you. But I need to create it's programmatically like
toolbar: [
    button1,
    button2,
    button3,
    'delimeter',
    combobox1,
    searchbox
]
14  General Category / EasyUI for jQuery / Re: Add combobox or searchbox programmaticaly in toolbar on: June 16, 2017, 05:27:52 AM
Ok, thank you! And one more, please.
I want buttons in left part of toolbar and searchbox & combobox in right part.
Is it possible?
15  General Category / EasyUI for jQuery / Add combobox or searchbox programmaticaly in toolbar on: June 15, 2017, 03:39:39 AM
Hello!
Is it possible to add combobox or searchbox programmaticaly in toolbar like in example?
http://www.jeasyui.com/demo/main/index.php?plugin=DataGrid&theme=default&dir=ltr&pitem=DataGrid%20Complex%20Toolbar
Thank you!
Pages: [1] 2 3 4
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!