Categories | Question details Back To List | ||||||||
Pager Header on a Tab Unit Hii!! How i'll do to pager the header section on a tab unit create with dhtmlxscheduler_units.js?? 'cause the header section of the units is very full and them see too piled. Thankss folks! Answer posted by Alex (support) on Nov 10, 2009 08:37 Hello, scheduler doesn't provide the paging bar for the units header. But it is possible to enable scrolls for this view. But this approach requuires modification in the dhtmlxscheduler.js. Please locate the this._cols[i]=Math.floor(summ/(count-i)); line here and replace it with the following: this._cols[i]=Math.max(200,Math.floor(summ/(count-i))); b.style.overflowX="auto"; where 200 is minimum unit width. Answer posted by Rose on Nov 12, 2009 12:26 hi there, I tried this solution and it adds a horizontal scrollbar, but the scroll bar scrolls only the calendar part of the data area, while the Unit headers remain in their original place. thank you!
Attachments (1)
Answer posted by Alex (support) on Nov 13, 2009 01:29 Hello, try to add the highlighted event handler too: this._cols[i]=Math.max(200,Math.floor(summ/(count-i))); Answer posted on Dec 11, 2009 01:50 To have drag and drop work sucessfully in scheduler._mouse_coords = function(ev){ you have to change pos.x-=getAbsoluteLeft(this._obj)+(this._table_view?0:this.xy.scale_width); with pos.x-=getAbsoluteLeft(this._obj)+(this._table_view?0:this.xy.scale_width)-this._els["dhx_cal_data"][0].scrollLeft; |