| <%@ Page Language="C#" AutoEventWireup="true" Codebehind="Test1.aspx.cs" Inherits="Testing.Test1" %> |
| <%@ 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"> |
| <div> |
| <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
| </telerik:RadScriptManager> |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
| </telerik:RadAjaxManager> |
| <asp:TextBox ID="TextBox1" runat="server" /><br /> |
| <asp:TextBox ID="TextBox2" runat="server" /><br /> |
| <asp:TextBox ID="TextBox3" runat="server" /><br /> |
| <asp:TextBox ID="TextBox4" runat="server" /><br /> |
| <asp:TextBox ID="TextBox5" runat="server" /><br /> |
| <telerik:RadInputManager ID="RadInputManager1" runat="server"> |
| <telerik:DateInputSetting Culture="English (United States)" DateFormat="MM/dd/yyyy" |
| DisplayDateFormat="MM/dd/yyyy" SelectionOnFocus="SelectAll" MinDate="1920-01-01"> |
| <TargetControls> |
| <telerik:TargetInput ControlID="TextBox1" /> |
| <telerik:TargetInput ControlID="TextBox2" /> |
| <telerik:TargetInput ControlID="TextBox3" /> |
| <telerik:TargetInput ControlID="TextBox4" /> |
| <telerik:TargetInput ControlID="TextBox5" /> |
| </TargetControls> |
| </telerik:DateInputSetting> |
| </telerik:RadInputManager> |
| <input type="button" onclick="fnPostBack();" value="Submit" /> |
| <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"> |
| <script type="text/javascript"> |
| <!-- |
| function fnPostBack() { |
| $find("<%=RadAjaxManager1.ClientID %>").ajaxRequest("Test"); |
| } |
| //--> |
| </script> |
| </telerik:RadScriptBlock> |
| </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; | |
| namespace Testing | |
| { | |
| public partial class Test1 : System.Web.UI.Page | |
| { | |
| protected void Page_Load(object sender, EventArgs e) | |
| { | |
| TextBox1.Text = DateTime.Now.ToString(); | |
| TextBox2.Text = DateTime.Now.ToString(); | |
| TextBox3.Text = DateTime.Now.ToString(); | |
| TextBox4.Text = DateTime.Now.ToString(); | |
| TextBox5.Text = DateTime.Now.ToString(); | |
| } | |
| } | |
| } | |
protected void Application_BeginRequest(object sender, EventArgs e)
{
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-GB");
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-GB");
}
<
telerik:RadDatePicker ID="RadDatePickerNewsDate" runat="server" Calendar-CultureInfo="English (United Kingdom)" MinDate="01/01/2000 00:00:00" SkinID="Vista">
</telerik:RadDatePicker>
this
.RadDatePickerNewsDate.SelectedDate = DateTime.Now;
Protected Sub RadComboBoxEmployeeName_ItemsRequested(ByVal sender As Object, ByVal e As RadComboBoxItemsRequestedEventArgs)
'add only the companies that meet the search criterion
Dim objPE As New ProposalEmployee
Dim dt As DataTable
dt = objPE.GetAllLikeEmployees(e.Text).Tables(0)
Dim comboBox As RadComboBox = DirectCast(sender, RadComboBox)
comboBox.Items.Clear()
For Each row As DataRow In dt.Rows
Dim item As New RadComboBoxItem()
item.Text = row("EmployeeName").ToString()
item.Value = row("EmployeeNo").ToString()
comboBox.Items.Add(item)
Next
End Sub
Selected index change for RadComboBoxEmployeeName:
Protected Sub RadComboBoxEmployeeName_SelectedIndexChanged(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles RadComboBoxEmployeeName.SelectedIndexChanged
Try
WriteLine("RadComboBoxEmployeeName_SelectedIndexChanged")
Dim strEmployeeNo As String
strEmployeeNo = RadComboBoxEmployeeName.SelectedValue
If strEmployeeNo = "" Then
Exit Sub
End If
Dim objPE As New ProposalEmployee
Dim ds As DataSet = objPE.GetEmployee(strEmployeeNo)
lblAssmtDate.Text = ds.Tables(0).Rows(0)("AssessmentDate")
lblBillRate.Text = "" 'ds.Tables(0).Rows(0)("BillRate")
lblBurdenedRate.Text = ds.Tables(0).Rows(0)("StandardBurdenRate")
lblChangedBy.Text = ds.Tables(0).Rows(0)("ChangedUserId")
lblChangedDate.Text = ds.Tables(0).Rows(0)("ChangedDateTime")
'lblContractVehicle.Text = ds.Tables(0).Rows(0)("LaborSchedule")
lblCreatedBy.Text = "" 'ds.Tables(0).Rows(0)("CreatedUserId")
lblCreatedDate.Text = "" 'ds.Tables(0).Rows(0)("CreatedDateTime")
lblEducation.Text = "" 'ds.Tables(0).Rows(0)("Education")
lblEmployeeName.Text = ds.Tables(0).Rows(0)("EmployeeName")
lblEmployeeNo.Text = ds.Tables(0).Rows(0)("EmployeeNo")
lblExperience.Text = "" 'ds.Tables(0).Rows(0)("Experience")
lblOriginalCC.Text = ds.Tables(0).Rows(0)("CC")
lblProfit.Text = "" 'ds.Tables(0).Rows(0)("Profit")
lblRefId.Text = "" 'ds.Tables(0).Rows(0)(0)
lblTitle.Text = ds.Tables(0).Rows(0)("TitleDesc")
txtTBDWageRate.Text = ds.Tables(0).Rows(0)("StandardCostRate")
'drpCostCenterForEmployee.SelectedValue = ds.Tables(0).Rows(0)("AdjustedCC")
drpTBDTitle.SelectedValue = "" 'ds.Tables(0).Rows(0)("TBDTitle")
'drpSite.SelectedValue = ds.Tables(0).Rows(0)("Site")
txtAnnualSalary.Text = ds.Tables(0).Rows(0)("AnnualSalary")
'drpContractVehicle.SelectedValue = ds.Tables(0).Rows(0)("LaborSchedule")
'drpLaborCategory.SelectedValue = ds.Tables(0).Rows(0)("LaborCategoryCode")
txtNewNotes.Text = ""
'txtPrevNotes.Text = ds.Tables(0).Rows(0)("Notes")
PopulateCostCenterScheduleAndLC()
Catch ex As Exception
CmFunc.ErrorLog("PropoposalEmployeeDetails_Load", ex.ToString())
lblErrorMsg1.Text = ex.Message
End Try
Hi
My requirement is
1. On appointment click – User will be redirect to new screen with more details about appointment
2. On iExport Button Click on the Appointment- User should able to add the appointment in the outlook.
Problem: but when user click on the iExport button, scheduler show the popup to add appointment in the calendar and it also call the On Appointment Click and redirect to next screen.
We want to suppress the Onappoitment click event when click on the iExport.
Would you please look into this ?
Thanks in Advance.
