<
label
>Project : </
label
> <
telerik:RadComboBox
ID
=
"ComboBoxProjects"
Width
=
"180px"
runat
=
"server"
/>
protected
void
Page_Load(
object
sender, EventArgs e)
{
if
(!IsPostBack)
{
this
.ComboBoxProjects.Items.Add(
new
RadComboBoxItem(
"- Search in -"
));
this
.ComboBoxProjects.Items.Add(
new
RadComboBoxItem(
"All Platforms"
));
this
.ComboBoxProjects.Items.Add(
new
RadComboBoxItem(
"ASP.NET"
));
this
.ComboBoxProjects.Items.Add(
new
RadComboBoxItem(
"WinForms"
));
this
.ComboBoxProjects.Items.Add(
new
RadComboBoxItem(
"Silverlight"
));
this
.ComboBoxProjects.Items.Add(
new
RadComboBoxItem(
"WPF"
));
this
.ComboBoxProjects.Items.Add(
new
RadComboBoxItem(
"Reporting"
));
}
}
I am trying to figure out how to determine which item parent or child grid item is being process in the ItemDataBound event. My data set has two tables and unique names but trying to use: e.Item.OwnerTableView.DataMember does not give me the name of the table. For the detail records I am using Dim parentItem As GridDataItem = e.Item.OwnerTableView.ParentItem to determine if it is a parent or child item but I need to change the header property but can not figure out how to do this. I tried using Dim headeritem As GridHeaderItem = DirectCast(e.Item, GridHeaderItem) to determine parent or child but am not sure how to accomplish.
Any ideas how I can easily determine at the header level if I am processing the parent or child header?
Thanks
John
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="TestTabStrip.aspx.vb" Inherits="TestTabStrip" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
runat
=
"server"
>
<
title
></
title
>
</
head
>
<
body
style
=
"background-color: Gray;"
>
<
form
id
=
"form1"
runat
=
"server"
>
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
></
telerik:RadScriptManager
>
<
telerik:RadTabStrip
ID
=
"RadTabStrip1"
runat
=
"server"
EnabledEmbeddedSkins
=
"true"
Skin
=
"Forest"
>
<
Tabs
>
<
telerik:RadTab
PageViewID
=
"RadPageView1"
Text
=
"How We Work"
NavigateUrl
=
"TestNewListing.aspx"
Target
=
"_blank"
></
telerik:RadTab
>
<
telerik:RadTab
PageViewID
=
"RadPageView2"
Text
=
"Buying/Selling"
></
telerik:RadTab
>
<
telerik:RadTab
PageViewID
=
"RadPageView3"
Text
=
"Renting/Leasing"
></
telerik:RadTab
>
<
telerik:RadTab
PageViewID
=
"RadPageView4"
Text
=
"Trading"
></
telerik:RadTab
>
<
telerik:RadTab
PageViewID
=
"RadPageView5"
Text
=
"Vendors"
></
telerik:RadTab
>
<
telerik:RadTab
PageViewID
=
"RadPageView6"
Text
=
"Web Cams"
></
telerik:RadTab
>
</
Tabs
>
</
telerik:RadTabStrip
>
<
div
style
=
"background-color: White;"
>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
<
br
/>
</
div
>
</
form
>
</
body
>
</
html
>