EasyUI Forum
October 16, 2025, 07:34:12 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: 1 ... 5 6 [7] 8 9 10
 61 
 on: January 19, 2025, 03:51:37 AM 
Started by stephenl - Last post by stephenl
Please see below additional code in the hope this will help

Code:
var conf = {

options:{
fitColumns:true,
toolbar:'#toolbar',
columns:[[
{field:'name',title:'name',width:12},
{field:'amt1',title:'amt1',width:10,align:'right'},
{field:'amt2',title:'amt2',width:10,align:'right'},
{field:'total',title:'Total',width:10,align:'right',
styler: function(value,row,index){     
if (value.charAt(0) == '-'){
return 'color:red;';}
}},
{field:'adjust',title:'Adjust',width:10,align:'right',
styler: function(value,row,index){     
if (value.charAt(0) == '-'){
return 'color:red;';}
}},
{field:'balance',title:'Balance',width:10,align:'right',
styler: function(value,row,index){     
if (value.charAt(0) == '-'){
return 'color:red;';}
}},
]],
},

subgrid:{
options:{
fitColumns:true,
singleSelect:true,
autoUpdateDetail:false,
url:'scripts/database/get_costs.php',
foreignField:function(row){
var dp = $('#yearCombo').combobox('getValue');
                    return {
                        name:row.name,
                        year:dp
                    }},
columns:[[
{field:'date',title:'Date',width:8},
{field:'cst1',title:'Cost 1',width:7,halign:'center',align:'right',
styler: function(value,row,index){     
                if (value.charAt(0) == '-'){
      return 'color:red;';}
        }},
{field:'cst2',title:'Cost 2',width:7,halign:'center',align:'right'},
{field:'total_cst',title:'Total',width:7,halign:'center',align:'right'},
                        ]],
}
}
};

 62 
 on: January 15, 2025, 01:25:28 PM 
Started by jega - Last post by jega
Hi Jarry.

Nice, thanks

Jesper

 63 
 on: January 13, 2025, 07:18:28 PM 
Started by jega - Last post by jarry
Here is the extended method that will be included into next version.
Code:
(function ($) {
function findBy(target, field, value) {
var state = $.data(target, 'treegrid');
var result = null;
$.easyui.forEach(state.data, true, function (node) {
if (node[field] == value) {
result = node;
return false;
}
});
return result;
}
$.extend($.fn.treegrid.methods, {
findBy: function (jq, param) {
return findBy(jq[0], param.field, param.value);
}
})
})(jQuery)

 64 
 on: January 11, 2025, 02:43:11 PM 
Started by stephenl - Last post by stephenl
Hello

I have a nested Grid

The following styler works fine on the main grid, but not the sub grid

Code:
columns:[[
{field:'adjust',title:'Adjust',width:10,align:'right',
          styler: function(value,row,index){     
      if (value.charAt(0) == '-'){
                    return 'color:red;';}
}},
]],

Any suggestions why ??

Thank you

 65 
 on: January 11, 2025, 10:34:46 AM 
Started by harunrv - Last post by harunrv
most of control not renderin on
https://www.jeasyui.com/demo-angular/main/index.php
address

please update site


 66 
 on: January 09, 2025, 03:02:11 AM 
Started by jega - Last post by jega
Hi.

In tree there is a findby, but not in treegrid.  Shocked

 67 
 on: January 02, 2025, 03:23:19 PM 
Started by Wojak - Last post by Wojak
Hello,
I have a problem when cancelling an edit in datagrid, I have bootstrap 5.
It displays an error `No method named "destroy"`.
I know the error is caused by trying to use the method '$(_5b3).tooltip("destroy");' but it looks like bootstrap "overrides" this method

Is this a known problem?

Code:
Uncaught TypeError: No method named "destroy"
    at HTMLInputElement.<anonymous> (bootstrap.min.js:6:49629)
    at Function.each (jquery.min.js:2:2573)
    at w.fn.init.each (jquery.min.js:2:1240)
    at w.fn.init.jQueryInterface [as tooltip] (bootstrap.min.js:6:49527)
    at _5b2 (jquery.easyui.min.js:7827:9)
    at HTMLInputElement.<anonymous> (jquery.easyui.min.js:8041:1)
    at Function.each (jquery.min.js:2:2573)
    at w.fn.init.each (jquery.min.js:2:1240)
    at Object.destroy (jquery.easyui.min.js:8040:11)
    at $.fn.validatebox (jquery.easyui.min.js:8019:38)

 68 
 on: January 01, 2025, 03:12:58 PM 
Started by stephenl - Last post by jega
Hi.

Happy New Year.

Just say it. Your question is fundamental javascript and is off topic in this forum. You can find javascript programming on thousands of other sites.

Everyone in this forum looks for Q and A about easyui for jquery/vue/angular/react. ;-)

 69 
 on: December 31, 2024, 08:42:52 AM 
Started by stephenl - Last post by stephenl
Solved

var name = $('#name').val();




 70 
 on: December 31, 2024, 08:15:48 AM 
Started by stephenl - Last post by stephenl
Hello

I have the following

Code:
function doSearch(){
$('#dg').datagrid('load',{
name: $('#name').val(),
});
}

Which works well ie passed the parameters to server.

How would I save the parameter value to a var ??

Thank you


Pages: 1 ... 5 6 [7] 8 9 10
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!