EasyUI Forum
May 05, 2024, 01:35:20 AM *
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 / EasyUI for jQuery / Re: Combogrid grid row height on: January 23, 2018, 09:57:01 PM
Try this:
Code:
$('.datagrid-row').css('height', '25px');
$('.combo-panel').css('height', '25px');
2  General Category / EasyUI for jQuery / Re: How to get column name in formatter? on: January 19, 2018, 04:56:26 AM
It's simple:
You can get field in Formatter:

function formatContent(value,row,index){
  return this.field;
}
3  General Category / EasyUI for jQuery / Re: Datagrid cell question on: January 19, 2018, 04:27:50 AM
You are the best. Thanks Smiley
4  General Category / EasyUI for jQuery / Re: Datagrid cell question on: January 18, 2018, 02:48:46 AM
Okay. It work's. Thanks
But if I need to know what cell (index row and index column id datagrid) is mouse hover. I want to get new data by id column and id row?
Example: http://code.reloado.com/ayibuk3/8/edit#html,live
Code:
var data = service.getData(indexColumn, indexRow); //get new data with column and row indexes
5  General Category / EasyUI for jQuery / Re: Datagrid cell question on: January 16, 2018, 09:20:09 PM
Thanks. It work's
But if I want show dialog as tooltip?
I need return tooltip for a every cell in datagrid as a different dialog contents
How I can use something in function formatAttribute , for example:
Code:
var clickedData = resultData.rows;
var clickedCell = clickedData[index];
var cell = clickedCell[field];
$('#dlg').dialog({
                                        title: 'Замеры за ' + field,
                                        width: 220,
                                        height: height,
                                        closed: false,
                                        cache: false,
                                        content: function () {
                                          var tableDialog = document.createElement(
                                              'table');
                                          tableDialog.style.width = "100%";
                                          tableDialog.id =
                                              'dataGridDialog' + wellId;
                                          document.getElementById('dlgCheckerboard'
                                                                  + wellId)
                                              .appendChild(tableDialog);
                                          $('#dataGridDialog' + wellId)
                                              .datagrid({
                                                          data: obj,
                                                          title: 'Параметр '
                                                                 + clickedCell["NAME"],
                                                          striped: true,
                                                          bodyCls: "dialog-color",
                                                          singleSelect: true,
                                                          fit: true,
                                                          border: false,
                                                          fitColumns: true,
                                                          remoteSort: false,
                                                          remoteFilter: false,
                                                          columns: [[
                                                            {
                                                              field: 'time',
                                                              title: 'Время',
                                                              halign: 'center',
                                                              width: "45%"
                                                            },
                                                            {
                                                              field: 'value',
                                                              title: 'Значение',
                                                              halign: 'center',
                                                              width: "55%",
                                                              sortable: true,
                                                              styler: cellDialogStyler
                                                            }
                                                          ]],
                                                          showFooter: true
                                                        });
                                        }
                                      });
6  General Category / EasyUI for jQuery / Datagrid cell question on: January 15, 2018, 10:58:09 PM
Hello!
Can I get cell value on hover mouse by cells in datagrid?
All methods of datagrid getting Row data, but I need to know what cell selected (hover mouse). How I can do it?
I want to show additional information in cell by tooltip.
7  General Category / EasyUI for jQuery / Re: Tooltip problem on: January 14, 2018, 11:26:30 PM
Thanks!
8  General Category / EasyUI for jQuery / Tooltip problem on: January 12, 2018, 03:32:38 AM
Hi!
I have problem with my tooltip (combobox) in the button.
When I move mouse combobox get up at the top of page. How I can fix it? I need that combobox close when mouse get out of combobox or right-click out of space combobox.
P.s. 1.5.3
Example:
http://code.reloado.com/inodal/10/edit#javascript,html,live
9  General Category / Bug Report / Dialog position on: January 12, 2017, 08:45:22 PM
Hi!
After update EasyUI to 1.5.1, I try drag Dialog and close it. After opening this dialog again position set to default - center.
When I used EasyUI 1.5 dialog box opened in the same position
10  General Category / EasyUI for jQuery / Re: tabletoexcel for datagrid on: November 29, 2016, 09:43:48 PM
Just tried the extended code,

