EasyUI Forum
April 25, 2024, 04:24:15 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
1  General Category / EasyUI for jQuery / Re: Does the Datagrid column filter input has to match exactly with cell data? on: January 03, 2024, 12:34:03 AM
Thanks Jarry,

You pointed me in the right direction!
I made a minor adjustment to split on both commas and spaces.
Code:
var vv = value.split(/[\s,]+/); // split on both commas and spaces

Cheers,
Jeroen
2  General Category / EasyUI for jQuery / Does the Datagrid column filter input has to match exactly with cell data? on: December 22, 2023, 03:39:49 AM
Hi,

I have a question about the Datagrid Filter Row extension.

In my datagrid I have 'Users' column in where each cell contains the abbreviation of one or more users, see attachment "column_data.png". In the filter input bar I want it to be possible to type multiple user-abbreviations separated by a comma or space, for example: "jvdv rza", also see attachment "filter_input.png". The idea is that only rows are shown that have at least a user "jvdv" or "rza", see attachment "desired_result.png".

The filtering is done remotely and the data returned is correct, but it does not appear in the datagrid, the grid becomes empty.
My guess is that the Filter extension compares and checks again the returned data with the filter input (textbox) and only shows the rows that exactly match with the text entered in the filter input bar.
Is my guess correct? Does the filter extension checks the returned data to match with the text entered in the filter input bar?
If so, how can I bypass that?

Many thanks in advance and best regards,
Jeroen
3  General Category / EasyUI for jQuery / Re: Filebox not part of serialize() method output on: February 24, 2023, 12:54:02 AM
Thank you Jarry, I can work with that.

Cheers
4  General Category / EasyUI for jQuery / Filebox not part of serialize() method output on: February 22, 2023, 12:22:17 AM
Hi,

I am using a filebox in my form. When I use the native javascript serialize() or serializeArray() method to retrieve all Form input field names and values, the filebox input is missing. Is this as intended or am I doing something wrong here?

Code:
        <form id="ff" method="post" > 
            <input class="easyui-textbox" name="first_name" style="width:200px;">
            <input class="easyui-filebox" name="document" style="width:200px;">
        </form>

        <script type="text/javascript">
            var fields = $('#ff').serialize();
            console.log(fields);  // output: first_name=&document=
    
            $(function() {
                var fields = $('#ff').serialize();
                console.log(fields);  // output: first_name=
            });
        </script>

5  General Category / EasyUI for jQuery / Re: Texteditor 'disable' and 'readonly' methods show the same behaviour on: February 10, 2023, 05:24:13 AM
Thanks Jarry, looks great!
6  General Category / EasyUI for jQuery / Texteditor 'disable' and 'readonly' methods show the same behaviour on: February 08, 2023, 12:43:08 AM
Hi,

According to the documentation of the Texteditor extension the 'disable' method will disable the texteditor component and the 'readonly' method enables or disable the readonly mode. However, both commands below show the same behaviour. Whether I use the 'readonly' method or 'disable' method or both, the text cannot be edit, but the texteditor buttons are not greyed-out and can still be clicked, see figure (though no command is executed, so that is good).
So I wonder, what is the difference between the two?

I would expect that with the 'disable' method the texteditor buttons would be greyed out and can't be clicked (comboboxes remain closed) like in the 2nd figure below.

Code:
$('#te').texteditor('readonly', true);
$('#te').texteditor('disable');


7  General Category / EasyUI for jQuery / Re: v1.10.13: Combogrid value is cleared on focus on: February 07, 2023, 12:10:31 PM
Thanks Jarry, it works well now.
8  General Category / EasyUI for jQuery / Re: v1.10.13: Combogrid value is cleared on focus on: February 07, 2023, 12:01:14 AM
Hi Jarry,

Thanks for your reply. When I select an item from the combogrid e.g. "Koi", it disappears again the moment I click on the arrow. This was not the case in previous versions.


9  General Category / EasyUI for jQuery / v1.10.13: Combogrid value is cleared on focus on: February 05, 2023, 01:18:21 PM
Hi,

In the latest version v1.10.13, the value in the ComboGrid inputfield is cleared/lost when I put focus on the inputfield, or click on it. Previous versions don't show this issue.

10  General Category / EasyUI for jQuery / Re: Form 'clear' method does not clear Texteditor content on: February 05, 2023, 01:08:57 PM
Thanks Jarry, it works well.
11  General Category / EasyUI for jQuery / Form 'clear' method does not clear Texteditor content on: January 29, 2023, 03:20:49 AM
Hi,

I am using a Texteditor in my form. When I clear the form using the 'clear' method it does not clear the texteditor content.
Of course there are other ways to do that, but it would be nice if the Form's 'clear' method can do that.

Code:
        <form id="ff" method="post">           
            <div class="easyui-texteditor" title="TextEditor" style="width:700px;height:300px;padding:20px">
                Some text...
            </div>       
        </form>

        <div style="text-align:center;padding:5px 0">
            <a href="javascript:void(0)" class="easyui-linkbutton" onclick="clearForm()" style="width:80px">Clear</a>
        </div>       
       
        <script>
            function clearForm(){
                $('#ff').form('clear');
            }
        </script>
12  General Category / EasyUI for jQuery / Re: How to prevent a modal drawer from closing? on: January 16, 2023, 08:40:51 AM
Works like a charm!

Many thanks!
13  General Category / EasyUI for jQuery / How to prevent a modal drawer from closing? on: January 13, 2023, 12:59:46 AM
Hi,

Is it possible to prevent the modal Drawer from closing and/or collapsing?
I tried the onBeforeClose and onBeforeCollapse events, but they do not seem to be available for the Drawer plugin. The code below does not prevent the drawer from closing/collapsing.

Any ideas?

Code:
    
$('#additional-info').drawer({
        title: '&nbsp;',
        closable:true,
        modal:true,
        onBeforeCollapse: function(){
            // Do some checks...
            return false;
        },
        onBeforeClose: function(){
            // Do some checks...
            return false;
        }
    });
14  General Category / EasyUI for jQuery / [SOLVED] Drawer 'closable' button not visible on: January 10, 2023, 01:36:25 AM
Thanks a lot Jarry, that works! Smiley
15  General Category / EasyUI for jQuery / Drawer 'closable' button not visible on: January 09, 2023, 02:15:12 PM
Hi,

I want to show the closable button of the Drawer plugin. When I set the closable property to true, the button is still not shown.
What am I doing wrong?

Code:
<div id="additional-info" class="easyui-drawer" data-options="closable:true,width:350" >
    <p style="text-align:center;margin:50px 0;font-size:16px">Content...</p>
</div>
Pages: [1] 2
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!