KaxTabControlDataNavigateUrlField Property |
Gets or sets the field of the data source that provides the URL to which tabs navigate.
Namespace: Kettic.AspNet.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntaxpublic override string DataNavigateUrlField { get; set; }
Public Overrides Property DataNavigateUrlField As String
Get
Set
public:
virtual property String^ DataNavigateUrlField {
String^ get () override;
void set (String^ value) override;
}
abstract DataNavigateUrlField : string with get, set
override DataNavigateUrlField : string with get, set
Property Value
Type:
String
A string that specifies the field of the data source that provides the URL to which tabs will navigate.
The default value is empty string.
Remarks
Use the DataNavigateUrlField property to specify the field of the data source (in most cases the name of the database column)
which provides the values for the
NavigateUrl property of databound tabs.
The DataNavigateUrlField property is taken into account only during data binding. If the DataNavigateUrlField property
is not set the
NavigateUrl property of databound tabs will have its default value - empty string.
Examples
The following example demonstrates how to use the DataNavigateUrlField.
DataTable data = new DataTable();
data.Columns.Add("MyText");
data.Columns.Add("MyUrl");
data.Rows.Add(new object[] {"Tab Text 1", "http://www.example.com/page1.aspx"});
data.Rows.Add(new object[] {"Tab Text 2", "http://www.example.com/page2.aspx"});
KaxTabControl1.DataSource = data;
KaxTabControl1.DataTextField = "MyText";
KaxTabControl1.DataNavigateUrlField = "MyUrl";
KaxTabControl1.DataBind();
Dim data As new DataTable();
data.Columns.Add("MyText")
data.Columns.Add("MyUrl")
data.Rows.Add(New Object() {"Tab Text 1", "http://www.example.com/page1.aspx"})
data.Rows.Add(New Object() {"Tab Text 2", "http://www.example.com/page2.aspx"})
KaxTabControl1.DataSource = data
KaxTabControl1.DataTextField = "MyText"
KaxTabControl1.DataValueField = "MyUrl"
KaxTabControl1.DataBind()
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also