or
<snip>
If i run the example through the tool without clearing the fields, it generates the following warnings that are still considered to be failures:| <%@ Page Language="C#" AutoEventWireup="true" CodeFile="PanelComboTest.aspx.cs" Inherits="PanelComboTest" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <!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>Untitled Page</title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <asp:ScriptManager ID="ScriptManager1" runat="server"> |
| </asp:ScriptManager> |
| <asp:RadioButtonList ID="radioList" runat="Server" AutoPostBack="true"> |
| <asp:ListItem Text="disable" Value="0"></asp:ListItem> |
| <asp:ListItem Text="enable" Value="1"></asp:ListItem> |
| </asp:RadioButtonList> |
| <div> |
| <asp:Panel ID="myPanel" runat="server"> |
| <telerik:RadComboBox ID="RadComboBox1" runat="server" RadComboBoxImagePosition="Right"> |
| <Items> |
| <telerik:RadComboBoxItem Text="item1" Value="1" runat="server" /> |
| <telerik:RadComboBoxItem Text="item2" Value="2" runat="server" /> |
| </Items> |
| <CollapseAnimation Duration="200" Type="OutQuint" /> |
| <ExpandAnimation Type="OutQuart" /> |
| </telerik:RadComboBox> |
| </asp:Panel> |
| </div> |
| </form> |
| </body> |
| </html> |
| using System; |
| using System.Data; |
| using System.Configuration; |
| using System.Collections; |
| using System.Web; |
| using System.Web.Security; |
| using System.Web.UI; |
| using System.Web.UI.WebControls; |
| using System.Web.UI.WebControls.WebParts; |
| using System.Web.UI.HtmlControls; |
| public partial class PanelComboTest : System.Web.UI.Page |
| { |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| this.radioList.SelectedIndexChanged += new EventHandler(radioList_SelectedIndexChanged); |
| if (!this.IsPostBack) |
| { |
| radioList.SelectedIndex = 0; |
| myPanel.Enabled = false; |
| } |
| } |
| void radioList_SelectedIndexChanged(object sender, EventArgs e) |
| { |
| if (radioList.SelectedValue == "0") |
| { |
| myPanel.Enabled = false; |
| } |
| else |
| { |
| myPanel.Enabled = true; |
| } |
| } |
| } |
<
telerik:RadDatePicker ID="tbPolicyAccountValueDate"
runat="server"
Text='<%# DataBinder.Eval( Container, "DataItem.PolicyAccountValueDate") %>'>
</telerik:RadDatePicker>
Thanks,
Bob
| protected void Page_Load(object sender, EventArgs e) |
| { |
| if (!this.IsPostBack) |
| this.BindAppointmentData(); // first databind |
| } |
| private void BindAppointmentData() |
| { |
| //database SELECT query is done here, a dataset is the result |
| this.RadScheduler1.DataSource = {the dataset}; |
| } |
| protected void RadScheduler1_AppointmentInsert(object sender, Telerik.Web.UI.SchedulerCancelEventArgs e) |
| { |
| //database INSERT query is done here, new record is physically saved to database |
| this.BindAppointmentData(); //second databind |
| } |
| protected void RadScheduler1_AppointmentDataBound(object sender, Telerik.Web.UI.SchedulerEventArgs e) |
| { |
| // e.Appointment is filled here on the first databind, but empty on the second |
| //here, i manipulate some properties of e.Appointment (subject and tooltip) |
| } |