EasyUI Forum
May 02, 2024, 09:53:48 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / EasyUI for jQuery / datagrid cells change background color on: December 05, 2016, 09:51:40 PM
hi guys..
i use this code to change background color if meet the condition, high or low. unfortunately, its works just at 1 cell. how to applied on the other cell?

Code:
<script>

$(function (){
var dg = $('#tbbe1b');
var col = dg.datagrid('getColumnOption','ti_507' );
col.styler = function(index,col){
if (col.ti_507<200 ){
return 'background-color:pink;color:blue;font-weight:bold'; //'background-color:#f6ced8';
}
else if (col.ti_507>239 ){
return 'background-color:pink;color:blue;font-weight:bold'; //'background-color:#f6ced8';
}
else  {
return (col.ti_507);
}
};
dg.datagrid('refreshRow',index);
});
</script>
2  General Category / General Discussion / drag drop time school table on: October 23, 2015, 07:21:44 PM
on the drag drop time school table tutorial,  is it possible to make it permanently? so when we want to reload the browser, it keep save there
3  General Category / General Discussion / Datagrid with pagination true , how to customize page size? on: March 28, 2014, 07:34:35 PM
how to change (customize) page list while datagrid pagination set true?  default 10 20 30 50 but i want to change 12, 100, 400
 
<table id="001" style="width:910px;height:480px" class="easyui-datagrid" url="data_001.php"  toolbar="#tb" pagination="true" rownumbers="false" fitcolumns="true" title="data 001">
4  General Category / General Discussion / datagrid's header horizontally on: July 19, 2013, 05:09:37 PM
can we create datagrid's header horizontally?
5  General Category / General Discussion / is it possible datagrid grow horizontally? on: June 16, 2013, 06:13:38 AM
hi ..

is it possible datagrid grow horizontally?
6  General Category / General Discussion / web print datagrid on: June 16, 2013, 02:31:17 AM
hi..

i tried to print  DataGrid, using jquery print preview plugin. but it does not look good .. the table is not visible, only the numbers are there ..

what should I use? any suggestions?
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!