string mystatus;
mystatus = lBooking.STATUS;
item.Attributes.Add(
"STATUS", mystatus);
string myhaz;
myhaz = lBooking.HazFlag;
item.Attributes.Add(
"HazFlag", myhaz);
rcboBookingNum.Items.Add(item);
if (myhaz=="Y")
{
rcboBookingNum.Items[myitemcounter].ForeColor = System.Drawing.
Color.Red;
}
if (mystatus == "N")
{
rcboBookingNum.Items[myitemcounter].BackColor = System.Drawing.
Color.Pink;
}
myitemcounter = myitemcounter + 1;
<telerik:RadComboBox ID="rcboBookingNum" runat="server" OnItemsRequested="rcboBookingNum_ItemsRequested"
EnableLoadOnDemand="True" AllowCustomText="True" DropDownWidth="555px" AutoPostBack="True"
OnSelectedIndexChanged="rcboBookingNum_SelectedIndexChanged" ShowDropDownOnTextboxClick="False"
OnClientKeyPressing="OnClientKeyPressingrcboBookingNum"
MaxHeight="150"
Width="120px" Skin="Outlook" HighlightTemplatedItems="false" EnableTheming="False"
CssClass="MainPageCellInputs ForceCaps"
MaxLength="13" TabIndex="1"
MarkFirstMatch="True">
<CollapseAnimation Type="None" />
<HeaderTemplate>
<table width="530px" class="rcbo_tbl10" align="left">
<tr>
<td style="width: 100px" class="dd_col10 dd_head10">
Booking Num
</td>
<td style="width: 230px" class="dd_col10 dd_head10">
Ship Name
</td>
<td style="width: 80px;text-align:center;" class="dd_col10 dd_head10">
Status
</td>
<td style="width: 80px;text-align:center;" class="dd_col10 dd_head10">
Hazardous
</td>
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table width="530px" class="rcbo_tbl10" align="left">
<tr>
<td style="width: 100px" class="dd_col10">
<%
# DataBinder.Eval(Container, "Text")%>
</td>
<td style="width: 230px" class="dd_col10">
<%
# DataBinder.Eval(Container, "Attributes['ShipName']") %>
</td>
<td style="width: 80px;text-align:center;" class="dd_col10">
<%
# DataBinder.Eval(Container, "Attributes['STATUS']")%>
</td>
<td style="width: 80px;text-align:center;" class="dd_col10">
<%
# DataBinder.Eval(Container, "Attributes['HazFlag']")%>
</td>
</tr>
</table>
</ItemTemplate>
</telerik:RadComboBox>
<script type="text/javascript"> function setReadOnly() { var TextBox1 = $find("<%= RadTextBox1.ClientID %>"); TextBox1._textBoxElement.readOnly = state; } function clearReadOnly() { var TextBox1 = $find("<%= RadTextBox1.ClientID %>"); TextBox1._textBoxElement.readOnly = false; } </script>var ddl = document.getElementById("MainContent_RadComboBox1_DropDown"); ddl.style.width = maxWidth + 'px';<telerik:RadPanelBar ID="RadPanelBar1" Runat="server" Skin="Windows7" Width="90%" ExpandMode="SingleExpandedItem" AllowCollapseAllItems="true"> <Items> <telerik:RadPanelItem runat="server" Text="Company" ImagePosition="Right" ImageUrl="Images/Expand.jpg" ExpandedImageUrl="Images/Collapse.jpg" > <Items> <telerik:RadPanelItem> <ItemTemplate> <uc2:ByCompany ID="ByCompany1" runat="server" /> </ItemTemplate> </telerik:RadPanelItem> </Items> </telerik:RadPanelItem > <telerik:RadPanelItem runat="server" Text="Analyst" ImagePosition="Right" ImageUrl="Images/Expand.jpg" ExpandedImageUrl="Images/Collapse.jpg"> <Items> <telerik:RadPanelItem> <ItemTemplate> <uc3:ByAnalyst ID="ByAnalyst1" runat="server" /> </ItemTemplate> </telerik:RadPanelItem> </Items> </telerik:RadPanelItem >
override protected void OnInit(EventArgs e){ // // CODEGEN: This call is required by the ASP.NET Web Form Designer. // InitializeComponent(); if (NumberOfColumns == 1) { ShelfListBox.ItemTemplate = new DefaultListBoxTemplate(); CartListBox.ItemTemplate = new DefaultListBoxTemplate(); } else if (NumberOfColumns == 2) { ShelfListBox.ItemTemplate = new TwoColumnListBoxTemplate(); CartListBox.ItemTemplate = new TwoColumnListBoxTemplate(); } else if (NumberOfColumns == 3) { ShelfListBox.ItemTemplate = new ThreeColumnListBoxTemplate(); CartListBox.ItemTemplate = new ThreeColumnListBoxTemplate(); } base.OnInit(e);}/// <summary>/// DefaultListBox ItemTemplate one column/// </summary>public class DefaultListBoxTemplate : ITemplate{ /// <summary> /// Defines the <see cref="T:System.Web.UI.Control"/> object that child controls and templates belong to. These child controls are in turn defined within an inline template. /// </summary> /// <param name="container">The <see cref="T:System.Web.UI.Control"/> object to contain the instances of controls from the inline template.</param> public void InstantiateIn(Control container) { var label = new Label { ID = "LabelListItem" }; label.DataBinding += new EventHandler(LabelListItemDataBinding); container.Controls.Add(label); } /// <summary> /// Handles the DataBinding event of the LabelListItem control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private static void LabelListItemDataBinding(object sender, EventArgs e) { var label = (Label)sender; var item = (RadListBoxItem)label.BindingContainer; var listItemText = DataBinder.Eval(item.DataItem, "Property1") as String; label.Text = listItemText; }}
<asp:Panel ID="validationSummaryPanel" runat="server"> <asp:ValidationSummary ID="newClientValidationSummary" runat="server" ShowMessageBox="true" ShowSummary="false" ValidationGroup="newClientGroup" /> </asp:Panel> <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="addClientButton"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="leftContainer" LoadingPanelID="RadAjaxLoadingPanel1" /> <telerik:AjaxUpdatedControl ControlID="validationSummaryPanel" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManagerProxy> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default"> </telerik:RadAjaxLoadingPanel>ChartSeriesItem.Exploded
property any longer--- are there any recent examples like this one which looks like it is really old?
http://demos1x.telerik.com/aspnet/Controls/Examples/Integration/Ajax/Chart/DefaultCS.aspx?product=chart
or this one:
http://demos1x.telerik.com/aspnet/Chart/Examples/Programming/Poll/DefaultCS.aspx