Show Posts
|
Pages: 1 [2] 3 4 5
|
18
|
General Category / EasyUI for jQuery / Re: Conditional Cell Editing in Datagrid
|
on: December 25, 2017, 03:39:35 PM
|
Thanks for you reply,
but, how to set conditional edit for one cell depending of the row data?
Example: Grid for Pay Column1: Pay Type (CASH, BANK, CREDITCARD, ...) Column2: Bank Name (if Column1 Type is = 'BANK' set Cell Editing) Column3: Amount
Best regards
|
|
|
23
|
General Category / EasyUI for jQuery / Datagrid updateRow Error
|
on: December 13, 2017, 05:08:51 PM
|
Hi, I got the next code: <table id="g-customers" class="easyui-datagrid" style="width:750px;height:165px" url="myurl" singleSelect="true"> <thead> <th field="Id" hidden="true">ID</th> <th field="Name" width="80">Name</th> </tr> </thead> </table>
... ... ...
function Update(){ var row = $("#g-customers").datagrid("getSelected"); var rowIndex = $("#g-customers").datagrid("getRowIndex", row); $('#g-customers').datagrid('updateRow',rowIndex,{Id: "60",Name:"John"}); }
In the line $('#g-vtd').datagrid('updateRow',rowIndex,{Id: "60",Name:"John"}); I get the error: Uncaught TypeError: Cannot read property 'Id' of undefined thanks for advance
|
|
|
28
|
General Category / EasyUI for jQuery / Tree component problem
|
on: July 05, 2017, 02:01:14 PM
|
Hello, Please, I need help. I'm testing the Tree component but nothing is showing <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="http://localhost:8080/rest-jui/static/js/themes/icon.css"> <link rel="stylesheet" type="text/css" href="http://localhost:8080/rest-jui/static/js/themes/bootstrap/easyui.css"> <link rel="stylesheet" type="text/css" href="http://localhost:8080/rest-jui/static/js/themes/color.css"> <link rel="stylesheet" type="text/css" href="http://localhost:8080/rest-jui/static/js/themes/mp.css">
<script type="text/javascript" src="http://localhost:8080/rest-jui/static/js/jquery-1.8.0.min.js"></script> <script type="text/javascript" src="http://localhost:8080/rest-jui/static/js/jquery.easyui.min.js"></script> <script type="text/javascript" src="http://localhost:8080/rest-jui/static/js/locale/easyui-lang-es.js"></script> <script type="text/javascript" src="http://localhost:8080/rest-jui/static/js/jquery.maskedinput-1.4.1.min.js"></script>
<script type="text/javascript" src="http://localhost:8080/rest-jui/static/js/mpjs.js"></script> <script type="text/javascript" src="http://localhost:8080/rest-jui/static/js/plugins/DateFormatter/dateformatter.js"></script> <script type="text/javascript" src="http://localhost:8080/rest-jui/static/js/jquery.blockUI.js"></script>
<script type="text/javascript"> $(function(){
$('#tt2').tree({ url: 'http://localhost:8080/rest-jui/rest/systree/todos', method: 'GET' });
}); </script>
</head> <body > <ul id="tt2"></ul> </body> </html>
These data are returned from the server when I invoke it from the url directly http://localhost:8080/rest-jui/rest/systree/todos[{id: 1,text:'Node 1',state: 'closed',children:[{id: 11,text: 'Node 11'},{id: 12,text: 'Node 12'}]},{id: 2,text: 'Node 2', state: 'closed'}] Thank for advance!
|
|
|
30
|
General Category / EasyUI for jQuery / Sending form data in Json format
|
on: July 01, 2017, 06:59:40 AM
|
Hi, I want to send data from a form in Json format to server. I use this: $('#f-esp').form('submit', { url : .... contentType: 'application/json', dataType: 'json', onSubmit : function(param) { ....
But, the HTTP Header send it Content-Type:application/x-www-form-urlencodedthanks
|
|
|
|