New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

RadPane Object

The following table lists the important RadPane client-side methods:

NameParametersReturn TypeDescription
collapseintegerbooleanCollapses the pane in the specified direction - 1: Forward; 2: Backward. Returns true on success, false otherwise.
expandintegerbooleanExpands the pane in the specified direction - 1: Forward; 2: Backward. Returns true on success, false otherwise.
get_collapsednonebooleanReturns true if the pane is collapsed, false if it is expanded.
resizeinteger, integernoneResizes the pane by the number of pixels given as the first argument in the direction given by the second argument (1 = backward, 2=forward). Note: This method should be also used to resize a RadSlidingPane which is docked in the RadPane.
getVarSizenoneintegerReturns the size of the pane in the resizable direction.
setVarSizeintegernoneSets the size of the pane in the resizable direction.
get_widthnoneintegerReturns the width of the pane.
get_heightnoneintegerReturns the height of the pane.
getVarMinSizenoneintegerReturns the minimum size of the pane in the resizable direction.
get_minWidthnoneintegerReturns the minimum width of the pane.
set_minWidthintegernoneSets the minimum width of the pane
get_minHeightnoneintegerReturns the minimum height of the pane
set_minHeightintegernoneSets the minimum height of the pane.
getVarMaxSizenoneintegerReturns the maximum size of the pane in the resizable direction.
get_maxWidthnoneintegerReturns the maximum width of the pane.
set_maxWidthintegernoneSets the maximum width of the pane.
get_maxHeightnoneintegerReturns the maximum height of the pane.
set_maxHeightintegernoneSets the maximum height of the pane.
getInnerWidthnoneintegerReturns the width of the pane, excluding borders. This is the width that is available for content.
getInnerHeightnoneintegerReturns the height of the pane, excluding borders. This is the height that is available for content.
locknonenoneLocks the pane, so that it is not resizable and not collapsible.
unlocknonenoneUnlocks the pane, so that it can be resized or collapsed.
isLockednonebooleanReturns whether the pane is locked.
get_lockednonebooleanReturns whether the pane is locked.
set_lockedbooleannoneSets whether the pane is locked.
isSplitterContainernonebooleanReturns true if the pane content consists of a nested splitter, false otherwise.
isExternalContentnonebooleanReturns true if the pane's content is externally loaded (the ContentUrl property is set), false otherwise.
get_contentUrlnonestringReturns the URL for externally loaded content.
set_contentUrlstringnoneSpecifies the URL for loading content from an external source.
getExtContentElementnoneHTML elementReturns the DOM element that holds externally-loaded pane content.
get_contentnoneHTMLReturns the HTML content of the pane when it is not externally loaded.
set_contentHTMLnoneSets the HTML content of the pane.
getContentElementnoneHTML elementReturns the DOM element that holds the pane content when it is not externally loaded.
get_indexnoneintegerReturns the position of the pane within its parent splitter.
printArraynonePrints the content of the pane. If the pane is not displaying external content, the printed content is formatted using the cssFiles whose paths are specified by the array elements.
get_splitternoneRadSplitterReturns the splitter to which the pane belongs.
getScrollPosnonepositionReturns the left and top positions of the scroll pane. The return value has two properties: left and top. See Example 1.
setScrollPosinteger, integernoneSets the left and top scrolling positions of the pane.
get_scrollingnoneTelerik.Web.UI.SplitterPaneScrollingReturns the value of the Scrolling property of the control.
set_scrollingTelerik.Web.UI.SplitterPaneScrollingnoneSets new value for the Scrolling property of the control.

Example 1: Using client-side getScrollPos() method.

JavaScript
var scrollPos = pane.getScrollPos();
var leftPos = scrollPos.left;
var topPos = scrollPos.top;				

See Also

In this article
See Also
Not finding the help you need?
Contact Support