EasyUI Forum
November 01, 2025, 10:36: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]
1  General Category / EasyUI for jQuery / Re: disable editor within datagrid on: January 29, 2015, 11:43:40 PM
Code:
$('#dg').datagrid({
    onDblClickRow: function(index,row){
    var edType =$(this).datagrid('getEditor',{index:index,field:[font=Verdana]your field[/font]});   
    if([font=Verdana]your condition[/font]){
        $(edType.target).combobox('disable');
    }
})
2  General Category / Bug Report / Re: Setting value for datagrid bug on: January 29, 2015, 11:23:38 PM
I met the same problem.My solution is get the editor object in the ondbclickrow event of the datagrid and then bind the event function .

your example

var ed = $('#dataForm').datagrid('getEditor', {index:editIndex, field:'xxxId'});

the "ed" is null
3  General Category / Bug Report / Re: 初始化顺序的问题不太理解 on: January 29, 2015, 07:47:14 PM
<input type='text' value='1' />
<input type='text' value='2' />

方案1: 没问题
$("input").combobox({

}).combobox("setValues", ['1','2','3']);


方案2: 会报错
$("input").combobox({
   xxx
});

$("input").combobox("setValues", ['1','2','3']);

Firefox 提示: TypeError: $.data(...) is undefined

方案2里感觉 combobox 控件还没有初始化完毕, 这是为什么?

定义combobox 但实际还没有渲染 正确地应该在定义时的onloadsuccess事件中赋初值

$("input").combobox({
   onloadsuccess:function(){
          $(this).combobox('setValue', xxx)
        }
});
4  General Category / EasyUI for jQuery / Re: ‘Merge Cells’ paging problem on: October 14, 2014, 07:42:01 PM
Thanks a lot for your answer!
Maybe I did indeed not describe my question clearly.
Let me describe my question again.
Code:
{"total":28,"group":[
{"name":"ip1","address":"1.1.1.1","prefix":"32","len":"trusted"},
{"name":"ip1","address":"1.1.1.2","prefix":"32","len":"trusted"},
{"name":"ip1","address":"1.1.1.3","prefix":"32","len":"trusted"},
{"name":"ip1","address":"1.1.1.4","prefix":"32","len":"black"},
{"name":"ip2","address":"2.2.2.1","prefix":"32","len":"trusted"},
{"name":"ip2","address":"2.2.2.2","prefix":"32","len":"black"},
{"name":"ip2","address":"2.2.2.3","prefix":"32","len":"trusted"}
]}
I want to show datagrid like ip.jpg using this data format, if i use 'mergeCells datagird', the pagination  is incorrect.
What should I do?
5  General Category / EasyUI for jQuery / Re: ‘Merge Cells’ paging problem on: October 13, 2014, 06:36:52 PM
in 'Merge Cells for DataGrid' demo ,  add 'pagination:true,'
<table class="easyui-datagrid" title="Merge Cells for DataGrid" style="width:700px;height:250px"
         data-options="
            rownumbers: true,
            singleSelect: true,
            iconCls: 'icon-save',
            pagination:true,
            url: 'datagrid_data1.json',
            method: 'get',
            onLoadSuccess: onLoadSuccess
         ">
I mean, how does using 'Product' column to pagination instend of rownumbers
6  General Category / EasyUI for jQuery / disable submit the form on enter key for teasyui-textbox on: October 12, 2014, 06:47:12 PM
when there is  "type='submit'"  in form , how to disable submitting the form on enter keypress for easyui-textbox.
7  General Category / EasyUI for jQuery / ‘Merge Cells’ paging problem on: October 12, 2014, 06:35:39 PM
In datagrid ,when we "merge cells" , how does pagination count the number of merged cells.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!