EasyUI Forum
March 29, 2024, 08:40:06 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: 1 [2] 3 4 ... 10
 11 
 on: February 19, 2024, 05:55:02 AM 
Started by jega - Last post by jega
Hi.

Having som trouble with the datalist

I have a dialog with a datalist which is loaded with 130 rows. On open list i check the rows that i need. First time it's 36 rows checked. Closing dialog and open again with 46 different rows checked.

If i only open list with first 36 checked and using var rows = $('#dtList').datalist('getChecked'), rows.length is 36.
When open dialog 2nd time and there is 46 rows checked, rows.length is 82.

Why can this happen, when i only see the 36 or 46 rows checked Huh

Jesper


 12 
 on: February 19, 2024, 12:11:46 AM 
Started by shivavalkyre - Last post by Wojak
Maybe you can use the example from datebox, because dateboxtime extend from datebox

Code:
var buttons = $.extend([], $.fn.datebox.defaults.buttons);
buttons.splice(1, 0, {
text: 'MyBtn',
handler: function(target){
alert('click MyBtn');
}
});
$('#dd').datebox({
buttons: buttons
});

 13 
 on: February 18, 2024, 08:30:00 AM 
Started by shivavalkyre - Last post by shivavalkyre
how to detect OK button clicked at datetimebox

thanks

 14 
 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,
    });

 15 
 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

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

 17 
 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.

 18 
 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.

 19 
 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 ?


 20 
 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;

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