EasyUI Forum
June 15, 2024, 10:41:17 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: Drag and Drop Treegrid (dynamically expand nodes) on: August 23, 2016, 11:37:00 PM
Hello Jarry,

it works, thank you very much.

Sicco
2  General Category / EasyUI for jQuery / Drag and Drop Treegrid (dynamically expand nodes) on: August 23, 2016, 01:49:19 PM
Hello,

I am using treegrid with data from remote server via url attribute.

And this is what I am trying to achieve:

Code:
tg.treegrid({
  onLoadSuccess: (row) ->
    tg.treegrid('enableDnd', if row then row.id else null)
  onDragEnter: (targetRow, sourceRow) ->
    delay 2000, ->
      if tg.parent().find('.datagrid-row-over').attr('node-id') == targetRow.id
        tg.treegrid('expand', targetRow.id)
})

During drag phase I am trying to dynamically expand my treegrid nodes (using onDragEnter for this as shown above).

The problem is that onDragEnter event is fired only for initial nodes (before any expand). All nodes which are shown after expand event does not fire onDragEnter event.

Maybe this is not the correct way how to achieve this, but maybe someone can help me.

Thanks, Sicco
3  General Category / EasyUI for jQuery / Re: Datagrid checkbox questions on: October 23, 2015, 04:38:31 AM
Thank you jarry, it works.

And about my second question, it seems I am out of luck.

Siccak
4  General Category / EasyUI for jQuery / Datagrid checkbox questions on: October 15, 2015, 11:30:50 AM
Hello,

I have two questions about using datagrid with checkbox column.

1. check All button

I am using my datagrid with pagination and if I click check all button then only rows on first page are selected. Is there any way how to check rows on all pages?

2. hiding checkbox and getChecked method

Is there any way how to conditionally hide checkbox on row, based on some formula or anything else? I am achieving this by using rowStyler, but it has some drawbacks. getChecked method is returning values from all checkboxes (not respecting hidden or disabled checkboxes) and this will be more complicated if my first question will be answered.

Thank you, Sicco
5  General Category / Bug Report / Re: a bug occurred when closing messager on: September 08, 2015, 02:02:17 AM
Thanks, $.messager.progress({}); helped.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!