Smart Rendering and loading notification
This sample demonstrates how loading notification can be set
Loading portion of data
Loading
</> Source
<!DOCTYPE html>
<!--pro-->
<html>
<head>
<title>Smart Rendering and loading notification</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<link rel="stylesheet" type="text/css" href="../../../codebase/fonts/font_roboto/roboto.css"/>
<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/>
<script src="../../../codebase/dhtmlx.js"></script>
<script>
var myGrid;
function doOnLoad(){
myGrid = new dhtmlXGridObject('gridbox');
myGrid.setImagePath("../../../codebase/imgs/");
myGrid.setHeader("A,B,C,D,E,F,J,H");
myGrid.setInitWidths("50,100,250,70,70,70,70,100");
myGrid.setColAlign("right,left,left,right,center,left,center,center");
myGrid.setColTypes("ed,ed,ed,price,ch,co,ro,ro");
var combobox = myGrid.getCombo(5);
combobox.put("1","1 Hour");
combobox.put("12","12 Hours");
combobox.put("24","24 Hours");
combobox.put("48","2 days");
combobox.put("168","1 week");
combobox.put("pick","pick up");
combobox.put("na","na");
myGrid.attachEvent("onXLS",function(){ document.getElementById("a_1").style.display="block"; });
myGrid.attachEvent("onXLE",function(){ document.getElementById("a_1").style.display="none"; });
myGrid.attachEvent("onXLS",function(){
document.getElementById('cover').style.display='block';
});
myGrid.attachEvent("onXLE",function(){
document.getElementById('cover').style.display='none';
});
myGrid.enableAutoWidth(true);
myGrid.init();
myGrid.enableSmartRendering(true,50);
myGrid.load("php/dynload_slow.php");
}
</script>
</head>
<body onload="doOnLoad()">
<h1>Smart Rendering and loading notification</h1>
<p>This sample demonstrates how loading notification can be set</p>
<div style="height:20px">
<div id="a_1" style="color:red;">Loading portion of data</div>
</div>
<div style='position:relative; height:250px; width:600px;'>
<div id="gridbox" style="width:800px;height:450px;overflow:hidden"></div>
<div id="cover" style='font-size:32pt; text-align:center; font-family:Tahoma; color:red; position:absolute; top:35px; left:1px; width:800px; height:420px; background-color:silver; opacity:0.3; -moz-opacity:0.3; filter:alpha(opacity=30);'>
Loading
</div>
</div>
</body>
</html>
Documentation
Check documentation to learn how to use the components and easily implement them in your applications.