EasyUI Forum
October 16, 2025, 02:27:39 AM *
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 ... 5
1  General Category / EasyUI for jQuery / datagrid and toolbar on: August 07, 2023, 02:58:22 AM
I have an accodion object with ten datagrids, each datagrid has a toolbar with two buttons.
i would like to use only one toolbar for all datagrids, so i don't want to give an "id" to these buttons.
how can i programmaticaly change iconCls of a button when an external event occurs if i don't know id of button but i know id of his datagrid.
Same question in handler of the button, i need to know id of his datagrid.

2  General Category / EasyUI for jQuery / Re: Datagrid problem with columns header width and rows width when fitcolumns=true on: September 29, 2015, 01:35:43 AM
It's very hard for me to show an example but the result is like this:

N°|Name
2345|Fabrice  |
12   |Jarry     |

As you can see, it is as if the autofit option applied to the column headers and the content of the grid independently.
3  General Category / EasyUI for jQuery / Panel tool button with text on: September 28, 2015, 07:40:27 AM
How can i add text to panel tool button ?
I try this but does not work :
Code:
tools: [{
    iconCls: 'icon-add',
    text: 'Add',
    handler: function () {
        alert('add');
    }
}, {
    iconCls: 'icon-remove',
    text: 'Remove',
    handler: function () { alert('remove') }
}]
4  General Category / EasyUI for jQuery / Re: datagrid, filter row and combobox on: September 18, 2015, 06:22:03 AM
Perfect, thx!
5  General Category / EasyUI for jQuery / datagrid, filter row and combobox on: September 17, 2015, 08:34:42 AM
I write this function to fill a combobox with datagrid content in OnLoadSuccess() event :
Code:
var rows = $(dd).datagrid('getData');
        $.each(filters, function (num_filter, filter) {
            if (filter.type == 'combobox') {
                var menu = [{ value: '', text: 'All' }];
                var found;
                $.each(rows.rows, function (num_data, row) {
                    found = false;
                    $.each(menu, function (num_menu, item_menu) {
                        if (item_menu.text == row[filter.field]) {
                            found = true;
                            return false;
                        }
                    });
                    if (found == false) {
                        menu.push({ value: row[filter.field], text: row[filter.field] });
                    }
                });
                var cc = $(dd).datagrid('getFilterComponent',filter.field);
                if (cc != undefined) {
                    cc.combobox('loadData', menu);
                }
            }
        });
My problem is the getData method return filtered datas, then the first time i open combobox all is right, but the second time (after filering) only 'All' and my selection appears in the combobox!
is-it possible to get all datas (filtered and not filtered) to correctly fill my combobox?

6  General Category / EasyUI for jQuery / Re: Propertgrid and multilines textarea on: September 17, 2015, 06:36:47 AM
That's perfect.

As i want the same thing in a datagrid, i have added :
Code:
.datagrid-cell {
    height: auto;
}

in my css, is-it the best solution?
7  General Category / EasyUI for jQuery / Re: Propertgrid and multilines textarea on: September 17, 2015, 12:39:56 AM
Any idea?
8  General Category / EasyUI for jQuery / Re: datagrid filterrow and combobox on: September 17, 2015, 12:39:17 AM
Any idea?
9  General Category / EasyUI for jQuery / Re: Propertgrid and multilines textarea on: September 14, 2015, 01:39:36 AM
I would like a multilines textarea in the propertygrid, not only in the editor.
I have extended the textarea type to show multilines when editing and to catch <enter> key to go to the line when pressed. It's works fine but when i validate the field, the text entered appears in only one row in the property grid.

10  General Category / EasyUI for jQuery / Re: datagrid filterrow and combobox on: September 14, 2015, 01:05:31 AM
Sorry for my bad explication!

in a datagrid, when i use enableFilter to display filterrow, i want that in the filtercell for each columns a combobox filled with all distincts elements found on all the datas for this column, a checkbox displayed before each item of the combobox, a "Ok" button and a "Cancel" button.
In my previous example, if i open the second combobox in the filterrow, i must see : "Select All", "Smith" and "John", if i check "Smith" and click "Ok", only rows with "Smith" in there field "name" must appears.
And i want that the content of the combobox to be refreshed when i call "loaddata" method of the datagrid.

It's look like option "Datas/Filter" in Microsoft Excel.

11  General Category / EasyUI for jQuery / datagrid filterrow and combobox on: September 09, 2015, 06:25:14 AM
Is-it possible to dynamicaly fill a combobox in a filterrow with the content of the datagrid like Excel each time i load datas?

for example, i have 4 rows :
Number, name
1          Smith
2          John
3          Smith
4          John
In the filter row i want for the first column (1, 2, 3, 4 with checkboxes if possible) and for the second column (All, Smith, John with checkboxes if possible).
12  General Category / EasyUI for jQuery / Propertgrid and multilines textarea on: September 09, 2015, 04:50:09 AM
How can i display a multilines textarea on a propertygrid?
I want also that when editing the enter key don't leave the field but make a newline
13  General Category / EasyUI for jQuery / Datagrid problem with columns header width and rows width when fitcolumns=true on: August 20, 2015, 05:36:42 AM
In my datagrid, columns header width is not the same of columns width for datas!

For example, if my first column's header is 'Number' the width of the header column is calculated to show 'Number'
but in the datas i have '1', '2', column's width of rows are calculated to show '1' and '2'.


14  General Category / EasyUI for jQuery / Re: datagrid and bar graphs on: April 24, 2015, 02:07:27 AM
thank's, that's perfect.
15  General Category / EasyUI for jQuery / datagrid and bar graphs on: April 23, 2015, 05:27:51 AM
Is-it possible to draw bar graphs in datagrid columns like this :
+---------------------------+--------+-----------+-------------------------+
|                                  | Males  | Females  |                               |
+---------------------------+--------+-----------+-------------------------+
|          OOOOOOOOOOOO|  12     |      5       |OOOOO                     |
|                            OOO|    3     |      7      |OOOOOOO                  |
+---------------------------+--------+-----------+-------------------------+

OOO will be filled rectangles.
Pages: [1] 2 3 ... 5
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!