or
public partial class Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Page.FindControl(
"RadPanelBar1"
) != null)
{
if ((RadPanelBar
1
.SelectedItem != null))
{
choiceActivity(RadPanelBar
1
.SelectedItem.Value);
}
else if (Page.FindControl(
"RadChart1"
) == null)
{
choiceActivity(
"cockpit"
);
}
}
}
public void MessageboxAnzeigen(string Inhalt)
{
string Script =
"<script type=\"text/javascript\">alert('"
+ Inhalt +
"')</script>"
;
RegisterClientScriptBlock(
"WindowOpener"
, Script);
}
public void openActivity(String controlName)
{
RadAjaxPanel
1
.Controls.Clear();
UserControl userControl = (UserControl)this.LoadControl(controlName);
userControl.ID =
"myUC"
;
this.RadAjaxPanel
1
.Controls.Add(userControl);
}
protected void RadPanelBar
1
_ItemClick(object sender, RadPanelBarEventArgs e)
{
choiceActivity(e.Item.Value);
}
protected void choiceActivity(String itemValue)
{
if (Page.FindControl(
"myUC"
) == null)
{
switch (itemValue)
{
case
"stammdaten"
:
openActivity(
"Stammdaten.ascx"
);
break;
case
"kundenverwaltung"
:
openActivity(
"StammdatenCockpit.ascx"
);
break;
case
"abrechnung"
:
openActivity(
"abrechnung.ascx"
);
break;
case
"tarife"
:
openActivity(
"tarife.ascx"
);
break;
case
"cockpit"
:
openActivity(
"cockpit.ascx"
);
break;
}
}
}
protected void LoginStatus
1
_LoggingOut(object sender, LoginCancelEventArgs e)
{
}
}
if (e.Item is GridDataItem)
{
GridDataItem it = e.Item as GridDataItem;
try
{
if (it["track_type"].Text.Trim() == "0")
{
it.BorderColor = System.Drawing.
Color.Red;
}
}
catch { }
}
this not works but the it.BackColor = System.Drawing.Color.Red work OK.
What I did wrong?
May be I need to override Grid's Style of my skin?
Thank you very much in advance.
Boris
protected void ItemRotator_DataBound(object sender, EventArgs e) {...}
RadRotatorEventArgs Event = (RadRotatorEventArgs)e;