Grouping new views' buttons with existing ones

I’ve been using dhtmlx Scheduler.MVC and I have got 3 different views by default: Day, Week and Month.

Now I added Year and Agenda views but I can’t group those 2 buttons on the top with the other 3 existing ones.
Which is the most proper way to aggregate those 5 buttons together just like the 3 default ones?

Best Regards,
Granvic

Hi,
position and css class of tabs can be managed from scheduler configuration code, so you can try code like following:

[code]var scheduler = new DHXScheduler(…);

scheduler.Config.fix_tab_position = false;

var views = scheduler.Views;
for (var i = 0; i < views.Count; i++)
{
views[i].TabPosition = i * 80 + i;
views[i].TabWidth = 80;
}

views[0].TabClass = “dhx_cal_tab_first”;
views[views.Count - 1].TabClass = “dhx_cal_tab_last”;[/code]

Heya,

Thank you so much Aliaksandr!
That was exactly what I was looking for!!
If I just knew there was the .fix_tab_position property… :stuck_out_tongue:

I just added this line inside the for method for some extra formatting:

 views[i].TabStyle = "margin-left:15px";

Best regards,
Granvic