Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Vineetha on Nov 27, 2009 19:10
open dhtmlx forum
Problems after changing hour scale

Hii

One more issue regarding the hour scale. As you have answered i have changed the hour scale like your code shown below
<style type="text/css" media="screen">
.dhx_scale_hour{
line-height:normal;
}
</style>

<script>
var step = 15;
var format = scheduler.date.date_to_str("%H:%i");

scheduler.config.hour_size_px=(60/step)*21;
scheduler.templates.hour_scale = function(date){
html="";
for (var i=0; i<60/step; i++){
html+="<div
style='height:21px;line-height:21px;'>"+format(date)+"</div>";
date = scheduler.date.add(date,step,"minute");
}
return html;
}
<script>

the hour sclae changed asper my requirement but when i take the light box its size is increased and the time divisions on the hour scale are vertically displayed on the lightbox and one more thing the start time and end time changed to non-formatted values

please tell me the reason
Thank You
Vineetha
Answer posted by Alex (support) on Nov 30, 2009 01:39

Hi

the customization of hour scale template will be supported in the next scheduler version. This version will be released in few days.