EasyUI Forum
April 28, 2024, 03:07:07 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: 1 2 [3] 4 5 ... 239
31  General Category / EasyUI for jQuery / Re: How to make tooltip in datagrid footer? on: December 18, 2019, 01:19:49 AM
Please look at this example http://code.reloado.com/imahey3/edit#preview
32  General Category / EasyUI for jQuery / Re: Update datagrid row in function on: December 18, 2019, 01:08:56 AM
Please refer to this code.
Code:
var row = {};
row[field] = value;
$('#table_contacts_contacts').datagrid('updateRow', {
index: i,
row: row
})
33  General Category / EasyUI for jQuery / Re: How to display frozen columns both on left and right sides of DataGrid? on: December 18, 2019, 01:07:11 AM
The frozen columns can only be displayed on either left side or right side.
34  General Category / News / jQuery EasyUI 1.9.0 Release on: December 05, 2019, 02:23:07 AM
We are pleased to announce the availability of jQuery EasyUI 1.9.0.

  • Some bugs in previous version are fixed.
  • Some new properties and methods are added.
  • The timepicker plugin is added.
  • ...

Please visit https://www.jeasyui.com/download/v19.php to see more details.
35  General Category / EasyUI for jQuery / Re: data-options with ' on: December 05, 2019, 02:18:48 AM
Please use this code instead.
Code:
<div id="expectdonedate-label" class="textbox-label">Deliverer&#039;s Expected Completion Time</div>
<input id="expectdonedate" type="text" class="easyui-numberspinner" style="width:95%" value="1" data-options="label:$('#expectdonedate-label'),labelPosition:'top',min:1,max:700,buttonText:'Day(s)',buttonAlign:'right',required:true">
36  General Category / General Discussion / Re: extend linkbutton to prevent double click. on: November 14, 2019, 02:43:02 AM
You can redefine the behaviour of the linkbutton. Please refer to this code.
Code:
(function($){
function fix(target){
$(target).off('click.linkbutton').on('click.linkbutton', function(){
var opts = $(this).linkbutton('options');
if (!opts.disabled){
if (opts.toggle){
if (opts.selected){
$(this).linkbutton('unselect');
} else {
$(this).linkbutton('select');
}
}
// $(this).linkbutton('disable')
// setTimeout(function(){
// $(target).linkbutton('enable')
// },1000)
opts.onClick.call(this);
}
})
}
var plugin = $.fn.linkbutton;
$.fn.linkbutton = function(options, param){
if (typeof options == 'string'){
return plugin.call(this, options, param);
} else {
return this.each(function(){
plugin.call($(this), options, param);
fix(this);
});
}
}
$.fn.linkbutton.defaults = plugin.defaults;
$.fn.linkbutton.methods = plugin.methods;
$.fn.linkbutton.parseOptions = plugin.parseOptions;
})(jQuery);
37  General Category / EasyUI for jQuery / Re: Use filebox in crud on: November 05, 2019, 08:07:06 PM
Listen to the 'onChange' event and then call the 'files' method, you can retrieve all the information about the files you selected including name, size, type, etc. Please look at the code below.
Code:
<input class="easyui-filebox" data-options="
onChange: function(value){
var files = $(this).filebox('files');
console.log(files)
}
">
38  General Category / EasyUI for React / Re: Right Click to show Context Menu on Datagrid Cell on: November 04, 2019, 08:26:09 PM
Please refer to the code below:
Code:
handleCellContextMenu({row,column,originalEvent}){
originalEvent.preventDefault()
console.log(originalEvent)
}

<DataGrid data={this.state.data} style={{height:250}}
  onCellContextMenu={this.handleCellContextMenu.bind(this)}
>
39  General Category / EasyUI for jQuery / Re: show checkbox on grid on: November 04, 2019, 08:09:14 PM
Please define the 'formatter' function to render the specified column.
Code:
{field:'isPaid',width: 50,align:'center',
formatter: function(value){
return '<input type="checkbox" disabled '+(value?'checked':'')+'>';
}
},
40  General Category / EasyUI for jQuery / Re: Use filebox in crud on: November 04, 2019, 08:02:56 PM
Please refer the the code below.
Code:
<form id="ff" action="..." enctype="multipart/form-data" method="post">
<input class="easyui-filebox" name="file"...>
</form>
41  General Category / EasyUI for jQuery / Re: How to create more than one checkbox in datagrid and how to know it is checked?? on: October 31, 2019, 07:24:08 AM
You can define the 'formatter' function for a column to render a checkbox column. Please refer to http://code.reloado.com/avipiz/edit#preview
42  General Category / EasyUI for jQuery / Re: How to hide row in treegrid on: October 29, 2019, 07:59:25 PM
Please try this code to hide a row.
Code:
var target = this;
var finder = $(target).treegrid('options').finder;
$(target).treegrid('getChildren').forEach(function(row){
if (row.id==21){
finder.getTr(target,row.id).hide()
}
})
43  General Category / EasyUI for jQuery / Re: error on messager on: October 29, 2019, 07:52:45 PM
Please call this code instead.
Code:
$.messager.prompt({
title: 'Title',
msg: 'Here is a message!',
border: 'thin',
onOpen: function(){
//...
}
})
44  General Category / EasyUI for jQuery / Re: form with external input on: October 29, 2019, 07:37:26 PM
Please try to set the 'width' and 'height' for the <form> element.
Code:
<form id="frm1" .... style="width:800px;height:400px">
<div ... class="easyui-layout" fit="true">
...
45  General Category / General Discussion / Re: TypeError: $.data(...) is undefined on: October 28, 2019, 02:33:58 AM
Please look at this example https://www.jeasyui.com/demo/test/test8.html. It works fine.

test8_1.php
Code:
<table id="dg" data-options="fit:true,url:'test8_2.php'" class="easyui-datagrid">
<thead>
<tr>
<th field="categoryName" halign="center" width="200" sortable="true" align="left">Category</th>
<th field="categoryName2" halign="center" width="200" sortable="true" align="left">Category2</th>
</tr>
</thead>
</table>

test8_2.php
Code:
<?php

$data 
= array(
array('categoryName'=>'categoryName11','categoryName2'=>'categoryName12'),
array('categoryName'=>'categoryName21','categoryName2'=>'categoryName22'),
array('categoryName'=>'categoryName31','categoryName2'=>'categoryName32'),
);

echo 
json_encode($data);
Pages: 1 2 [3] 4 5 ... 239
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!