Hi All,
I am building a grid with detailed table to show Departments and in the detailed table there are Persons and SubDepartments. I am trying to build another detailed table to show the Persons inside the SubDepartments, however I was the first Detailed table to have the expand button only if it is SubDepartments and not showing it when it is Persons inside the main Departments.
Here is what I have in the aspx;
| <radG:RadGrid ID="rgDep" runat="server" AutoGenerateColumns="False" GridLines="None" Skin="WebBlue"> |
| <MasterTableView DataKeyNames="ContactID" HierarchyLoadMode="ServerBind"> |
| <Columns> |
| <radG:GridBoundColumn DataField="ContactID" Display="False" HeaderText="ContactID" ReadOnly="True" |
| UniqueName="ContactID"> |
| </radG:GridBoundColumn> |
| <radG:GridBoundColumn DataField="Contact" HeaderText="Department" ReadOnly="True" UniqueName="Contact"> |
| <ItemStyle Font-Bold="True" /> |
| </radG:GridBoundColumn> |
| <radG:GridBoundColumn DataField="Ext" HeaderText="Extension" ReadOnly="True" UniqueName="Ext"> |
| </radG:GridBoundColumn> |
| <radG:GridBoundColumn DataField="Pager" HeaderText="Pager" UniqueName="Pager"> |
| </radG:GridBoundColumn> |
| <radG:GridBoundColumn DataField="Office" HeaderText="Office" UniqueName="Office"> |
| </radG:GridBoundColumn> |
| <radG:GridBoundColumn DataField="Fax" HeaderText="Fax" UniqueName="Fax"> |
| </radG:GridBoundColumn> |
| <radG:GridBoundColumn DataField="IP" HeaderText="IP" UniqueName="IP"> |
| </radG:GridBoundColumn> |
| </Columns> |
| <RowIndicatorColumn Visible="False"> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="19px"></HeaderStyle> |
| </ExpandCollapseColumn> |
| <DetailTables> |
| <radG:GridTableView runat="server" HierarchyLoadMode="Client" GroupLoadMode="Client" DataKeyNames="DepID, ContactID" HierarchyDefaultExpanded="True" Width="100%"> |
| <RowIndicatorColumn Visible="False"> |
| <HeaderStyle Width="20px" /> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn Visible="False"> |
| <HeaderStyle Width="19px" /> |
| </ExpandCollapseColumn> |
| <Columns> |
| <radG:GridBoundColumn DataField="ContactID" Display="False" HeaderText="ContactID" ReadOnly="True" |
| UniqueName="ContactID"> |
| </radG:GridBoundColumn> |
| <radG:GridBoundColumn DataField="ContactType" HeaderText="ContactType" UniqueName="ContactType"> |
| </radG:GridBoundColumn> |
| <radG:GridBoundColumn DataField="DepID" Display="False" HeaderText="DepID" |
| ReadOnly="True" UniqueName="DepID"> |
| </radG:GridBoundColumn> |
| <radG:GridBoundColumn DataField="Contact" HeaderText="Contact" UniqueName="Contact1"> |
| </radG:GridBoundColumn> |
| <radG:GridBoundColumn DataField="EXT" HeaderText="Ext" UniqueName="Ext1"> |
| </radG:GridBoundColumn> |
| <radG:GridBoundColumn DataField="Pager" HeaderText="Pager" UniqueName="Pager1"> |
| </radG:GridBoundColumn> |
| <radG:GridBoundColumn DataField="Office" HeaderText="Office" UniqueName="Office1"> |
| </radG:GridBoundColumn> |
| <radG:GridBoundColumn DataField="Fax" HeaderText="Fax" UniqueName="Fax1"> |
| </radG:GridBoundColumn> |
| <radG:GridBoundColumn DataField="IP" HeaderText="IP" UniqueName="IP1"> |
| </radG:GridBoundColumn> |
| </Columns> |
| <ParentTableRelation> |
| <radG:GridRelationFields DetailKeyField="DepID" MasterKeyField="ContactID" /> |
| </ParentTableRelation> |
| <DetailTables> |
| <radG:GridTableView runat="server" HierarchyLoadMode="Client" GroupLoadMode="Client" DataKeyNames="DepID" HierarchyDefaultExpanded="True" Width="100%"> |
| <RowIndicatorColumn Visible="False"> |
| <HeaderStyle Width="20px" /> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn Visible="False"> |
| <HeaderStyle Width="19px" /> |
| </ExpandCollapseColumn> |
| <Columns> |
| <radG:GridBoundColumn DataField="DepID" Display="False" HeaderText="DepID" |
| ReadOnly="True" UniqueName="DepID"> |
| </radG:GridBoundColumn> |
| <radG:GridBoundColumn DataField="Contact" HeaderText="Contact" UniqueName="Contact2"> |
| </radG:GridBoundColumn> |
| <radG:GridBoundColumn DataField="EXT" HeaderText="Ext" UniqueName="Ext2"> |
| </radG:GridBoundColumn> |
| <radG:GridBoundColumn DataField="Pager" HeaderText="Pager" UniqueName="Pager2"> |
| </radG:GridBoundColumn> |
| <radG:GridBoundColumn DataField="Office" HeaderText="Office" UniqueName="Office2"> |
| </radG:GridBoundColumn> |
| <radG:GridBoundColumn DataField="Fax" HeaderText="Fax" UniqueName="Fax2"> |
| </radG:GridBoundColumn> |
| <radG:GridBoundColumn DataField="IP" HeaderText="IP" UniqueName="IP2"> |
| </radG:GridBoundColumn> |
| </Columns> |
| <ParentTableRelation> |
| <radG:GridRelationFields DetailKeyField="DepID" MasterKeyField="ContactID" /> |
| </ParentTableRelation> |
| </radG:GridTableView> |
| </DetailTables> |
| </radG:GridTableView> |
| </DetailTables> |
| </MasterTableView> |
| <ClientSettings> |
| <Selecting AllowRowSelect="True" /> |
| </ClientSettings> |
| </radG:RadGrid> |
<
add assembly="Telerik.Charting, Version=2.0.3.0, Culture=neutral, PublicKeyToken=D14F3DCC8E3E8763"/>
<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/CTX.master" CodeBehind="frmRepairOrder.aspx.vb" Inherits="CtraxENet2.frmRepairOrder" Trace= "false" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Content" runat="server">

