jquery easyui

0.API(1.2.4)
http://www.cnblogs.com/Philoo/archive/2011/11/17/jeasyui_api_index.html

1.
jQuery EasyUI 窗口(Window)用法
http://www.ityizhan.com/jquery-easyui-window-usage/

2.
jQueryEasyUI Messager基本使用
http://www.cnblogs.com/libingql/archive/2011/07/17/2109020.html

3.
DataGrid点击行不自动选中checkbox
onLoadSuccess: function(){
function bindRowsEvent(){
var panel = $('#upgrade_grid').datagrid('getPanel');
var rows = panel.find('tr[datagrid-row-index]');
rows.unbind('click').bind('click',function(e){
return false;
});
rows.find('div.datagrid-cell-check input[type=checkbox]').unbind().bind('click', function(e){
var index = $(this).parent().parent().parent().attr('datagrid-row-index');
if ($(this).attr('checked')){
$('#upgrade_grid').datagrid('selectRow', index);
} else {
$('#upgrade_grid').datagrid('unselectRow', index);
}
e.stopPropagation();
});
}
setTimeout(function(){
bindRowsEvent();
}, 10);
}

---------------------------------------
onLoadSuccess : function(rows){
$("#customerInfo").datagrid('clearSelections');
}


4.扩展easyui datagrid的两个方法.动态添加和删除toolbar(JS文件见附件)
http://easyui.btboys.com/post-80.html
用法:
引入脚本文件。
$('#tt').datagrid("addToolbarItem",[{"text":"xxx"},"-",{"text":"xxxsss","iconCls":"icon-ok"}])//添加
$('#tt').datagrid("removeToolbarItem","GetChanges")//根据btn的text删除
$('#tt').datagrid("removeToolbarItem",0)//根据下标删除

示例:
$.ajax({
url: "xxx.action",
type: "POST",
dataType: "json",
async:true,
success:function (data) {
$('#tt').datagrid("addToolbarItem",data);
},
error:function (data) {

}
});

5.对话框显示汉字
$.messager.defaults={ok:"确定",cancel:"取消"};
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值