EasyUI Forum
September 12, 2024, 02:48:20 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
46  General Category / EasyUI for jQuery / Re: What dependencies when using easyloader and ribbon extensions on: January 21, 2020, 02:28:24 AM
Perfect, thanx!
47  General Category / EasyUI for jQuery / What dependencies when using easyloader and ribbon extensions on: January 18, 2020, 07:24:02 PM
Hi, I use ribbon extension and easyloader. Now I can't find what dependencies to set?
Code:
$.extend(easyloader.modules, {
ribbon: {
js: '../ribbon/jquery.ribbon.js'
, dependencies: [???]
}
});
Thanks for advice!
48  General Category / EasyUI for jQuery / Re: how to get a is_DataGrid_Filter_Row true/false property out-of the datagrid? on: December 09, 2019, 01:02:49 PM
Works fine now. Many thanks!
49  General Category / EasyUI for jQuery / how to get a is_DataGrid_Filter_Row true/false property out-of the datagrid? on: December 07, 2019, 03:42:47 PM
Using "DataGrid Filter Row" extension, I want to toggle the Filter Row on and off. How can I do that?
My code turning the filter row on and off works and it looks like this:
Code:
function dg_clickHeaderMenu(target) {
menu.menu('appendItem', { text: 'Filter', handler: function () { dg.datagrid('enableFilter'); } });
menu.menu('appendItem', { text: 'No filter', handler: function () { dg.datagrid('disableFilter'); } });
menu.menu('show', {left: 25 + $(target).offset().left, top: -(0) - 10 + $(target).offset().top, align: 'right' });
}

However I want to make it conditionally so either "Filter" or "No filter" is shown dependant on if the filter is there.  

So what I would like to have is something similar to:
Code:
function dg_clickHeaderMenu(target) {
var filter = ???
if (filter) {
menu.menu('appendItem', { text: 'No filter', handler: function () { dg.datagrid('disableFilter'); } });
} else {
menu.menu('appendItem', { text: 'Filter', handler: function () { dg.datagrid('enableFilter'); } });
}
}

menu.menu('show', {left: 25 + $(target).offset().left, top: -(0) - 10 + $(target).offset().top, align: 'right' });
}

where my question is - how do I get the "DataGrid Filter Row" true / false property out-of the datagrid plugin?
50  General Category / EasyUI for jQuery / Re: Upgrading error on: November 08, 2019, 11:02:01 AM
Hi Jarry,

Looking at your example it points to a 1.5 file while I experience the problem in 1.8.8.

Please advice.
51  General Category / EasyUI for jQuery / Upgrading error on: November 07, 2019, 03:55:54 AM
Upgrading from ver 1.8.5 to 1.8.8 gives the following error message when reloading page.

I stripped the code down and it seems to be the using() function causing the problem:

Code:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script src="jquery/jquery-3.4.1.min.js"></script>
<script src="easyui/easyloader.js"></script>
</head>
<body>
<link href="my.css" rel="stylesheet" />
<div id="dlg"></div>
<script type="text/javascript">
using(['tabs', 'layout'], function () {

});
</script>
</body>
</html>

Any ideas?
52  General Category / EasyUI for jQuery / Adding an onBeginDelete event to datagrid on: September 28, 2019, 03:03:59 AM
Hi, For the datagrid I like crud built into events like onBeginEdit and onAfterEdit. This approach would benefit having onBeginDelete event witch is missing. Can one be added?
53  General Category / EasyUI for jQuery / Re: Using easyloader and extensions on: September 13, 2019, 05:36:34 PM
Indeed, works fine! Thank you!
54  General Category / EasyUI for jQuery / Using easyloader and extensions on: September 08, 2019, 03:01:20 AM
Hi, I'm using easyloader. Is there a way to include dependant extension libraries better than this?
Code:
using(['datagrid'], function () {
using('datagrid-filter/datagrid-filter.js', function () {
using('edatagrid/jquery.edatagrid.js', function () {
// ... code
});
});
});
Could something like this work?
Code:
using(['datagrid','datagrid-filter','edatagrid'], function () {
// ... code
});
any suggestions how to do this the best way?
55  General Category / EasyUI for jQuery / Re: about using plugins folder easyui on: September 05, 2019, 11:43:27 PM
How about the extension library? How do I include e.g. DataGrid Filter Row?

Code:
using(['datagrid'], function(){
   var dg = $('#dg');
   dg.datagrid();    // create datagrid
   dg.datagrid('enableFilter');    // enable filter
});
56  General Category / EasyUI for jQuery / Re: Dialog with layouts not resizing on: August 30, 2019, 07:28:34 AM
Wonderful jahangir, this really is a nice solution and it helps a lot. Thank you very much!
57  General Category / EasyUI for jQuery / Re: Dialog with layouts not resizing on: August 30, 2019, 03:08:59 AM
Thank you jahangir. In the following example there is no extra code for resizing and still it works:
https://www.jeasyui.com/demo/main/index.php?plugin=Window&theme=material-teal&dir=ltr&pitem=&sort=asc
(clicking 'Window Layout' example)

Do you believe is it possible get the same behavior using js, so I don't need the extra function for resizing?
58  General Category / EasyUI for jQuery / Dialog with layouts not resizing on: August 29, 2019, 06:41:17 PM
I have the following code for creating a re-sizable dialog box in js. However resize makes the layout panels not following the dialogue box. I tried to add fit:true but it does not help.
Please advice.
Code:
function my_dialog() {
using(['dialog'], function () {
var $myDialog = $("<div/>", { id: 'dlg' });
$myDialog.dialog({ width: 400, height: 200, resizable: true });
$myDialog.layout();
$myDialog.layout('add', { region: 'center', content: 'center'});
$myDialog.layout('add', { region: 'west', content: 'west', width: 200, split: true });
});
}
59  General Category / EasyUI for jQuery / Re: Tool-tipping for menu on: July 16, 2019, 11:07:46 AM
Hi, Tool-tipping works fine now, thanks a lot! BR
60  General Category / EasyUI for jQuery / Re: Tool-tipping for menu on: July 09, 2019, 02:18:45 AM
Hi Jarry,
I know this solution but want to add this dynamically to whole menu. I added the attribute "tooltip" containing the text to populate. Is there a way to loop the menu recursively and add an easyui-tooltip to each the button?
Pages: 1 2 3 [4] 5
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!