<
asp:Content ID="Content1" ContentPlaceHolderID="chp1" Runat="Server">
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="multipageProfile" SelectedIndex="1">
<Tabs>
<telerik:RadTab runat="server" Text="View Profile">
</telerik:RadTab>
<telerik:RadTab runat="server" Text="View Pics" Selected="True">
</telerik:RadTab>
</Tabs>
</telerik:RadTabStrip>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="chp2" Runat="Server">
<telerik:RadMultiPage ID="multipageProfile" runat="server" SelectedIndex="1">
<telerik:RadPageView ID="viewProfile" runat="server">
Profile Page
</telerik:RadPageView>
<telerik:RadPageView ID="viewPics" runat="server">
Pics Page
</telerik:RadPageView>
</telerik:RadMultiPage>
</asp:Content>
The problem is that if the multipage view is in ContentPlaceHolder "chp2", it does not allow the tabstrip to control it. It works perfect if I move the multipage to "chp1".
Thanks for the help.
<
table width="751" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" align="left" width="30%">
<table width="214" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="240" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right" valign="bottom" width="0%" style="width: 11px">
<img src="images/blue_top_left.gif" alt="top" /></td>
<td valign="bottom" class="BlueTop" width="100%">
</td>
<td align="left" valign="bottom" width="0%">
<img src="images/blue_top_right.gif" alt="top" /></td>
</tr>
<tr>
<td>
</td>
<td align="left" style="width: 100%">
<%
-- asdfas--%>
<radR:RadRotator ID="rad_rot" ScrollDirection="up" ScrollSpeed="100" UseSmoothScroll="false"
FrameTimeout="0" Height="225" TransitionType="scroll" FramesToShow="2"
runat="server" meta:resourcekey="rad_rotResource1">
<FrameTemplate>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left" valign="top">
<asp:Label ID="Label1" runat="server" ForeColor="Black" Font-Size="Small"
Font-Names="Arial" Text='<%# DataBinder.Eval(Container.DataItem,"Description") %>'
meta:resourcekey="Label1Resource1"></asp:Label>
</td>
</tr>
<tr>
<td align="left">
<asp:Label ForeColor="#126869" Font-Size="Small" Font-Bold="True" Font-Names="Arial"
ID="lb_des" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Title") %>'
meta:resourcekey="lb_desResource1"></asp:Label>
</td>
</tr>
</table>
</FrameTemplate>
</radR:RadRotator>
</td>
<td align="left" class="BlueRight">
</td>
</tr>
<tr>
<td align="right" valign="top" style="width: 11px">
<img src="images/blue_btm_left.gif" alt="" /></td>
<td valign="top" class="BlueBtm" style="width: 207px">
</td>
<td align="left" valign="top">
<img src="images/blue_btm_right.gif" alt="top" /></td>
</tr>
<tr>
<td height="5">
</td>
</tr>
</table>
<table width="240" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td align="right" valign="bottom" width="0%">
<img src="images/blue_top_left.gif" alt="top" /></td>
<td valign="bottom" class="BlueTop" style="width: 207px">
</td>
<td align="left" valign="bottom" width="0%">
<img src="images/blue_top_right.gif" alt="top" /></td>
</tr>
<tr>
<td align="right" class="BlueLeft">
</td>
<td align="left">
<table width="216" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" height="40" class="Menu" align="left" valign="middle">
<asp:Repeater ID="rpt_category" runat="server" OnItemCommand="rpt_category_ItemCommand1">
<ItemTemplate>
<table width="95%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="40" class="Menu" align="left" valign="middle">
<img src="images/icn_menu.jpg" alt="" /><asp:HiddenField ID="hdn_catid" runat="server"
Value='<%# DataBinder.Eval(Container.DataItem,"Cat_Id") %>' />
<a class="Menu" href='<%# getcategoryurl(DataBinder.Eval(Container.DataItem,"cat_id").ToString())%>'
id="inner" title='<%# DataBinder.Eval(Container.DataItem,"Cat_Name") %>' runat="server">
<%
# DataBinder.Eval(Container.DataItem,"Cat_Name") %>
</a>
</td>
</tr>
</table>
</ItemTemplate>
</asp:Repeater>
</td>
</tr>
<tr>
<td align="center" valign="middle">
<img src="images/icn_menu.jpg" alt="" /></td>
<td height="35" align="left" valign="middle" class="Menu" style="padding-left: 4px;">
<a class="Menu" href="" id="a_treatmentproduct" runat="server">
<asp:Literal ID="Literal2" runat="server" Text="Personalized Treatments" meta:resourcekey="Literal2Resource1"></asp:Literal>
</a>
</td>
</tr>
<tr>
<td class="BlueLine" style="height: 1px">
</td>
<td class="BlueLine" style="height: 1px">
</td>
</tr>
<tr>
<td align="center" valign="middle" height="40">
<img src="images/icn_menu.jpg" alt="" /></td>
<td height="35" style="padding-left: 4px;">
<a href="" id="a_originsofhomeopathy" runat="server" class="Menu">
<asp:Literal ID="Literal3" runat="server" Text="What Is Homeopathy?" meta:resourcekey="Literal3Resource1"></asp:Literal>
</a>
</td>
</tr>
<tr>
<td class="BlueLine">
</td>
<td class="BlueLine">
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td colspan="2" height="8">
</td>
</tr>
<tr>
<td align="center" style="height: 20px">
<%
--<script type="text/javascript">AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0',
'width', '172',/**/
'height', '72',
'src', 'flash/button_myaccount',
'quality', 'high',
'pluginspage', 'https://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'false',
'scale', 'scale',
'wmode', 'transparent',
'devicefont', 'false',
'id', 'flash-animations',
'bgcolor', 'none',
'name', 'flash/button_myaccount',
'menu', 'false',
'allowScriptAccess','sameDomain',
'movie', 'flash/button_myaccount',
'salign', ''
); </script>--
%>
<a href="" id="a_myaccount1" runat="server">
<img id="img_myaccount" style="border: 0px;" runat="server" src="" />
</a>
</td>
</tr>
<tr>
<td height="5">
</td>
</tr>
<tr>
<td align="center">
<%
--<script type="text/javascript">
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0',
'width', '172',/**/
'height', '72',
'src', 'flash/button_shoppingcart',
'quality', 'high',
'pluginspage', 'https://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'false',
'scale', 'scale',
'wmode', 'transparent',
'devicefont', 'false',
'id', 'flash-animations',
'bgcolor', 'none',
'name', 'flash/button_shoppingcart',
'menu', 'false',
'allowScriptAccess','sameDomain',
'movie', 'flash/button_shoppingcart',
'salign', ''
);
/*}*/
</script>--
%>
<a href="" id="a_shoppingcart" runat="server">
<img id="img_shoppingcart" style="border: 0px;" runat="server" src="" /></a>
</td>
</tr>
<tr>
<td height="5">
</td>
</tr>
<tr>
<td align="center">
<%
--<script type="text/javascript">
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0',
'width', '172',/**/
'height', '72',
'src', 'flash/button_testimonial',
'quality', 'high',
'pluginspage', 'https://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'false',
'scale', 'scale',
'wmode', 'transparent',
'devicefont', 'false',
'id', 'flash-animations',
'bgcolor', 'none',
'name', 'flash/button_testimonial',
'menu', 'false',
'allowScriptAccess','sameDomain',
'movie', 'flash/button_testimonial',
'salign', ''
);
/*}*/
</script>--
%>
<a href="" id="a_testimonials" runat="server">
<img id="img_testimonials" style="border: 0px;" runat="server" src="" /></a>
</td>
</tr>
</table>
</td>
<td align="left" class="BlueRight">
</td>
</tr>
<tr>
<td align="right" valign="top">
<img src="images/blue_btm_left.gif" /></td>
<td valign="top" class="BlueBtm" style="width: 207px">
</td>
<td align="left" valign="top">
<img src="images/blue_btm_right.gif" alt="top" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="5">
</td>
</tr>
</table>
</td>
<td valign="top" align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="WelcomeTable"
id="middletable" runat="server">
<tr>
<td valign="top" align="center">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
<asp:PlaceHolder ID="plc_cata" runat="server"></asp:PlaceHolder>
</asp:ContentPlaceHolder>
<%
-- <asp:Label ID="lbl_accessMessage" runat="server" CssClass="Error"></asp:Label>--%>
</td>
</tr>
</table>
</td>
</tr>
</table>
and i just get the data from database using sql query and bind the rotator .