EasyUI Forum
April 18, 2024, 07:59:34 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: 1 2 [3] 4 5 ... 10
 21 
 on: February 17, 2024, 03:45:44 PM 
Started by Wojak - Last post by Wojak
I found a problem, when I use the "loadData" function in the datagrid then the width of the columns disappears and it makes the minimum width for the columns. I don't know if there is something wrong in the datagrid code because I don't see anything incorrect. A quick fix I found as .datagrid()

Code:
$('#dg').datagrid('clearSelections').datagrid('loadData', { total: 0, rows: [] });

$('#dg').datagrid('clearSelections').datagrid('loadData', { total: 0, rows: [] }).datagrid();

Code:
$('#dg').datagrid({
        columns: [[
            { field: 'nazwa', title: 'Nazwa', width: '160px', halign: 'center' },
            { field: 'opis', title: 'Opis', width: '160px', halign: 'center' },
            { field: 'typ', title: 'Typ', width: '160px', halign: 'center',
                styler: function (value, row, index) {
                    if (!row.idProdukt > 0) {
                        return 'background:#FFC300;';
                    }
                }
            },
            { field: 'nrKatalogowy', title: 'Nr katalogowy', width: '160px', halign: 'center' },
            { field: 'producent', title: 'Producent', width: '120px', halign: 'center',
                styler: function (value, row, index) {
                    if (!row.idProducent > 0) {
                        return 'background:#FFC300;';
                    }
                }
            },
            { field: 'ilosc', title: 'Ilość', width: '50px', halign: 'center', align: 'right' },
            { field: 'jm', title: 'J.m.', width: '50px', halign: 'center',
                styler: function (value, row, index) {
                    if (!row.idJm > 0) {
                        return 'background:#FFC300;';
                    }
                }
            },
            { field: 'cena', title: 'Cena', width: '80px', halign: 'center' },
            { field: 'rabat', title: 'Rabat', width: '50px', halign: 'center', align: 'right',
                formatter: function (value, row, index) {
                    return (value || 0) + '%';
                }
            },
            { field: 'wartosc', title: 'Wartość', width: '80px', halign: 'center' },
            { field: 'waluta', title: 'Waluta', width: '60px', halign: 'center',
                styler: function (value, row, index) {
                    if (!row.idWaluta > 0) {
                        return 'background:#FFC300;';
                    }
                }
            },
        ]],
        idField: 'id',
        rownumbers: true,
        singleSelect: true,
    });

 22 
 on: February 16, 2024, 06:09:39 AM 
Started by Wojak - Last post by Wojak
Example of shadow showing while unfolding and closing this window at the same time

 23 
 on: February 16, 2024, 05:40:42 AM 
Started by Wojak - Last post by Wojak
Thanks for the quick code improvements for everyone Grin

 24 
 on: February 12, 2024, 06:35:04 AM 
Started by fonzie - Last post by jarry
The 'getValue' method returns the real value displaying on the editor. Please download the latest version from https://www.jeasyui.com/extension/texteditor.php.

 25 
 on: February 12, 2024, 06:33:27 AM 
Started by Wojak - Last post by jarry
This issue has been solved. Please download the latest version from https://www.jeasyui.com/extension/datagrid_filter.php.

 26 
 on: February 10, 2024, 12:00:50 AM 
Started by fonzie - Last post by fonzie
I want an autosave feature with the text editor, but when i use the "getValue" method, it doesn't always reflect what is displayed on the (text editor) page.

I'm only using getValue when either the space bar or enter key is pressed, but quite often the data I'm then saving to a database is words or lines old.

Can anyone help / advise ?


 27 
 on: February 08, 2024, 10:50:02 AM 
Started by Wojak - Last post by Wojak
Can another parameter be added to the "myLoadFilter" function in the "datagrid-filter.js" file without breaking other functions? Because I noticed that when filtering, if I had custom params before, it does not show up in the "onLoadSuccess" function in the datagrid during filtering. I used this option because when downloading data to the datagrid, I could also send other parameters to the inputs at the same time.

Something like this. It starts at 666 line in file.
Code:
data = opts.filterMatcher.call(target, {
total: state.filterSource.total,
rows: state.filterSource.rows,
footer: state.filterSource.footer||[]
});
data.params = data.params; // Here new line of code
data.filterRows = data.rows;

 28 
 on: February 06, 2024, 01:44:24 AM 
Started by Spike - Last post by Spike

Hi Jarry,

Required is working fine.

Is it possible that required is still ACTIVE till whole maskedit is complete?

Now required is already okay after one character. And not fulfill the whole mask.

Thanx in advance

Hans Spike

 29 
 on: February 05, 2024, 06:42:30 AM 
Started by Spike - Last post by Spike
Up and running! thanx

 30 
 on: February 05, 2024, 06:26:51 AM 
Started by Spike - Last post by Spike
Thanx Jarry!

I will give it a try !

Pages: 1 2 [3] 4 5 ... 10
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!