Kentico CMS 6.0 Controls

Configuration

Configuration

Previous topic Next topic Mail us feedback on this topic!  

Configuration

Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic!  

The following properties of the BasicTabControl control can be set or used in the API:

 

Property Name

Description

Sample Value

HideControlForZeroRows

Hides the control when no data is loaded. Default value is False.

 

RenderedHTML

Allows you to get or set the HTML code rendered by the control.

 

You need to set this property before the Render event - e.g. in the OnLoad event.

 

RenderLinkTitle

Specifies if the TITLE tag of links should be rendered.

 

SelectedTab

Index of the selected tab.

 

SelectFirstItemByDefault

Indicates whether the first tab should be selected by default.

 

TabControlIDPrefix

Prefix that will be used for all IDs in the HTML code rendered by the BasicTabControl. It's useful if you need to place multiple tab controls on the same page.

"FirstTab"

TabControlLayout

Specifies the layout of the tab control.

"Horizontal"

"Vertical"

Tabs

A 2 dimensional string array where each row represents a tab and the columns represent the following:

 

tabs[0, 0] = title

tabs[0, 1] = OnClick JavaScript

tabs[0, 2] = URL

tabs[0, 3] = tooltip

tabs[0, 4] = left image URL

tabs[0, 5] = center image URL

tabs[0, 6] = right image URL

 

Please note:

 

1.The image URLs in columns 4, 5 and 6 are optional.

2.If you specify the center image URL, the image is displayed instead of the title.
 

tabs[0, 0] = " Home ";

tabs[0, 1] = "alert('It is very simple!');";

tabs[0, 2] = "http://www.kentico.com";

tabs[0, 3] = "Some tooltip";

tabs[0, 4] = "leftimage.gif";

tabs[0, 5] = "centerimage.gif";

tabs[0, 6] = "rightimage.gif";

 

UrlTarget

If a URL is set for tab items, this property specifies the target frame for all URLs.

"_blank"

UseClientScript

Indicates if client script should be generated for each tab.

 

UsePostback

Indicates if postback should be fired when a tab is clicked.

 

ZeroRowsText

Text to be shown when the control is hidden by  the HideControlForZeroRows property.

"No records found."