EasyUI Forum
May 18, 2024, 06:11:12 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 3 4
1  General Category / EasyUI for jQuery / Why is loadFilter trigered after dnd drop action on: September 16, 2021, 03:17:53 AM
When data is loaded from server, I use loadFilter to modify the data, but when enableDnd, after drop action, it triggered again and messed up the data.

I'm confused, in my opinion, if not drag row from another grid, after drop action loadFilter should not trigger at all.
2  General Category / EasyUI for jQuery / How to make frozen columns fix at right side on: August 21, 2020, 06:30:26 AM
im try to edit css

to make [view1 view2 scroll] to [view2 view1 scroll]

Quote
.datagrid-view1 {
    left: auto;
    right: 0;
}
.datagrid-view2 {
    left: 0;
    right: auto;
}

but only got [view2 scroll view1]

how can I  frozen columns at right side of datagrid with scroll at right side

3  General Category / EasyUI for jQuery / Re: how to make tooltip click to show and click to hide on: May 03, 2020, 06:27:01 AM
Code:
(function ($) {
    var hideMethod = $.fn.tooltip.methods.hide;
    $.extend($.fn.tooltip.methods, {
        hide: function (jq, e) {
            if (e) {
                return jq.each(function () {
                    console.info($(this).data());
                    var tip = $(this).data('tooltip').tip;
                    if (tip && tip.is(':visible')) {
                        hideMethod.call($(this), $(this), e);
                    }
                });
            }
        }
    });
})(jQuery);

is this ok?
4  General Category / EasyUI for jQuery / Re: how to make tooltip click to show and click to hide on: May 03, 2020, 06:25:18 AM
it seems also works on validatebox message tip, but which is not needed

5  General Category / EasyUI for jQuery / Re: how to make tooltip click to show and click to hide on: May 03, 2020, 06:20:11 AM
This is the code to fix this issue. Please put it to the page.
Code:
(function($){
var hideMethod = $.fn.tooltip.methods.hide;
$.extend($.fn.tooltip.methods, {
hide: function(jq, e){
return jq.each(function(){
var tip = $(this).data('tooltip').tip;  // Cannot read property 'tip' of undefined
if (tip && tip.is(':visible')){
hideMethod.call($(this),$(this),e);
}
})
}
})
})(jQuery);
6  General Category / EasyUI for jQuery / is this a bug about filebox? on: May 01, 2020, 06:58:01 AM
When use filebox,
if you select file, then you click filebox's button again(maybe by accident), then you click cancel button not to select new file, filebox shows it's value has been clear
7  General Category / EasyUI for jQuery / Is there any way to switch layout's west and east on: April 30, 2020, 11:12:38 PM
Make west be east and east be west, switch their postion.
8  General Category / EasyUI for jQuery / Re: how to make tooltip click to show and click to hide on: April 30, 2020, 11:08:58 PM
You can set the 'showEvent' and 'hideEvent' to trigger the tooltip to display or hide on some events.
Code:
$('#tt').tooltip({
  showEvent: 'click'
});
if you set like
Code:
$('#tt').tooltip({
  showEvent: 'click',
  hideEvent: 'click'
});
then the tooltip will never show
9  General Category / EasyUI for jQuery / how to make tooltip click to show and click to hide on: April 29, 2020, 08:11:14 AM
tooltip can not set show and hide use same set
10  General Category / EasyUI for jQuery / Re: How to set $.messager.prompt input type to password on: April 27, 2020, 04:30:18 AM
use this code

Code:

var dlg = $.messager.prompt('Enter Password', 'Please enter password', function(r){
 if (r){
   alert('you type: '+r);
 }
});
       
dlg.find('.messager-input').attr('type', 'password');



Please refer to this example

http://code.reloado.com/jbhatti/29/edit#html,live




Nice , your code is better , I just do like this

Code:
$.messager.prompt('Enter Password', 'Please enter password', function(r){
 if (r){
   alert('you type: '+r);
 }
});
       
$('.messager-input').attr('type', 'password');
11  General Category / EasyUI for jQuery / How to set $.messager.prompt input type to password on: April 26, 2020, 01:44:23 AM
It default is text, is there any way to set it
12  General Category / EasyUI for jQuery / How to change datagrid column sortable set after datargid is parsered on: April 23, 2020, 08:31:39 PM
How to change datagrid column sortable set after datargid is parsered.

I want to use a switchbutton to enable/disable some columns sortable

Is there any way to do that . I know there is onBeforeSortColumn can return false to stop sort, but I don't want the column shows it can sort when not match the condition what I give.
13  General Category / EasyUI for jQuery / data-options with ' on: December 04, 2019, 01:35:48 AM
<input id="expectdonedate" type="text" class="easyui-numberspinner" style="width:95%" value="1" data-options="label:'Deliverer&#039;s Expected Completion Time',labelPosition:'top',min:1,max:700,buttonText:'Day(s)',buttonAlign:'right',required:true">

parser traslate " Deliverer&#039;s Expected Completion Time " to "  Deliverer's Expected Completion Time  " and return error
14  General Category / EasyUI for jQuery / How to make $.messager.confirm work for onBeforeDrop? on: November 10, 2019, 07:48:28 AM
no matter what $.messager.confirm returns , true or false , it seems drop action always work.
15  General Category / EasyUI for jQuery / Why change onload triger time? on: October 30, 2019, 08:03:22 PM
in 1.8.5 if I use winodw to load a page with script , page's script will triger before onload function, but in 1.8.8 it runs after onload function , I used to reset window height by read window object’s scrollHeight in onload function,and now it seems impossible,becase in the page,there are some easyui items,if onload run first, those items have not parseed yet, the scrollHeight will be smaller then it should be.
Pages: [1] 2 3 4
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!