Hello,
I would like the user to have the ability to zoom in and out of a Day view.
I've added the following to the toolbar;
<Toolbar>
<ClientTemplate>
<a class="k-button" onclick="return ganttZoomIn(this, event)" title="Zoom In">+</a>
<a class="k-button" onclick="return ganttZoomOut(this, event)" title="Zoom Out">-</a>
</ClientTemplate>
</Toolbar>
and the following javascript;
function ganttZoomIn(button, ev)
{
var gantt = $find("<%= RadGannt1.ClientID %>");
gantt._viewsData[0].slotSize += 10;
}
function ganttZoomOut(button, ev)
{
var gantt = $find("<%= RadGantt1.ClientID %>");
gantt._viewsData[0].slotSize -= 10;
}
But the changes to the slot size is not changing the Gantt.
Can the slot size be updated using javascript?
Thanks,
Matt