Categories | Question details Back To List | ||
dhtlmx schedular and multiple resourses, can I hide resources with no events on resource view? My resources consist of people who only work certain days. On days where they are not working and there are no events, I do not really want to display them, so that things are neater. Sorry for all my questions. Answer posted by Stanislav (support) on Oct 26, 2009 03:55 Can't be done without modifications in source code of unit's view. Answer posted by mahesh on Oct 26, 2009 08:34 Stan, Any thoughts as to where to start with the modification if I were to attempt it? Answer posted by Stanislav (support) on Oct 26, 2009 09:26 there is an inner structure scheduler._props.options which contains the list of possible columns ( this is list from 3rd parameter of createUnitsView command ) So you can use onBeforeViewChange , and based on the date and mode ( scheduler._date ) alter this list scheduler.attachEvent("onBeforeViewChange",function(mode,date,new_mode,new_date){ if (new_mode == "unit"){ ...alter list of options... scheduler._reset_scale(); //update x-scale } return true; }) Answer posted by mahesh on Oct 27, 2009 00:11 Thanks for the tip. It looks complicated and may take me a while if ever to figure out. |