EasyUI Forum
November 05, 2025, 06:49:38 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 / hi,i have a trouble about accordion,please help! on: November 24, 2012, 10:43:19 AM
you know,when i use "add()" to add a panel into accordion,
the new panel will be at last,but i want to put it on the top,is
there idea?thank u.
2  General Category / EasyUI for jQuery / Re: HELP!!$.messager.progress is not a function on: July 17, 2012, 08:16:43 AM
and ,there are my script :
<script type="text/javascript" src="../../ui/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="../jilib/jquery.cookie.js"></script>
<link rel="stylesheet" type="text/css" href="../../ui/themes/icon.css">
<link rel="stylesheet" type="text/css"   href="../../ui/themes/default/easyui.css">
<script type="text/javascript" src="../../ui/jquery.easyui.min.js"></script>
<link rel="stylesheet" type="text/css" href="../jilib/portal.css">
<script type="text/javascript" src="../jilib/jquery.portal.js"></script>
<script type="text/javascript" src="../jilib/syUtil.js" charset="utf-8"></script>

the error is in syUtil.js .Thank you!
3  General Category / EasyUI for jQuery / HELP!!$.messager.progress is not a function on: July 17, 2012, 08:14:21 AM
HI.here is my code:
Code:
$(function() {
$.messager.progress({
text : 'XXXX....',
interval : 100
});
$.parser.parse(window.document);
window.setTimeout(function() {
$.messager.progress('close');
if (self != parent) {
window.setTimeout(function() {
parent.$.messager.progress('close');
}, 500);
}
}, 1);
$.parser.auto = true;
});
i got the errors:$.messager.progress is not a function;
when i delete these code, there is an other error in the jsp page:$.messager.progress is not a function   (43 out of range 38)
how can i do??
4  General Category / EasyUI for jQuery / how to submit parameters from a HTML FORM ,and load data into datagrid.? on: July 14, 2012, 05:29:08 AM
hello,there is a question.
for example,i had a html form,and,it has some parameters, i want to submit these parameters to ACTION to search data, at last ,load these data into datagrid.
5  General Category / EasyUI for jQuery / how could the datagrid refresh Row when i click line-editing on: July 12, 2012, 08:23:39 AM
please check my code:
Code:
$('#department').datagrid(
{
title : '',
iconCls : 'icon-edit',
width : 600,
height : 350,
nowrap : false,
pageList : [ 10, 20, 30 ],
striped : true,
collapsible : true,
url : 'DepartmentAction!List.action',

sortOrder : 'desc',
remoteSort : false,
idField : 'did',
method : 'post',
singleSelect : true,
frozenColumns : [ [ {
field : 'ck',
checkbox : true
} ] ],
columns : [ [

{ field : 'dname',
title : '区县名称',
width : 200,
align : 'center',
editor : 'text'
},
{
field : 'dsort',
title : '排列顺序',
width : 100,
align : 'center',
editor : 'numberbox'
},
{
field : 'operator',
title : '操作列',
width : 200,

align : 'center',
formatter : function(value, row, index) {
if (row.editing) {
var s = '<a href="javascript:void(0);" onclick="saverow('
+ index + ')">save</a>';
var c = '<a href="javascript:void(0);" onclick="cancelrow('
+ index + ')" >can</a>';
return s + c;
} else {
var e = '<a href="javascript:void(0);" onclick="editrow('
+ index
+ ')" style="text-decoration: none;color: #800080;">edit</a> ';
var d = '<a href="javascript:void(0);" onclick="deleterow('
+ index
+ ')" style="text-decoration: none;color: #800080;">del</a>';
return e + d;

}
}
}

] ],
onBeforeEdit : function(index, row) {
row.editing = true;
alert(row.editing);
$('#department').datagrid('refreshRow', index);

count++;
},
onAfterEdit : function(index, row) {
row.editing = false;
$('#department').datagrid('refreshRow', index);
count--;

},
onCancelEdit : function(index, row) {
row.editing = false;
$('#department').datagrid('refreshRow', index);
count--;

},
pagination : true,
rownumbers : true,


});

});
function cancelrow(index) {
$('#department').datagrid('cancelEdit', index);
}
Is that right?
but when i click 'eidt',the 'action' is "edit" and "del",it should be "save" and "can"..
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!