EasyUI Forum
May 11, 2024, 09:08:16 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1] 2 3 ... 7
1  General Category / EasyUI for jQuery / Re: layout panel expand to maxWidth on: April 29, 2024, 01:28:16 AM
now use
Code:
$('#dlg .layout').layout('panel','east').panel('resize',{width:250});
$('#dlg .layout').layout('expand','east');

its work, but panel floating from 0 position
2  General Category / EasyUI for jQuery / layout panel expand to maxWidth on: April 29, 2024, 01:24:41 AM
Code:
  $('#dlg .layout').layout('add',{
    region: 'east'
  , width: 150
  , minWidth: 150
  , maxWidth: 250

$('#dlg .layout').layout('expand','east') - expand panel only to "default"(initial or last) width.

How to expand to maxWidth ?
3  General Category / EasyUI for jQuery / Re: [datagrid_export] prevent EXCEL to convert float to date on: April 19, 2024, 10:38:00 AM
for simple export there is no need for ext lib
4  General Category / EasyUI for jQuery / [datagrid_export] prevent EXCEL to convert float to date on: April 16, 2024, 07:06:30 AM
datagrid-export-1.0.3.zip/datagrid-export.js:
LINE 49-51:
Quote
               data.push(
                    '<td style="'+tdStyle+'">&nbsp;'+value+'</td>'
                );
5  General Category / EasyUI for jQuery / [SOLVED] .combotree textField - didnt work on: March 24, 2023, 07:13:11 PM
Code:
textField	string	The underlying data field name to bind to this ComboTree. Available since version 1.5.2.

Code:
  $('#Label').combotree({
      url: '?getLabels'
    , idField: 'ID'
    , textField: 'Name'
    //, valueField: 'Name'
    //, treeField: 'Name'
  ...
 });


json and result in screenshots
6  General Category / EasyUI for jQuery / $.messager.prompt with miltiline input on: March 01, 2023, 11:18:23 PM
Code:
  $.messager.prompt({
    title: ' new Note',
    msg: '',
    fn: function(r){
      if (r){ alert(r);}
  });
    $(".messager-window .messager-input")
    .textbox({width:260,height:100,multiline: true})
    .textbox('textbox').focus();


PROBLEM IS : the 'r' returns filtered value without "\n" Sad

jQ hooks didn't work
Code:
$.valHooks.textarea = {
  get: function( elem ) {
    return elem.value.replace( /\r?\n/g, "\n" );
  }
};


Additional:
how to do to "return false" in fn(r) to prevent to close prompt ?
7  General Category / EasyUI for jQuery / ERROR in DEMO: Tabs with DropDown on: January 19, 2023, 04:13:55 AM
https://www.jeasyui.com/demo/main/index.php?plugin=Tabs


Code:
var mb = p.panel('options').tab.find('a.tabs-inner');
may be

Code:
var mb = p.panel('options').tab.find('span.tabs-inner');
8  General Category / General Discussion / Downloadable documentation (ex. as .chm or .pdf) ? on: December 28, 2022, 07:40:30 AM
Where can get Downloadable documentation (ex. as .chm or .pdf) ?
9  General Category / EasyUI for jQuery / Re: unselect linkbutton on: December 18, 2022, 01:30:09 PM
code.reloado.com - ERR_NAME_NOT_RESOLVED

How to UNCHECK/UNSELECT ALL buttons in group ?
10  General Category / EasyUI for jQuery / Re: .datagrid('selectRecord',idValue) and .datagrid onSelect event on: September 01, 2022, 09:29:33 AM
ok. maybe problem in call selectRecord from onLoadSuccess
how select record after loading? only via setTimeout ?


Code:
$('#dg').datagrid({
 ...
 , idField: 'itemid'
 , onLoadSuccess: dgLoadSuccess
});

function dgLoadSuccess(aData){
  if($(this).prop('selectAfterLoad') !== undefined
   &&$(this).prop('selectAfterLoad') != ''
  ){
    $(this).datagrid('selectRecord',$(this).prop('selectAfterLoad'));
    $(this).prop('selectAfterLoad','')
  }else{
    $(this).datagrid('clearSelections');
  };
};
11  General Category / EasyUI for jQuery / .datagrid('selectRecord',idValue) and .datagrid onSelect event on: August 31, 2022, 02:41:48 PM
why datagrid onSelect event didn`t fired when programmatically do .datagrid('selectRecord',idValue) ?
how to fire this event from code ?

on user click event is firing

12  General Category / EasyUI for jQuery / Re: [SOLVED] $('#A').layout({'add','collapsed:true'}); error on: April 24, 2022, 04:49:16 PM
added

Code:
  $('#A .main').layout('add',{   region: 'center' , ... });

before

Code:
  $('#A .main').layout('add',{  region: 'east' , ... });

fixed my problem.

Thank You very much!
13  General Category / EasyUI for jQuery / [SOLVED] $('#A').layout({'add','collapsed:true'}); error on: April 24, 2022, 03:30:20 PM
Code:
  $('#A .main').layout(); 

  $('#A .main').layout('add',{
     region: 'east'
    //,noheader: true
    ,title: 'Instruction:'      
    ,hideCollapsedContent: false  
    ,border: false
    ,split: false
    ,collapsible:true
    ,collapsed:true
    ,width: '95%'
    ,content: '<input class="Instruction">'
  });

Quote
jquery.js:4094 Uncaught TypeError: Cannot read properties of undefined (reading 'jQuery321056324004689852392')
    at Data.get (jquery.js:4094:9)
    at Data.access (jquery.js:4112:16)
    at Function.data (jquery.js:4252:19)
    at Object.options (<anonymous>:3481:10)
    at jQuery.fn.init.$.fn.panel (<anonymous>:3453:32)
    at _3fb (<anonymous>:5584:22)
    at _3f1 (<anonymous>:5537:10)
    at HTMLDivElement.<anonymous> (<anonymous>:5743:1)
    at Function.each (jquery.js:362:19)
    at jQuery.fn.init.each (jquery.js:157:17)


without     ,collapsed:true all work fine
except that the panel is visible Smiley
14  General Category / EasyUI for jQuery / Re: datagrid - column appearance regarding parameter on: December 28, 2021, 04:50:20 PM
$('#dg').datagrid('showColumn','Field');
$('#dg').datagrid('hideColumn','Field');
15  General Category / EasyUI for jQuery / Re: datagrid & unexpected response from the server on: September 16, 2021, 04:20:56 PM
Thnx!
Pages: [1] 2 3 ... 7
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!