EasyUI Forum
November 05, 2025, 08:03:50 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: Datagrid FilterRow defaults combobox for 0 on: September 13, 2016, 05:38:13 AM
Thanks jarry, because setText will kepp the item selected, i will use the first version.
2  General Category / EasyUI for jQuery / Datagrid FilterRow defaults combobox for 0 on: September 12, 2016, 04:44:00 AM
Hi,

however the combobox uses a data entry with value 0 (as number) as default.
How this can be disabled?

http://jsfiddle.net/xxxe1p79/

With line 31 with 0 as string the combo text of status filter will stay empty by default:
data:[{value:"0",text:'All'},{value:'P',text:'P'},{value:'N',text:'N'}],

With line 31 with 0 as number, the combo shows "All" as default:
data:[{value:0,text:'All'},{value:'P',text:'P'},{value:'N',text:'N'}],

How can I set data with a value of 0 as number while having the combo text empty as default without defining the number as string?

Thanks!
3  General Category / EasyUI for jQuery / Re: Get tree-like object from menu on: August 30, 2016, 01:52:29 AM
Not supported, I could not find that too.
Finally I ended up selecting all menuItems using jquery without having them as tree.
Because all items are just added before </body> from plain html this structure could not be extracted.

I added custom properties to the menu items and looped all of them with something like

 cmenu.menu('appendItem', {
                    parent: elem.target,
                    text: col.title,
                    custom: value
                });

  var menuItem = cmenu.menu('getItem', $('#customid')[0]); // contains custom
  cmenu.menu('enableItem', menuItem.target);
4  General Category / EasyUI for jQuery / why the datagrid is separated in multiple tables? on: August 30, 2016, 01:41:43 AM
Hi everyone,

the datagrid is build up using different tables for header and body, and also separates each group when groupview is enabled to a new table. However I would like to not use the autoSizeColumn method to achieve what a regular table can do because in my case for only 50 items it requires around 200 ms to update column size.
It was easy to update the groupview to stay as one table only using different tbody containers instead of div & table.
However I could not extract the required information from the minified sourcecode to apply the same on the header.
When scaling tables to 100% width to have at least full width or if the content is too long enable scrolling to right/left the autoSizeColumn does not work correctly.

How can I get the following behaviour for the datagrid:
- Columns width should be at least to fit content
- Table width should be at least 100%
- If cells need more than 100% width, scrolling should be enabled

Experimental fiddle: http://jsfiddle.net/5ar4aotx/1/

Thanks
Tobias
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!