EasyUI Forum
January 29, 2023, 12:15:51 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 / General Discussion / EasyUI Builder on: January 28, 2023, 02:38:13 AM
Hi,
Is there any app like EasyUI Builder to create components, something like Kendo UI Builder?
2  General Category / EasyUI for jQuery / Re: Datagrid editor combobox after updateRow on: November 02, 2022, 12:40:51 AM
Thanks for helping, i changed it as follow
Code:
$('#example-combobox').combobox({
        onChange: function(newValue, oldValue) {
            const dg = $('#example-dg');
            const comboText = $(this).combobox('getText');
            if (newValue != '' && !isNaN(newValue)) {
                const rows = dg.datagrid('getRows');
                $.each(rows, function (i, e) {
                    e.waluta = parseInt(newValue);
                    e.nazwa_waluta = comboText;
                    dg.datagrid('updateRow', { index: i, row: e });
                    dg.datagrid('refreshRow', i);
                });
            }
        }
    });

Because i need that 'waluta' value too
3  General Category / EasyUI for jQuery / Datagrid editor combobox after updateRow on: October 28, 2022, 07:28:01 AM
Hi
I have a problem with datagrid while using updateRow, the example below is my datagrid that im using
Code:
$('#example-dg').datagrid({
        columns: [[
            { field: 'waluta', title: 'Waluta', width: '80px', align: 'center', editor: { type: 'combobox', options: { textField: 'nazwa_waluta', valueField: 'waluta', url: 'link/to/query.php' } }, formatter: function (value, row, index) {
                return row.nazwa_waluta;
            }},
        ]],
        rownumbers: 'true',
        showFooter: 'true',
        singleSelect: 'true',
        idField: 'id',
        onEndEdit: function (index, row) {
            const ed = $(this).datagrid('getEditor', {
                index: index,
                field: 'waluta'
            });
            row.nazwa_waluta = $(ed.target).combobox('getText');
    });

and this is the combobox with other onchange that im using to massUpdate the field "waluta"

Code:
$('#example-combobox').combobox({
        onChange: function(newValue, oldValue) {
            const dg = $('#example-dg');
            if (newValue != '' && !isNaN(newValue)) {
                const rows = dg.datagrid('getRows');
                $.each(rows, function (i, e) {
                    e.waluta = parseInt(newValue);
                    dg.datagrid('updateRow', { index: i, row: e });
                });
            }
        }
    });

If i change the value in "$('#example-combobox')", datagrid is not refreshing with new data but if i beginEdit the new data is shown in combobox
4  General Category / Bug Report / Re: Window after collapse on: October 17, 2022, 06:21:08 AM
Fixed
5  General Category / Bug Report / Re: Window after collapse on: October 14, 2022, 01:42:00 AM
I keep getting the same error after using the code you provided
6  General Category / Bug Report / Re: Window after collapse on: October 13, 2022, 11:32:14 PM
Code:
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Error window</title>
    <link rel="stylesheet" type="text/css" href="assets/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="assets/themes/icon.css">
    <script type="text/javascript" src="assets/jquery.min.js"></script>
    <script type="text/javascript" src="assets/jquery.easyui.min.js"></script>
</head>
<body>
    <div id="test-window-1" class="easyui-window" title="NORMAL" style="padding:0px;"></div>
    <div id="test-window-2" class="easyui-window" title="BUG" style="padding:0px;"></div>
    <div id="test-window-3" class="easyui-window" title="BUG" style="padding:0px;"></div>
   
    <script>
        $('.easyui-window').window({
            collapsible: true,
            minimizable: false,
            maximizable: false,
            closable: true,
            closed: true
        });

        $(function() {
            // Works fine
            $('#test-window-1').window({ height: '200px', width: '200px' });
            $('#test-window-1').window('vcenter');
            $('#test-window-1').window('open');

            // Bugged but after resize by user is working correctly
            $('#test-window-2').window({ height: '200px', width: '200px' });
            $('#test-window-2').window({ title: 'BUGGED' });
            $('#test-window-2').window('vcenter');
            $('#test-window-2').window('open');

            // Works fine with changed title
            $('#test-window-3').window({ title: 'NOT BUGGED' });
            $('#test-window-3').window({ height: '200px', width: '200px' });
            $('#test-window-3').window('vcenter');
            $('#test-window-3').window('open');
        });
    </script>
</body>
</html>
7  General Category / Bug Report / Window after collapse on: October 13, 2022, 02:25:23 AM
Hi,
I am struggling with the problem that when I want to collapse a window, the background of the window remains, but the content collapses

Best regards
8  General Category / EasyUI for jQuery / Re: Messager progress not showing up on: October 12, 2022, 03:34:06 AM
Ok, but after some investigation I found that after declaring this messager I use
Code:
$.ajaxSetup({ async: false });
and some computers with the same browser show this progress and some don't
9  General Category / EasyUI for jQuery / Messager progress not showing up on: October 11, 2022, 11:16:49 PM
Hi,
When there is a window open, the messager won't show up, as if it was behind that window or it wasn't showing at all.
10  General Category / EasyUI for jQuery / Windows scale option problem on: September 29, 2022, 10:51:14 PM
Hi
Recently, I have encountered a problem when the client has changed the scale options in the system settings from 100% to 125% very ringing, e.g. such a datagrid deviates to the right. An example in attachment

Edit:
Im using
Code:
<div class="datagrid-btn-separator"></div>
to make buttons into groups and the problem is gone when i remove them but still something is not working correctly  Smiley
I have tried to use this example https://www.jeasyui.com/forum/index.php?topic=2826.0 but the stack up at the end of toolbar

Best regards
11  General Category / EasyUI for jQuery / Datagrid hidden columns on: July 29, 2022, 11:28:06 AM
Hi,
Is there a way to check which columns are hidden ?

Regards Grin
12  General Category / EasyUI for jQuery / Datagrid Filter does not work properly when retrieving data from a datagrid on: July 17, 2022, 11:13:46 PM
Hi,
I have a problem retrieving data from a datagrid if the filter is enabled because it does not show all the rows that are in the datagrid but the ones that are currently shown on the screen. I searched but found no workaround for this problem. Maybe someone here will have an answer?

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