| <asp:ScriptManager ID="ScriptManager1" runat="server"> |
| </asp:ScriptManager> |
| <asp:LinkButton ID="LinkButton1" runat="server">LinkButton</asp:LinkButton> |
| <telerik:RadToolTip ID="RadToolTip1" Skin="Telerik" |
| TargetControlID="LinkButton1" |
| Sticky="true" |
| runat="server" RelativeTo="Element" Animation="Fade" OffsetY="1"> |
| Some text |
| </telerik:RadToolTip> |
| <telerik:RadToolTipManager ID="RadToolTipManager1" runat="server"> |
| </telerik:RadToolTipManager> |
| protected void RadScheduler1_FormCreated(object sender, Telerik.Web.UI.SchedulerFormCreatedEventArgs e) |
| { |
| DropDownList jobtype = (DropDownList)fvNewService2.FindControl("ddlJobType"); |
| DropDownList employee = (DropDownList)fvNewService2.FindControl("ddlEmployee"); |
| DropDownList jobstatus = (DropDownList)fvNewService2.FindControl("ddlJobStatus"); |
| DropDownList time = (DropDownList)fvNewService2.FindControl("ddlTime"); |
| TextBox mileage = (TextBox)fvNewService2.FindControl("ServiceHistoryMilageTextBox"); |
| TextBox hoursworked = (TextBox)fvNewService2.FindControl("txHoursWorked"); |
| DropDownList paymenttype = (DropDownList)fvNewService2.FindControl("ddlPaymentType"); |
| DropDownList paymentstatus = (DropDownList)fvNewService2.FindControl("ddlPaymentStatus"); |
| string starttime; |
| string endtime; |
| string thedate; |
| thedate = e.Appointment.Start.ToShortDateString(); |
| //create code for noew line |
| char chrCR = (char)13; |
| string strCR = chrCR.ToString(); |
| char chrLF = (char)10; |
| string strLF = chrLF.ToString(); |
| string strCRstrCRLF = strCR + strLF; |
| //obtain hours based on the form value of time |
| switch (time.SelectedValue) |
| { |
| default: |
| starttime = thedate.ToString() + " 09:00:00"; |
| endtime = thedate.ToString() + "17:00:00"; |
| break; |
| //Morning |
| case "1": |
| starttime = thedate.ToString() + " 09:00:00"; |
| endtime = thedate.ToString() + " 12:00:00"; |
| break; |
| //Afternoon |
| case "2": |
| starttime = thedate.ToString() + " 12:00:00"; |
| endtime = thedate.ToString() + " 17:00:00"; |
| break; |
| //All Day |
| case "3": |
| starttime = thedate.ToString() + " 09:00:00"; |
| endtime = thedate.ToString() + " 17:00:00"; |
| break; |
| } |
| e.Appointment.Start = DateTime.Parse(starttime.ToString()); |
| e.Appointment.End = DateTime.Parse(endtime.ToString()); |
| e.Appointment.Subject = "Job Type: " + jobtype.SelectedItem.ToString() + strCRLF.ToString() |
| + "Employee:" + employee.SelectedItem.ToString(); |
| // how do I commit the appointment from here???????????? |
| } |
<%@ Page Language="C#" AutoEventWireup="false" ValidateRequest="false"%>
<%@ Register Tagprefix="radI" Namespace="Telerik.WebControls" Assembly="RadInput.Net2, Version=2.0.0.0, Culture=neutral, PublicKeyToken=a1432cd341173140" %>
<html>
<head id="Head1" runat="server">
<title >Test</title>
</head>
<body>
<form id="form1" runat="server">
<radI:RadTextBox
ID="txtNewUser2"
runat="server" TextMode ="MultiLine"
EmptyMessage="code d'accès">
</radI:RadTextBox>
</form>
</body>
</html>
This is working fine for me and the text box gets loaded fine
But when I change the TextMode of the rad textbox to "SingleLine" or "Password" I get the following error
<ınput type="text" size="15" id="txtNewUser2_text"> <ınput style="visibility: hidden; width: 0px; border: 0px;" id="txtNewUser2" name="txtNewUser2" type="text" value="" />
and a javascript object required error pops up.
What is the reason for this am I missing something here
Waiting for your reply
Akhilaa

ViewType="MonthView"
however, this doesn't seem to work for me. in just flipping through all the attributes, i foundSelectedView="MonthView"
i was just wondering what was up with this? ViewType doesn't seem to work.

function HandleValueChanged (sender, eventArgs)
{
$get("ll1").innerHTML = sender.get_Value();
}
to display value of the slider.
Rather than having a separate function to handle each sliders ValueChange and ClientLoaded event is it possible to pass in the id of the div into the function. I've tried one or two things but just keep getting JavaScript errors.function HandleValueChanged (sender, eventArgs, sliderDiv)
{
$get(sliderDiv).innerHTML = sender.get_Value();
}
??