EasyUI Forum
April 29, 2024, 06:12:43 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: Formatter foe TEXTBOX on: June 23, 2015, 06:17:35 PM
I copy the code from the example in  http://jsfiddle.net/zsbpzqsj/6/ to my example. My example has some plugins, such as datetimebox,textbox,combobox,combogrid,datagrid. It cause the error as I posted above. But it has no error when I remove the code.

I find the error caused by the datetimebox, I change the code
function formatValue(target){
        var t = $(target);
        var opts = t.textbox('options');
        var v = t.textbox('getValue');
        if (opts.formatter && v){
           if(!$(target).hasClass('timespinner-f')){
               var v = opts.formatter.call(target, v);
               t.textbox('setText', v);
           }
        }
    }
That has no error,Is that right?
2  General Category / EasyUI for jQuery / Re: Formatter foe TEXTBOX on: June 23, 2015, 09:27:53 AM
Hi,the example in  http://jsfiddle.net/zsbpzqsj/6/ has an other error :
Code:
TypeError: date.getHours is not a function
var tt=[_577(date.getHours()),_577(date.getMinutes())];
jquery.....min.js (第 7906 行,第 13 列)
3  General Category / EasyUI for jQuery / Re: Formatter foe TEXTBOX on: June 23, 2015, 06:29:25 AM
Hi,the example in http://jsfiddle.net/zsbpzqsj/ is not working too,the error:
Code:
TypeError: $(...).combo(...) is undefined

$(this).combo("initValue",_a45).combo("setText",_a45);

jquery.....min.js (第 13629 行)

My example has a datagrid.
4  General Category / EasyUI for jQuery / Re: editable datagrid's editor on clicked not select the row? on: June 09, 2015, 02:30:05 AM
I find this way.

$(".datagrid").on("focus","input",function(e){
            var dgRowIndex = $(this).parents(".datagrid-row-editing").attr("datagrid-row-index");
            $('#order_sale_datagrid').datagrid("selectRow",dgRowIndex);
         });
5  General Category / EasyUI for jQuery / Re: editable datagrid's editor on clicked not select the row? on: June 09, 2015, 12:49:05 AM
I want to know too? Anyone knows?
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!