Simple datagrid with pagination, 4 cols and 25 rows


In this line

alink[0].click(); An error says "The data area that is send to a systemcall, is too small"
Hi. I have some problem too with IE 11...
11  General Category / EasyUI for jQuery / Re: Many columns in DataList on: August 29, 2016, 12:15:26 AM
OK. Thanks  Wink
12  General Category / EasyUI for jQuery / Re: Many columns in DataList on: August 28, 2016, 09:56:52 PM
Hi, stworthy. Thanks for help. I try your code, but it's not exactly that I need
I want to split datalist into two columns with checkboxes too.
1 attached file - result of your code
2 attached file - that I need
13  General Category / EasyUI for jQuery / Re: Many columns in DataList on: August 26, 2016, 04:06:21 AM
I try this:
Code:
[
{"text2":"01. Qж авт."},
{"text":"02. Qж ручн."},
{"text2":"03. Qн авт."},
{"text":"04. Qн ручн."},
{"text2":"05. Обв.% об. авт.."},
{"text":"06. Обв.% об. ручн."},
{"text2":"07. Dшт"},
{"text":"08. Pбуф"},
{"text2":"09. Pлин"},
{"text":"10. Hдин"},
{"text2":"11. Pпл ВНК (ТМС)"},
{"text":"12. Pпл ВДП (Hстат.)"},
{"text2":"13. Pпл ВДП (манометр)"},
{"text":"14. Pпл ВДП (ручн.)"},
{"text2":"15. Pпл ВНК (Hстат.)"},
{"text":"16. Pпл ВНК (манометр)"},
{"text2":"17. Pпл ВНК (ручн.)"},
{"text":"18. Pзаб ВНК (ТМС)"},
{"text2":"19. Рзаб ВДП (ручн.)"},
{"text":"20. Рзаб ВДП (Ман.)"},
]
Code:
$('#dataList').datalist({
                      url: '/rest/cb/getParameters',
                      checkbox: true,
                      lines: true,
                      selectOnCheck: false,
                      height: 300,
                      columns:[[
                        {field:'text',width:'50%'},
                        {field:'text2',width:'50%'}
                      ]]
                    });
But isn't that i need...
14  General Category / EasyUI for jQuery / Re: Many columns in DataList on: August 26, 2016, 03:59:59 AM
My structure json file:
Code:
[
{"text":"01. Qж авт."},
{"text":"02. Qж ручн."},
{"text":"03. Qн авт."},
{"text":"04. Qн ручн."},
{"text":"05. Обв.% об. авт.."},
{"text":"06. Обв.% об. ручн."},
{"text":"07. Dшт"},
{"text":"08. Pбуф"},
{"text":"09. Pлин"},
{"text":"10. Hдин"},
{"text":"11. Pпл ВНК (ТМС)"},
{"text":"12. Pпл ВДП (Hстат.)"},
{"text":"13. Pпл ВДП (манометр)"},
{"text":"14. Pпл ВДП (ручн.)"},
{"text":"15. Pпл ВНК (Hстат.)"},
{"text":"16. Pпл ВНК (манометр)"},
{"text":"17. Pпл ВНК (ручн.)"},
{"text":"18. Pзаб ВНК (ТМС)"},
{"text":"19. Рзаб ВДП (ручн.)"},
{"text":"20. Рзаб ВДП (Ман.)"},
]
I need displays this data in two columns in datalist. Is it possible?
15  General Category / EasyUI for jQuery / Many columns in DataList on: August 25, 2016, 11:34:53 PM
Hi! I need display data in two or three columns. I use dataList component. How I make it?
Code:
$('#dataList').datalist({
                      url: '/rest/cb/getParameters',
                      checkbox: true,
                      lines: true,
                      selectOnCheck: false,
                      height: 300
                    });
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!