EasyUI Forum
March 28, 2024, 03:20:51 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 / [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
2  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 ?
3  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');
4  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) ?
5  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 ?
6  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');
  };
};
7  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

8  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!
9  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
10  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');
11  General Category / EasyUI for jQuery / Re: datagrid & unexpected response from the server on: September 16, 2021, 04:20:56 PM
Thnx!
12  General Category / EasyUI for jQuery / Re: maskedbox: how change mask without recreate ? on: September 12, 2021, 03:29:52 PM
its work, thnx!
13  General Category / EasyUI for jQuery / Re: maskedbox: who to change mask without recreate ? on: September 08, 2021, 01:42:17 PM
14  General Category / EasyUI for jQuery / [SOLVED] maskedbox: how change mask without recreate ? on: September 08, 2021, 10:23:39 AM
Code:
 $('#Lat').maskedbox({
         label: 'Lat:'
        ,labelPosition: 'left'
        ,labelAlign: 'right'
        ,width: 300
        ,promptChar: '0'
        ,mask: '+99 99 99'
        ,masks: {'9':'[0-9]','+':'[\+\-]'}
        ,onChange: LatChange
        ,required:true
        ,validType:{GIS:['Lat']}
        ,buttonIcon: 'fas fa-map-marker-alt greentext'
        ,onClickButton: getLast
      });
  ...
  $('#Lat').maskedbox('button').tooltip({position: 'top',content: 'get last known position'});

 GIS format changer:
Code:
let nVal = '+99 99.9999';
 $('#Lat').maskedbox({mask:nVal,masks: {'9':'[0-9]','+':'[\+\-]'}}).maskedbox('initValue','+')

then in console

Quote
VM5213:2890 Uncaught TypeError: Cannot read properties of undefined (reading 'tip')
    at Object.tip (<anonymous>:2890:31)
    at jQuery.fn.init.$.fn.tooltip (<anonymous>:2872:34)
    at HTMLInputElement.onShow (<anonymous>:7553:9)
    at <anonymous>:2822:13

trying

Code:
   if(($('#Lat').maskedbox('button')).hasClass('tooltip-f')
    ){
       $('#Lat').maskedbox('button').tooltip('destroy');
    };
   let nVal = '+99 99.9999';
   $('#Lat').maskedbox({mask:nVal,masks: {'9':'[0-9]','+':'[\+\-]'}}).maskedbox('initValue','+')
   $('#Lat').maskedbox('button').tooltip({position: 'top',content: 'get last known position'});

but get same error ...

do not get Uncaught TypeError only if don't create tooltip on button Wink
15  General Category / EasyUI for jQuery / [SOLVED] datagrid & unexpected response from the server on: August 28, 2021, 03:15:23 PM
how to intercept the answer from server before

API server periodically need to reauth and its answer something like the

Quote
{
"result":"error",
"error":"auth required"
}

and  datagrid do not event onLoadSuccess and do not event onLoadError Sad
( in console: Uncaught TypeError: "Cannot read property 'length' of undefined" )

how to intercept this API server answer ?


UPD:

hmm ... in EasyUI 1.9.15 it turns out that neither 'onLoadSuccess' nor 'onLoadError' is ever called at all
Code:
$('#DG').datagrid({
    ...
   ,onLoadError: function(){ console.log('DG load error'); }
   ,onLoadSuccess: function(aData){ console.log('DG load success',aData); }
   ...
currently possible only by overriding 'loader' ?
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!