I copied and pasted the demo code to do various tasks on the sliding panes because I could not get it to work.
Every thing I try gives me a javascript error saying method is not supported. Below is your code which I used. My guess is that my version and the version used in the Demo are different, but I can't find what version that demo is for. My Telerik.Web.UI is version 2009.3.1314.35
Any help would be appreciated.
Every thing I try gives me a javascript error saying method is not supported. Below is your code which I used. My guess is that my version and the version used in the Demo are different, but I can't find what version that demo is for. My Telerik.Web.UI is version 2009.3.1314.35
Any help would be appreciated.
<
script
type
=
"text/javascript"
>
/***********************************************
Sliding Zone examples
***********************************************/
function GetZoneState ()
{
var slidingZone = $find("SlidingZone1");
var zoneState = slidingZone.get_clientState();
alert(zoneState);
}
/***********************************************
Pane examples
***********************************************/
function ToggleEnableResize(paneID)
{
var slidingZone = $find("SlidingZone1");
var pane = slidingZone.getPaneById(paneID);
if (!pane) return;
pane.set_enableResize(!pane.get_enableResize());
slidingZone.collapsePane(pane.get_id());
slidingZone.expandPane(pane.get_id());
}
function ToggleEnableDock(paneID)
{
var slidingZone = $find("SlidingZone1");
var pane = slidingZone.getPaneById(paneID);
if (!pane) return;
pane.set_enableDock(!pane.get_enableDock());
slidingZone.undockPane(pane.get_id());
slidingZone.collapsePane(pane.get_id());
slidingZone.expandPane(pane.get_id());
}
function GetPaneState(paneID)
{
var slidingZone = $find("SlidingZone1");
var pane = slidingZone.getPaneById(paneID);
if (!pane) return;
var paneState = pane.get_clientState();
alert(paneState);
}
function ToggleExpandPane(paneID)
{
var slidingZone = $find("SlidingZone1");
var expandedPaneId = slidingZone.get_expandedPaneId();
if (expandedPaneId == null || expandedPaneId != paneID)
{
slidingZone.expandPane(paneID);
}
else
{
slidingZone.collapsePane(paneID);
}
}
function ToggleDockPane(paneID)
{
var slidingZone = $find("SlidingZone1");
var dockedPaneId = slidingZone.get_dockedPaneId();
if (dockedPaneId == null || dockedPaneId != paneID)
{
slidingZone.collapsePane(paneID);
slidingZone.dockPane(paneID);
}
else
{
slidingZone.undockPane(paneID);
}
}
function TogglePaneTabVisibility(paneID)
{
var slidingZone = $find("SlidingZone1");
var pane = slidingZone.getPaneById(paneID);
if (pane.isTabDisplayed())
{
pane.hideTab();
}
else
{
pane.showTab();
}
}
function ChangePaneContent (paneID)
{
var slidingZone = $find("SlidingZone1");
var pane = slidingZone.getPaneById(paneID);
if (!pane) return;
pane.setContent('This is the NEW pane content ...');
slidingZone.collapsePane(pane.get_id());
slidingZone.expandPane(pane.get_id());
}
function ChangePaneWidth (paneID)
{
var slidingZone = $find("SlidingZone1");
var pane = slidingZone.getPaneById(paneID);
if (!pane) return;
var newWidth = (pane.get_width() == 200) ? 100 : 200 ;
pane.set_width(newWidth); // set the width
slidingZone.collapsePane(pane.get_id());
slidingZone.expandPane(pane.get_id());
}
function ToggleClickToOpen ()
{
var slidingZone = $find("SlidingZone1");
slidingZone.set_clickToOpen(!slidingZone.get_clickToOpen());
alert("'ClickToOpen' property set to [" + slidingZone.get_clickToOpen() + "]");
}
function ToggleDockOnOpen (paneID)
{
var slidingZone = $find("SlidingZone1");
var pane = slidingZone.getPaneById(paneID);
if (!pane) return;
pane.set_dockOnOpen(!pane.get_dockOnOpen());
alert("'DockOpen' property set to [" + pane.get_dockOnOpen() + "]");
}
</
script
>