Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tom on Jul 01, 2009 12:43
open dhtmlx forum
dhtmlxScheduler - dhx_cal_navline

Is it possible to not use the dhx_cal_navline component, so only the header and data sections display? Is it possible to hide the dhx_cal_date and dhx_cal_tab elements? My attempts to make these invisible or remove them causes the calendar to no longer render. I know that setCurrentView is parsing the meaning of "week" by looking at the name of the dhx_cal_tab, but it seems like there should be a way to hide it if there is only one calendar view allowable to the user.

Is it by design that the scheduler variable is not set before dhtmlXScheduler.templates.day_date is called to populate the calendar's display header? This prevents users from leveraging that information in deciding what information to display. (For example if you have the day columns say Day 1, Day 2, Day 3, etc it would be nice to display “Day 1 - Day n”). A work around would be to call setCurrentView a couple of times, but it seems like there should be a cleaner way.

Thanks,
-Tom
Answer posted by Support on Jul 02, 2009 04:59
>>Is it possible to not use the dhx_cal_navline component,
Add next line to scheduler initialization
            scheduler.xy.nav_height=0;
And change next line inside the html template 
           <div class="dhx_cal_navline" style='display:none;'>

>>dhtmlXScheduler.templates.day_date
All header-date templates (day_date, month_date, week_day ) receive two parameters
   - date of period start
   - date or period end
default template use only first one, but you can use both if need to show an interval data  

If you mean "scheduler._min_date" suggested in one of previous answers - later version of dhtmlxscheduler.js ( was attached to previous answer ) , already has correction, which makes such info available before template execution.