EasyUI Forum
April 18, 2024, 09:02:50 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 / Filebox on IOS device always force open Camera on: December 19, 2020, 07:37:38 AM
Hi Expert!
By using Filebox, I found it is inconvenient on IOS Device.
Cuz I do not have option to select Photo Library beside taking photo from Camera.
But If I use the legacy input type="file", then I have option to select Photo Librara; Take Photo or Browse...
Do you have solution for this?
Thanks.
2  General Category / EasyUI for jQuery / Re: How to set datagrid background color and row selected background color on: July 09, 2020, 01:12:18 AM
Thank you!
3  General Category / EasyUI for jQuery / How to set datagrid background color and row selected background color on: July 08, 2020, 10:57:30 PM
Hi dear,
When ever i use rowStyler:myRowstyler in datagrid, it's always overwrite the datagrid-row-selected style color.
Any other way to set background color to row and row-seleceted?
Thanks.
4  General Category / EasyUI for jQuery / Re: Easyui Combox Keyboard Navigation Problem on: April 26, 2020, 01:39:10 AM
Cool! Working like magic!
5  General Category / EasyUI for jQuery / Re: Easyui Combox Keyboard Navigation Problem on: April 25, 2020, 08:47:19 PM
$('#cc').combobox({
    editable: false,
    keyHandler: $.extend({}, $.fn.combobox.defaults.keyHandler, {
        down: function(e){
            $(this).combobox('showPanel');
            $.fn.combobox.defaults.keyHandler.down.call(this,e);
        }
    })
});

How to make it to global use with all combobox object?
6  General Category / EasyUI for jQuery / Re: Combobox not select value while reading text from barcode on: March 12, 2020, 09:08:13 PM
It seems not working with Enter key.
It is just fire onSelect when the input data matched in the list.
7  General Category / EasyUI for jQuery / Re: Combobox not select value while reading text from barcode on: March 08, 2020, 08:45:49 PM
$('#combo_id').combobox({                                       
                    onSelect: function(record){                       
                        alert('onSelect'+record.text);
                    }
});

In case of copy/paste and press key enter very fast, it's not work.
The same as using Barcode reader to input in the combobox.
8  General Category / EasyUI for jQuery / Re: Combobox not select value while reading text from barcode on: March 05, 2020, 07:42:43 AM
Hello Admin, Can you help?
9  General Category / EasyUI for jQuery / Combobox not select value while reading text from barcode on: December 31, 2019, 02:35:10 AM
I found the combobox not select the value when i use barcode to enter; suddenly it clear the value.
And also happend on quickly pasted data and press enterkey.
Anyone can help?
10  General Category / EasyUI for jQuery / Loading data from form into three dependency combobox on: August 23, 2017, 07:54:32 PM
I have a three level dependency combobox such as cmb_province_id, cmb_district_id, and cmb_commune_id.
I use :
onChange event in cmb_province_id [
Code:
$("#cmb_district_id").combobox("reload", url+"get_data.php?type=dis&id="+newValue).combobox("clear"); 
]
onChange event in cmb_district_id [
Code:
$("#cmb_commune_id").combobox("reload", url+"get_data.php?type=com&id="+newValue).combobox("clear"); 
]

In Addnew data mode, it works fine. But in Edit data mode it is not.
When it load data from form into combobox, the three combobox not load the correct value.
The last combobox, cmb_commune_id, not shown data.

I used to apply this code in the old version, 1.4.1, and it works fine.
Does anyone has this problem?
 
11  General Category / EasyUI for jQuery / Re: Filebox File Upload on: July 11, 2017, 11:44:28 PM
Try this:
Code:
$('#fm_name').form('submit', {
                url: cur_url,
                onSubmit: function (param) {
                    //more code here
                    return ($(this).form('validate'));  
                },
                success: function (data) {
                    //code here
                }
});
12  General Category / EasyUI for jQuery / Re: Validate combobox on form submit? on: July 10, 2017, 10:09:31 PM
Let try:
First extend check validation to check when user key in.
Code:
$.extend($.fn.validatebox.defaults.rules, {
            check: {
            validator: function(value,param){
                    var obj = $(param[0]).combobox('getData');
                    var arr = [],n,result;
                    arr = $.map(obj,function(n,i){ n = n.textfield || n.text ; return n; });
            result = jQuery.inArray(value, arr);
            if(result == -1) return false;
            else return true;
            },
            message: 'Please fill it correctly!'
            }
    });

Add
Code:
validType="check['#company_name']"
to your combobox.
Define id=0 to your default text "- Select City -"
In my case i load data from server so i will do like:
Code:
$item = array('id'=>'0','text'=>'- Select City -');
$result = array();   
array_push($result, $item);

For form submit:
Code:
$('#fm').form('submit', {
            url: savedata_url,
            onSubmit: function(param) {               
                if ($('input[name=city_name]').val() === '0') {
                    msg = 'Please select City!';
                    $.messager.alert('Confirm', msg, 'info');
                    return false;
                } else
                    return $(this).form('validate');
            },
13  General Category / EasyUI for jQuery / combotree scrollTo not work on: July 10, 2017, 09:41:41 PM
I have a long list inside combotree.
when user open form for edit, for combotree, when user click on the combotree then i want it scroll to that node.
In my code:
Code:
var node = $('#mycombotree').combotree('tree').tree('find',250);  
$('#mycombotree').combotree('tree').tree('expandTo', node.target);     
$('#mycombotree').combotree('tree').tree('select', node.target);                 
$('#mycombotree').combotree('tree').tree('scrollTo', node.target);
But it seems not scroll to that node.
Any solution?
14  General Category / EasyUI for jQuery / Combogrid onSelect not fire when using setValue or $('#fm').form('load', row) on: December 07, 2016, 07:48:13 PM
I'm currently using version 1.33
The problem is i want to load data into a form when user want to edit.
But my combogrid seem not fire onSelect event for the first time, but it work on second time with the same row on datagrid.
If i change to edit another row on datagrid, then i need to edit twice to make it fire the onSelect event on combogrid.
15  General Category / EasyUI for jQuery / [SOLVED] Load form data from URL, but data not show immediatly by using alert() on: August 01, 2016, 09:22:41 PM
I have a dialog to show Form with a field of textbox.
Function Viewdata(){
$('#frm').form('load',URL); // data load from URL: {"comments":"Others"}
alert(JSON.stringify($('#frm').serializeArray())); // [{"name":"comments","value":""}]
}
any solution?
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!