Show Posts
|
Pages: [1] 2
|
2
|
General Category / EasyUI for jQuery / [SOLVED] Getting changes on detailview datagrid
|
on: July 19, 2021, 05:41:58 AM
|
Hi! I have again the problem of getting changes in the data grid with detailview when inserting the first row. const grid = $('#grid');
grid.datagrid({ width: 500, height: 300, idField: 'id', view: detailview, detailFormatter: () => `<div>some content</div>`, columns: [[{ field: 'column1', title: 'column1' }, { field: 'column1', title: 'column1' }]], });
grid.datagrid('appendRow', { column1: 'columnValue1', column2: 'columnValue2' });
console.log({ inserted: grid.datagrid('getChanges', 'inserted'), deleted: grid.datagrid('getChanges', 'deleted'), updated: grid.datagrid('getChanges', 'updated'), }); // {inserted: Array(0), deleted: Array(0), updated: Array(0)} // I wanted to get //{inserted: Array(1), deleted: Array(0), updated: Array(0)}
If I insert a string into a non-empty list, everything is fine. Most likely all, this is due to the plugin detailview (1.0.1). I am using easyUI version 1.5.1, but tested on several versions above, everything is exactly the same. Please help me somebody!
|
|
|
4
|
General Category / EasyUI for jQuery / [Solved] The menu has a scrollbar
|
on: March 13, 2018, 11:24:47 PM
|
Please, help me. There is a scroll bar in the menu if the scale in the browser is more than 100%. Also, if the desktop settings (Linux Mint 18, Mate Desktop) are set to a certain value of dpi (138). This is manifested in Chromium 64.0.3282.167 only, in Firefox is OK.
|
|
|
5
|
General Category / EasyUI for jQuery / Re: Switching the focus of windows event
|
on: February 16, 2018, 07:03:25 AM
|
Thanks for the answer, it really works in most cases. However, here we use the method onBeforeDrag. Dragging is not possible for all areas of the window title: in attached files it is seen. Dragging works for the central area of header, not for corners However, windows always switch over the entire header area.
|
|
|
6
|
General Category / EasyUI for jQuery / Re: Switching the focus of windows event
|
on: February 15, 2018, 12:46:59 AM
|
Unfortunately, this does not work. My code is: function onHeaderMouseDown () { } $el.dialog('header').find('.panel-title').on('mousedown', onHeaderMouseDown);
In the debugger, permanent errors: Uncaught TypeError: Cannot read property 'target' of undefined at _43 (jquery.easyui-1.5.1.min.js:444) at jquery.easyui-1.5.1.min.js:638
And Uncaught TypeError: Cannot read property 'show' of undefined at _295 (jquery.easyui-1.5.1.min.js:3701) at HTMLDivElement.onDrag (jquery.easyui-1.5.1.min.js:3664) at HTMLDocument._49 (jquery.easyui-1.5.1.min.js:484) at HTMLDocument.dispatch (jquery.min.js:3) at HTMLDocument.q.handle (jquery.min.js:3)
Without a handler, everything works correctly. I use jQuery EasyUI 1.5.1, jQuery v3.1.0.
|
|
|
7
|
General Category / EasyUI for jQuery / Re: Switching the focus of windows event
|
on: February 14, 2018, 06:37:00 AM
|
It works. However, in fact the windows are switched over to mousedown event, not to click. But the mousedown event does not work in panel title element (<div class="panel-title panel-with-icon">), only in panel header container (<div class="panel-header panel-header-noborder window-header">).
I get this event only at the edges of header container. And the click event does not always work by windows switching...
|
|
|
10
|
General Category / EasyUI for jQuery / Datagrid with multiSort and hidden fields
|
on: January 31, 2018, 04:08:51 AM
|
I use the DataGrid with multiSort options, filter plugin and visible columns: 'column1', 'column2'. I have request with parameters: I hide column2 and call 'doFilter' method but request also looks like How do I update the sorting options without 'column2'?
|
|
|
13
|
General Category / Bug Report / How to use tree(data)grid rowStyler handler?
|
on: December 18, 2017, 03:41:28 AM
|
Hi, i use jQuery EasyUI 1.5.1 and rowStyler for treegrid. Documentation for rowStyler: The function take two parameters: rowIndex: the row index, start with 0 rowData: the record corresponding to this row
But on the fact i have first call with rowIndex = 0, rowData = {}, and subsequent calls with indexRow = actual_row_data, rowData = undefined.
It is right?
|
|
|
|