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.
|
|
|
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 : tools: [{ iconCls: 'icon-add', text: 'Add', handler: function () { alert('add'); } }, { iconCls: 'icon-remove', text: 'Remove', handler: function () { alert('remove') } }]
|
|
|
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 : 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?
|
|
|
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).
|
|
|
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.
|
|
|
|