EasyUI Forum
May 08, 2024, 11:40:35 PM *
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 / Bug Report / Re: v1.3.2 datagrid deleteRow Bug on: March 26, 2013, 06:26:56 PM
tks, I selected the second way and It`s OK.
But I don`t know reason.

If it`s not bug. do I need to remove this topic?
2  General Category / Bug Report / v1.3.2 datagrid deleteRow Bug on: March 26, 2013, 03:11:48 AM
idField:'objectID',
columns:[[
         {field:'username',title:'username',width:200,sortable:true},
         {field:'action',title:'',width:50,formatter:function(value,row,rowIndex){
            var $_buttons = $("<div><a href='#' class='easyui-linkbutton' onclick='OPT_SYSTEMUSER_REMOVE("
                        + row.objectID + ");'></a></div>");
            $_buttons.find('.easyui-linkbutton').linkbutton({plain:true,iconCls:"icon-remove"});
            return $_buttons.html();
         }}
      ]],
-------------------------------------------
notice: the field 'action'
-------------------------------------------
OPT_SYSTEMUSER_REMOVE = function( _objectID ){
   $('#dataTabAll').datagrid('selectRecord',_objectID);
   var row = $('#dataTabAll').datagrid('getSelected');
   var index = $('#dataTabAll').datagrid('getRowIndex',row);
   $('#dataTabAll').datagrid('unselectRow',index);
   $('#dataTabAll').datagrid('deleteRow',index);
};
------------------------------------------
Bug Desc:
When I remove the last one, tip:" Uncaught TypeError: Cannot read property 'action' of undefined  " And Remove successfully.
3  General Category / Bug Report / about load checkbox data in "form plugin" on: February 19, 2013, 09:21:32 AM
$('#id').form('load',data);  when checkbox, err
----------------------------------------------
Fix eg:
-------------------------
if(f.val()==String(val)){
$.fn.prop?f.prop("checked",true):f.attr("checked",true);
}
-------------------------
to
-------------------------
if(f.val()==String(val) || $.inArray(f.val(),val)>=0){
$.fn.prop?f.prop("checked",true):f.attr("checked",true);
}
-------------------------
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!