EasyUI Forum
May 07, 2024, 05:38:13 AM *
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
31  General Category / EasyUI for jQuery / Re: Tabs with tools on: May 13, 2019, 01:06:32 AM
Please check this example.
http://code.reloado.com/jbhatti/11/edit#preview
32  General Category / EasyUI for jQuery / Re: vertical text in datagrid header - PLS ANY HELP (I know a style issue, but need) on: May 08, 2019, 01:29:50 AM
Quote
but the css does not work when table created without cols and cols done dynamically like

It works with dynamically created columns just set header text alignment, rotation, size and position after the grid is created and loaded with data.
plz see below example with dynamically created columns.

http://code.reloado.com/jbhatti/10/edit

Quote
below code is applying to all datagrids in the page, any idea how I can scope only to the one with ID="abc"?
Tried all I can think of like #abc.datagrid-header-row or #abc .datagrid-header-row
Code:
.datagrid-header-row
{
   height:150px;
   vertical-align: bottom;
}

use this code to set header height and vertical alignment

Code:
var hd = dg.datagrid('getPanel').find('div.datagrid-header');		   
hd.css('height','100px');
var hr = dg.datagrid('getPanel').find('div.datagrid-header .datagrid-header-row');  
hr.css('vertical-align','bottom');
33  General Category / EasyUI for jQuery / Re: How can I set checkbox and radiobutton readonly? on: May 07, 2019, 09:25:17 PM
Set disabled property to true.
Code:
 <input class="easyui-checkbox" disabled="true" name="fruit" value="Apple" label="Apple:">

or try this to make it readonly but not disabled..

Code:
<input class="easyui-checkbox" name="fruit" value="Apple" label="Apple:" 
    data-options="
onChange:function(checked){
  $(this).checkbox({checked: !checked});  
}
">
34  General Category / EasyUI for jQuery / Re: How can I set checkbox and radiobutton readonly? on: May 07, 2019, 06:09:38 AM
Try this
This will  work for both checkbox and radiobutton.
Code:
<input type="checkbox" onclick="return false;"/>
35  General Category / EasyUI for jQuery / Re: vertical text in datagrid header - PLS ANY HELP (I know a style issue, but need) on: May 07, 2019, 04:01:41 AM
Add following css to set column header height and alignment to bottom.
Code:
.datagrid-header-row{ 
   height:100px;
   vertical-align: bottom;
}


and use following js code to rotate text in header.
plz dont forget to set column resizable property to false because column resizing will reset all these settings.

Code:
var dg = $('#dg')

var cell_1 = dg.datagrid('getPanel').find('div.datagrid-header td[field="attr1"] .datagrid-cell');
var span_1 = dg.datagrid('getPanel').find('div.datagrid-header td[field="attr1"] span');

span_1.css('display','block');
span_1.css('transform','rotate(-90deg)');
span_1.css('width','100px');
span_1.css('position','relative');
span_1.css('left','10px');
span_1.css('top','36px');

cell_1.css('width','250px');
cell_1.css('height','100px');



Please refer to following example

http://code.reloado.com/jbhatti/9/edit#preview
36  General Category / EasyUI for jQuery / Re: How can put drop event in datagrid from external drag like files on: April 01, 2019, 11:08:10 PM
Please see attached axample files.
37  General Category / EasyUI for jQuery / Re: Change easyui Theme dynamically on: March 30, 2019, 02:31:59 AM
1- First of all give an id to your theme style sheet link.

Code:
<link id="theme_style" rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/default/easyui.css">

2- Add following javascript code.

Code:
<script>  
        /*declare variable to store theme style sheet links*/
var theme_styles = {
'default': 'http://www.jeasyui.com/easyui/themes/default/easyui.css',
'black': 'http://www.jeasyui.com/easyui/themes/black/easyui.css',
'gray': 'http://www.jeasyui.com/easyui/themes/gray/easyui.css'       
};
   
/*function to change themes*/
function changetheme(themname){
$('#theme_style').attr('href', theme_styles[themname]);
}       
</script>

3- Calll the changetheme function by passing your theme name as parameter .

Code:
changetheme('black');


Please see attached example file.
38  General Category / EasyUI for jQuery / Re: How to execute some javascript code when Document/Window ready/onLoad on: March 28, 2019, 06:04:13 AM
Please check attached example files.


https://we.tl/t-hjsKpIGtuz
39  General Category / EasyUI for jQuery / Re: How to execute some javascript code when Document/Window ready/onLoad on: March 28, 2019, 03:18:30 AM
Please try to put some delay in your code.

Code:
setTimeout(function(){
$('#dtFrom').datebox('setValue',dfrom);   
        $('#dtTo').datebox('setValue',dto); 
}, 100);
40  General Category / EasyUI for jQuery / Re: how to add dynamically combobox from database on: March 21, 2019, 11:23:57 PM
EasyUI controls can't be creaded by just appending the html tags after DOM is fully loaded, you have to re-create it with the javascript after appending html tags.

Plese try this in you ajax call success function.

Code:
document.getElementById('mybody').innerHTML =data[0].model;
$("[name='dataku']").combobox();
41  General Category / EasyUI for jQuery / Re: Tab height on: March 15, 2019, 09:55:27 PM
In your above example page please wrap the 'tt2' in separate div and apply your css class 'tt2_class' to that div and in 'tt2' data-options set fit property to true.

Code:

<style>
   html,body,form {
      height: 95%;
   }

   .tt2_class {
      height: calc(100% - 100px);
   }
</style>

<body>
   
   
   <div id="tt1" class="easyui-tabs" border="true" style="height:100px;">
  <div title="Tab1">
Hello 1
  </div>
   </div>
   

   <div class="tt2_class">   
   <div id="tt2" class="easyui-tabs" border="true" data-options="fit:'true'"/>
  <div title="Tab2">
Hello 2
  </div>
   </div>
   </div>   
   
</body>





Or if you want to do it with javascript try this.

Code:

var tt1_height = $('#tt1').tabs('options').height;
$('#tt2').tabs({height:$(window).height()-tt1_height});

42  General Category / EasyUI for jQuery / Re: Deleting datagrid row on: March 12, 2019, 10:07:26 PM
Try this

Code:
 $('#dg').datagrid('getPanel').panel('panel').attr('tabindex', 1).bind('keydown', function (e) {
if (e.keyCode == 46) {  
  var dg = $('#dg');
  var row = dg.datagrid('getSelected');
  if(row){
  var row_index = dg.datagrid('getRowIndex', row);
  dg.datagrid('deleteRow', row_index);    
  }
}
});
43  General Category / EasyUI for jQuery / Re: Clear combobox if value does not exists in loaded data on: February 22, 2019, 10:58:24 PM
Thank's stworthy it solved my problem.
44  General Category / EasyUI for jQuery / Clear combobox if value does not exists in loaded data on: February 21, 2019, 10:51:20 PM
How to clear entered text in easyui combobox  if it does not exists in loaded data.
45  General Category / EasyUI for jQuery / Re: Hide ul in easyui-accordion on: February 18, 2019, 12:00:07 AM
Thank's jarry it works.
Pages: 1 2 [3] 4
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!