Multiple unit views

Hi

I am trying to create two unit views at the top of the scheduler

One is for staff and the other resources

My problem is I open the scheduler on resources and it display 3 resources, then I click on staff and it display 4 staff members, but when I click on Resources again, it doesn’t want to change over

My code is as follows:

ESP Online Scheduler - Branch
<!-- end. info block -->

<div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'>
	<div class="dhx_cal_navline">
		<div class="dhx_cal_prev_button">&nbsp;</div>
		<div class="dhx_cal_next_button">&nbsp;</div>
		<div class="dhx_cal_today_button"></div>
		<div class="dhx_cal_date"></div>
		<div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
		<div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
		<div class="dhx_cal_tab" name="resource_tab" style="right:350px;"></div>
		<div class="dhx_cal_tab" name="unit_tab" style="right:280px;"></div>
		<div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
	</div>
	<div class="dhx_cal_header">
	</div>
	<div class="dhx_cal_data">
	</div>		
</div>

I would appreciate any help

Kind Regards

Hello,

Works just fine locally.
Can you reproduce this issue with our samples?
What version of dhtmlxScheduler are you using?

Kind regards,
Ilya

I am currently using version 3.0

I am able to display the extra tabs for the units at the top of the scheduler, but when i click on day the scheduler chance to day format but when i click on resource it does not change the schedule to display the resources, it stays on the day view.
The normal unit view (which I renamed to staff), day, week, month view works when i click on the different tabs, but not the resource tab that i added.

I will be happy to send the files that i am using if that will help, I have no idea why this is happening.

Kind Regards

Hello,

Oh, that was simple:

[code]scheduler.createUnitsView(“resources”,“section_id”,sections2);

scheduler.init(‘scheduler_here’,new Date(),“resources”);

[/code] Do you see the problem? :wink:

Kind regards,
Ilya

Actually I dont see a problem.

The reason I used

scheduler.init('scheduler_here',new Date(),"resources"); 

Is that when I open the page, the scheduler displays the 3 resources that i added, then I click on staff, then its displays the 4 staff names, but it doesnt click back to resources

Please tell me what I am missing, or am I doing it wrong?

<div class="dhx_cal_tab" name="resource_tab" style="right:350px;"></div>

should be resources_tab.

Best regards,
Ilya

:open_mouth: I can’t believe I missed that

Thank you very much :smiley: