| <telerik:RadTabStrip |
| ID="RadTabStrip1" |
| SelectedIndex="0" |
| runat="server" |
| MultiPageID="RadMultiPage1" |
| CssClass="tabStrip" |
| EnableEmbeddedSkins="False" |
| Skin="Azul" |
| > |
| .RadTabStrip_Azul |
| { |
| line-height: 0; |
| font-size: 0; |
| } |
| .RadTabStrip_Azul .rtsLI, |
| .RadTabStrip_Azul .rtsLink |
| { |
| color: #003366; |
| height:28px; |
| } |
| .RadTabStrip_Azul .rtsLink |
| { |
| text-decoration: none; |
| font-family: tahoma, Verdana, Arial, Helvetica, sans-serif; |
| font-size: 12px; |
| line-height: 28px; |
| } |
| /* ------------------------------------------------------------------------------- */ |
| /* disabled tabs */ |
| .RadTabStrip_Azul .rtsDisabled |
| { |
| color: #95D5FF; |
| cursor: default; |
| } |
| .RadTabStrip_Azul_disabled .rtsDisabled |
| { |
| color: #95D5FF; |
| cursor: default; |
| } |
| /* ------------------------------------------------------------------------------- */ |
| .RadTabStrip_Azul .rtsImg |
| { |
| border:0; |
| vertical-align:top; |
| width: 30px; |
| margin: 2px 0; |
| } |
| .RadTabStrip_Azul .rtsTxt |
| { |
| padding: 0px 0px 0px 50px; |
| } |
| .RadTabStrip_Azul .rtsLink |
| { |
| padding-left: 5px; |
| } |
| /* Orientation: Top */ |
| .RadTabStrip_Azul .rtsLink |
| { |
| padding-right: 0px; /* Cambiado por mi */ |
| padding-left: 32px; |
| } |
| .RadTabStrip_Azul .rtsLast .rtsLink |
| { |
| padding-right: 16px; |
| padding-left: 16px; |
| } |
| .RadTabStripTop_Azul .rtsIn |
| { |
| padding: 4px 0px 4px 32px; |
| } |
| .RadTabStripTop_Azul .rtsLink { background: transparent url('TabStrip/TabStripStates.gif') no-repeat 100% -56px; } |
| .RadTabStripTop_Azul .rtsLink .rtsOut { background: transparent url('TabStrip/TabStripStates.gif') no-repeat 0 -84px; } |
| .RadTabStripTop_Azul .rtsFirst .rtsLink .rtsOut { background-position: 0 0; } |
| .RadTabStripTop_Azul .rtsLast .rtsLink { background-position: 100% 0; } |
| /* ------------------------------------------------------------------------------- */ |
| .RadTabStripTop_Azul .rtsLink:hover |
| { |
| color: #95D5FF; |
| } |
| .RadTabStripTop_Azul .rtsSelected |
| { |
| color: #FFFFFF; |
| } |
| /* ------------------------------------------------------------------------------- */ |
| .RadTabStripTop_Azul .rtsSelected { background-position: 100% -84px; } |
| .RadTabStripTop_Azul .rtsFirst .rtsSelected .rtsOut, |
| .RadTabStripTop_Azul .rtsSelected .rtsOut { background-position: 0 -28px; } |
| .RadTabStripTop_Azul .rtsLast .rtsSelected { background-position: 100% -28px; } |
| .RadTabStripTop_Azul .rtsAfter .rtsOut { background-position: 0 -56px; } |
| .RadTabStripTop_Azul .rtsDisabled.rtsAfter .rtsOut { background-position: 0 -56px; } |
| .RadTabStripLeft_Azul .rtsIn { padding: 4px 15px 4px 15px; } |
| .RadTabStripLeft_Azul .rtsLast .rtsIn { padding-bottom: 4px; } |
| .RadTabStripLeft_Azul .rtsLI .rtsLink { padding: 0; } |
| /* ------------------------------------------------------------------------------- */ |
| .RadTabStripLeft_Azul .rtsLink:hover |
| { |
| color: #ffffff; |
| } |
| .RadTabStripLeft_Azul .rtsSelected |
| { |
| color: #ffffff; |
| } |
| /* ------------------------------------------------------------------------------- */ |
| .RadTabStripLeft_Azul .rtsSelected { background-position: 0 -28px; } |
| .RadTabStrip_Skin_TabStrip2 |
| { |
| } |
| .RadTabStrip_Skin_TabStrip2 .rtsLI, |
| .RadTabStrip_Skin_TabStrip2 .rtsLink |
| { |
| color: #000; |
| font: 12px/26px tahoma, Verdana, Arial, Helvetica, sans-serif; |
| } |
| .RadTabStrip_Skin_TabStrip2 .rtsLI, |
| .RadTabStrip_Skin_TabStrip2 .rtsLink |
| { |
| color: #fff; |
| } |
| .RadTabStrip_Skin_TabStrip2 .rtsLink:hover, |
| .RadTabStrip_Skin_TabStrip2 .rtsSelected |
| { |
| color: #0f3789; |
| } |
| .RadTabStripLeft_Skin_TabStrip2 .rtsSeparator, |
| .RadTabStripRight_Skin_TabStrip2 .rtsSeparator |
| { |
| background: #3D556C; |
| } |
| /* <disabled tabs> */ |
| .RadTabStrip_Skin_TabStrip2 .rtsLevel .rtsDisabled, |
| .RadTabStrip_Skin_TabStrip2 .rtsLevel .rtsDisabled:hover |
| { |
| color: #0f3789; /* dddddd */ |
| } |
| /* </disabled tabs> */ |
| /* <tab backgrounds> */ |
| .RadTabStripTop_Skin_TabStrip2 .rtsLevel { background-color: transparent; } |
| .RadTabStripTop_Skin_TabStrip2 .rtsLevel .rtsLink, |
| .RadTabStripTop_Skin_TabStrip2 .rtsLevel .rtsOut, |
| .RadTabStripBottom_Skin_TabStrip2 .rtsLevel .rtsLink, |
| .RadTabStripBottom_Skin_TabStrip2 .rtsLevel .rtsOut, |
| .RadTabStripTop_Skin_TabStrip2_Baseline .rtsLevel, |
| .RadTabStripBottom_Skin_TabStrip2_Baseline .rtsLevel { background-image: url('TabStrip/TabStripStates.png'); } |
| /* </tab backgrounds> */ |
| /* <background positioning: tabs with hovers> */ |
| /* <orientation: top> */ |
| .RadTabStripTop_Skin_TabStrip2 .rtsLink { background-position: 0px 0px; } |
| .RadTabStripTop_Skin_TabStrip2 .rtsOut { background-position: 100% 0px; } |
| .RadTabStripTop_Skin_TabStrip2 .rtsLink:hover { background-position: 0px -52px; } |
| .RadTabStripTop_Skin_TabStrip2 .rtsLink:hover .rtsOut { background-position: 100% -52px; } |
| .RadTabStripTop_Skin_TabStrip2 .rtsSelected, |
| .RadTabStripTop_Skin_TabStrip2 .rtsSelected:hover { background-position: 0px -26px; } |
| .RadTabStripTop_Skin_TabStrip2 .rtsSelected .rtsOut, |
| .RadTabStripTop_Skin_TabStrip2 .rtsSelected:hover .rtsOut { background-position: 100% -26px; } |
| .RadTabStripTop_Skin_TabStrip2 .rtsDisabled:hover { background-position: 0px 0px; } |
| .RadTabStripTop_Skin_TabStrip2 .rtsDisabled:hover .rtsOut { background-position: 100% 0px; } |
| .RadTabStripTop_Skin_TabStrip2_Baseline .rtsLevel { background-position: 0px 100%; background-repeat: repeat-x; } |
| /* </orientation: top> */ |
| /* </background positioning: tabs with hovers> */ |
| .RadTabStrip_Skin_TabStrip2 .rtsText |
| { |
| } |

|
|
Requirements |
|
| RadControls version |
2009.1.527.35 |
| .NET version |
2 |
| Visual Studio version |
2008 |
| programming language |
C# |
| browser support |
all browsers supported by RadControls |
| protected void Button1_Click(object sender, EventArgs e) |
| { |
| .... |
| GridEditFormItem gridEditFormItem = (GridEditFormItem) ((Control)sender).Parent.Parent.Parent; |
| .... |
| } |
But using the FindIt class, you would use this notation...
| protected void Button1_Click(object sender, EventArgs e) |
| { |
| GridEditFormItem gridEditFormItem = Find<GridEditFormItem>.Parent((Control)sender); |
| } |
If you use the Parent.Parent.Parent... notation and you subsequently modified the edit template, for example, perhaps you put the button inside an asp:Panel, you would have to fix the reference as well, but with the Find<> notation it would work without modification.
Its been a really useful addition to my toolkit, and helps separate code dependencies from edit template layout. I thought I'd share with others who might have similar issues.
Regards,
Ken
<
telerik:RadDockLayout ID="RadDockLayout1" runat="server" OnSaveDockLayout="RadDockLayout1_SaveDockLayout" OnLoadDockLayout="RadDockLayout1_LoadDockLayout">
<uc5:barraLateral ID="BarraLateral1" runat="server" />
<uc2:TodosConteudos ID="TodosConteudos1" runat="server" />
<uc3:MeusConteudos ID="MeusConteudos1" runat="server" />
<uc4:UltimosConteudos ID="UltimosConteudos1" runat="server" />
</telerik:RadDockLayout>
using
System;
using
System.Collections;
using
System.Collections.Generic;
using
System.ComponentModel;
using
System.Data;
using
System.Drawing;
using
System.Web;
using
System.Web.SessionState;
using
System.Web.UI;
using
System.Web.UI.WebControls;
using
System.Web.UI.HtmlControls;
using
Telerik.Web.UI;
public
partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
//Store the info about the added docks in the session.
private List<DockState> CurrentDockStates
{
get
{
List<DockState> _currentDockStates = (List<DockState>)Session["CurrentDockStates"];
if (Object.Equals(_currentDockStates, null))
{
_currentDockStates =
new List<DockState>();
Session[
"CurrentDockStates"] = _currentDockStates;
}
return _currentDockStates;
}
set
{
Session[
"CurrentDockStates"] = value;
}
}
protected void RadDockLayout1_SaveDockLayout(object sender, DockLayoutEventArgs e)
{
CurrentDockStates = RadDockLayout1.GetRegisteredDocksState();
}
protected void Page_Init(object sender, EventArgs e)
{
for (int i = 0; i < CurrentDockStates.Count; i++)
{
RadDock dock = new RadDock();
dock.ID =
string.Format("RadDock{0}", i);
dock.ApplyState(CurrentDockStates[i]);
RadDockLayout1.Controls.Add(dock);
}
}
protected void RadDockLayout1_LoadDockLayout(object sender, DockLayoutEventArgs e)
{
foreach (DockState state in CurrentDockStates)
{
e.Positions[state.UniqueName] = state.DockZoneID;
e.Indices[state.UniqueName] = state.Index;
}
}
}
RadTreeView1_NodeClick
to the sqldatasource select statement that resides in radgrid that is placed the page that uses the above master page.
Any ideas on how to do that?