EasyUI Forum
April 25, 2024, 12:56:05 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1] 2
1  General Category / EasyUI for jQuery / Re: Getting changes on detailview datagrid on: July 19, 2021, 11:35:47 PM
Thank you, it works!
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.
Code:
  <div id='grid'></div>
Code:
      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!  Cry
3  General Category / EasyUI for jQuery / Re: The menu has a scrollbar on: March 14, 2018, 11:57:22 PM
Thanks, it works with !important rule:

overflow: hidden !important
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.  Smiley

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.  Cry
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:
Code:
function onHeaderMouseDown () {
}
$el.dialog('header').find('.panel-title').on('mousedown', onHeaderMouseDown);
In the debugger, permanent errors:
Code:
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
Code:
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...
8  General Category / EasyUI for jQuery / Re: Switching the focus of windows event on: February 13, 2018, 11:35:57 PM
Thank you!
9  General Category / EasyUI for jQuery / Switching the focus of windows event on: February 13, 2018, 01:14:46 AM
Hello!
I can somehow track the event by switching the focus of windows on the title?
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:
Code:
sort: column1,column2
I hide column2 and call 'doFilter' method but request also looks like
Code:
sort: column1,column2

How do I update the sorting options without 'column2'?
11  General Category / Bug Report / Re: How to get switchbutton value? on: January 11, 2018, 07:06:44 AM
Thanks
12  General Category / Bug Report / How to get switchbutton value? on: January 11, 2018, 04:28:35 AM
A switchbutton component has a method 'setValue'. But how to get current value, method 'getValue' not exists?
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?
14  General Category / Bug Report / Not updated pagination info in treegrid if total is zero on: December 05, 2017, 02:31:22 AM
I use treegrid with DataGrid Filter Row extension. When i get data with non-zero total value pagination updated right. When i get data with zero total value pagination leaves the previous value.
15  General Category / EasyUI for jQuery / Re: How to change textbox label? on: August 17, 2017, 01:49:08 AM
Thank you, I did not find this method in the documentation.
Pages: [1] 2
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!