Problem with AdvancedInsertTemplate/Edit

5 posts, 0 answers
  1. Jeremy
    Jeremy avatar
    10 posts
    Member since:
    Feb 2011

    Posted 22 Feb 2011 Link to this post

    My multiline textbox won't show in the AdvancedInsertTemplate/Edit. I have done nothing to the .css.
     

     

     

    <tr>

     

     

     

    <td align="right" class="style2" valign="top">

     

    Description

     

    </td>

     

     

     

    <td class="style3">

     

     

     

    <asp:TextBox ID="txtDescrip" TextMode="multiline" Text= <%# Bind("Note") %> runat="server"></asp:TextBox>

     

     

     

    </td>

     

     

     

    </tr>

     

  2. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 23 Feb 2011 Link to this post

    Hi Jeremy,

    Could you please send me the full code so I can inspect it and help you?

    Thank you!

    Kind regards,
    Veronica Milcheva
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. Jeremy
    Jeremy avatar
    10 posts
    Member since:
    Feb 2011

    Posted 23 Feb 2011 Link to this post

    <

     

     

    html xmlns="http://www.w3.org/1999/xhtml">

     

     

    <

     

     

    head runat="server">

     

     

     

    <title></title>

     

     

     

    <style type="text/css">

     

     

     

    .rsTimelineView .rsVerticalHeaderTable div

     

     

    {

     

     

     

    width: auto !important;

     

     

     

     

    text-align:left !important;

     

     

    }

     

     

     

     

     

    </style>

     

    </

     

     

    head>

     

     

    <

     

     

    body>

     

     

     

    <form id="form1" runat="server">

     

     

     

    <div>

     

     

     

     

    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">

     

     

     

    </telerik:RadScriptManager>

     

     

     

     

    </div>

     

     

     

     

     

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">

     

     

     

    <ContentTemplate>

     

     

     

     

    <telerik:RadScheduler runat="server" ID="RadScheduler1" SelectedView="TimelineView"

     

     

     

    GroupBy="Name" GroupingDirection="Vertical" DayStartTime="08:00:00"

     

     

     

     

    DayEndTime="19:00:00" DataSourceID="EventDS"

     

     

     

    DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End"

     

     

     

    DataRecurrenceField="RecurrenceRule" OverflowBehavior="Expand" ShowViewTabs="true"

     

     

     

    DataRecurrenceParentKeyField="RecurrenceParentID" Height="800px" Width="100%"

     

     

     

    StartInsertingInAdvancedForm="true" Skin="WebBlue"

     

     

     

     

    CustomAttributeNames="JobID,ClientName,ClientEmail,SalesPerson,Color,Note"

     

     

     

     

    >

     

     

     

    <TimelineView TimeLabelSpan="1" NumberOfSlots="6" ColumnHeaderDateFormat="dddd, MM/dd/yyyy" />

     

     

     

    <AppointmentTemplate >

     

     

     

    <div style="Height:100%;">

     

     

     

     

    <table>

     

     

     

    <tr>

     

     

     

    <td class="style1">

     

    Time

     

    </td>

     

     

     

    <td class="style2">

     

    Job Number Client Number

     

    </td>

     

     

     

    <td colspan="1" rowspan="2">

     

     

     

    <div class="verticaltext">Hoursworked</div></td>

     

     

     

    </tr>

     

     

     

    <tr>

     

     

     

    <td class="style1">

     

    Sales

     

    </td>

     

     

     

    <td class="style2">

     

    Subject

     

    </td>

     

     

     

    </tr>

     

     

     

    <tr>

     

     

     

    <td class="style1">

     

     

     

    &nbsp;</td>

     

     

     

    <td class="style2">

     

    Notes

     

    </td>

     

     

     

    <td>

     

     

     

    &nbsp;</td>

     

     

     

    </tr>

     

     

     

    </table>

     

     

     

    </div>

     

     

     

    </AppointmentTemplate>

     

     

     

     

    <AdvancedForm Modal="true" />

     

     

     

    <AdvancedInsertTemplate>

     

     

     

     

    <div class="rsAdvancedEdit rsAdvancedModal" style="position: relative">

     

     

     

    <div class="rsModalBgTopLeft"></div>

     

     

     

    <div class="rsModalBgTopRight"></div>

     

     

     

    <div class="rsModalBgBottomLeft"></div>

     

     

     

    <div class="rsModalBgBottomRight"></div>

     

     

     

    <%

     

    -- Title bar.--%>

     

     

     

     

    <div class="rsAdvTitle">

     

    <%

     

    -- The rsAdvInnerTitle element is used as a drag handle when the form is modal. --%>

     

     

     

     

    <h1 class="rsAdvInnerTitle">

     

    Add to

     

     

    <asp:Label ID="lbltitle" runat="server" Text=""></asp:Label> </h1>

     

     

     

    <asp:LinkButton runat="server" ID="AdvancedEditCloseButton" CssClass="rsAdvEditClose"

     

     

     

    CommandName="Cancel" CausesValidation="false" ToolTip='<%# Container.Appointment.Owner.Localization.AdvancedClose %>'>

     

    <%

     

    # Container.Appointment.Owner.Localization.AdvancedClose%>

     

     

     

     

    </asp:LinkButton>

     

     

     

    </div>

     

     

     

    <div class="rsAdvContentWrapper">

     

     

     

    <table style="width: 100%;">

     

     

     

    <tr>

     

     

     

    <td align="right" class="style2">

     

    Subject

     

    </td>

     

     

     

    <td class="style3">

     

     

     

    <asp:TextBox ID="txtSubject" text=<%# Bind("Subject") %> label='<%# Container.Appointment.Owner.Localization.AdvancedSubject%>' runat="server" Width="100px"></asp:TextBox>

     

     

     

    <asp:Label ID="lblInstaller" runat="server" Text="" ></asp:Label>

     

     

     

    </td>

     

     

     

    </tr>

     

     

     

    <tr>

     

     

     

    <td align="right" class="style2">

     

    Start

     

     

    </td>

     

     

     

    <td class="style3">

     

     

     

    <telerik:RadDateTimePicker ID="dtpStart" SelectedDate= <%# Bind("Start") %> Runat="server">

     

     

     

    </telerik:RadDateTimePicker>

     

     

     

    </td>

     

     

     

    </tr>

     

     

     

    <tr>

     

     

     

    <td align="right" class="style2">

     

    End

     

     

    </td>

     

     

     

    <td class="style3">

     

     

     

    <telerik:RadDateTimePicker ID="dtpEnd" SelectedDate= <%# Bind("End") %> Runat="server">

     

     

     

    </telerik:RadDateTimePicker>

     

     

     

    </td>

     

     

     

    </tr>

     

     

     

    <tr>

     

     

     

    <td align="right" class="style2">

     

    Job ID

     

    </td>

     

     

     

    <td class="style3">

     

     

     

    <asp:TextBox ID="txtJobID" text= <%# Bind("JobID") %> runat="server" Width="155px"></asp:TextBox>

     

     

     

    <asp:LinkButton ID="LinkButton1" CommandName="Search" runat="server">Search </asp:LinkButton>

     

     

     

    <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/PartialSuccess.gif"

     

     

     

     

    Visible="False" Width="23px" />

     

     

     

    </td>

     

     

     

    </tr>

     

     

     

    <tr>

     

     

     

    <td align="right" class="style2">

     

    Client Name

     

    </td>

     

     

     

    <td class="style3">

     

     

     

    <asp:TextBox ID="txtCName" text= <%# Bind("ClientName") %> runat="server" Width="203px"></asp:TextBox>

     

     

     

    </td>

     

     

     

    </tr>

     

     

     

    <tr>

     

     

     

    <td align="right" class="style2">

     

    Client Email

     

    </td>

     

     

     

    <td class="style3">

     

     

     

    <asp:TextBox ID="txtEmail" text= <%# Bind("ClientEmail") %> runat="server" Width="205px"></asp:TextBox>

     

     

     

    </td>

     

     

     

    </tr>

     

     

     

     

    <tr>

     

     

     

    <td align="right" class="style2">

     

    Sale Person

     

    </td>

     

     

     

    <td class="style3">

     

     

     

    <asp:TextBox ID="txtSPerson" Text= <%# Bind("SalesPerson") %> runat="server" Width="204px"></asp:TextBox>

     

     

     

    </td>

     

     

     

    </tr>

     

     

     

    <tr>

     

     

     

    <td align="right" class="style2">

     

    Sale Person Email

     

    </td>

     

     

     

    <td class="style3">

     

     

     

    <asp:TextBox ID="txtSEmail" runat="server" Width="204px"></asp:TextBox>

     

     

     

    </td>

     

     

     

    </tr>

     

     

     

    <tr>

     

     

     

    <td align="right" class="style2">

     

    Color

     

    </td>

     

     

     

    <td align="left" >

     

     

     

    <telerik:RadComboBox ID="RadComboBox1" Runat="server" Text=<%# Bind("Color") %> >

     

     

     

     

    <Items>

     

     

     

    <telerik:RadComboBoxItem runat="server" Text="CornflowerBlue" Value="CornflowerBlue"

     

     

     

     

    ForeColor="CornflowerBlue" />

     

     

     

    <telerik:RadComboBoxItem runat="server" Text="black" Value="black"

     

     

     

     

    ForeColor="#404040" />

     

     

     

    <telerik:RadComboBoxItem runat="server" ForeColor="Lime" Text="Lime"

     

     

     

     

    Value="Lime" />

     

     

     

    <telerik:RadComboBoxItem runat="server" ForeColor="Pink" Text="pink"

     

     

     

     

    Value="pink" />

     

     

     

    <telerik:RadComboBoxItem runat="server" ForeColor="DarkSalmon" Text="DarkSalmon"

     

     

     

     

    Value="DarkSalmon" />

     

     

     

    <telerik:RadComboBoxItem runat="server" ForeColor="Yellow" Text="yellow"

     

     

     

     

    Value="yellow" />

     

     

     

    <telerik:RadComboBoxItem runat="server" ForeColor="Orange" Text="orange"

     

     

     

     

    Value="orange" />

     

     

     

    </Items>

     

     

     

    </telerik:RadComboBox>

     

     

     

    </td>

     

     

     

    </tr>

     

     

     

    <tr>

     

     

     

    <td align="right" class="style2" valign="top">

     

    Description

     

    </td>

     

     

     

    <td class="style3">

     

     

     

    <asp:TextBox ID="txtDescrip" TextMode="MultiLine" Text= <%# Bind("Note") %> Height="20%" Width="50%" runat="server"></asp:TextBox>

     

     

     

    </td>

     

     

     

    </tr>

     

     

     

     

    </table>

     

     

     

    <asp:Panel runat="server" ID="ButtonsPanel" CssClass="rsAdvancedSubmitArea">

     

     

     

    <div class="rsAdvButtonWrapper">

     

     

     

    <asp:LinkButton CommandName="Insert" runat="server" ID="UpdateButton" CssClass="rsAdvEditSave">

     

     

    <

     

     

    span><%# Container.Appointment.Owner.Localization.Save%></span>

     

     

     

    </asp:LinkButton>

     

     

     

    <asp:LinkButton runat="server" ID="CancelButton" CssClass="rsAdvEditCancel" CommandName="Cancel"

     

     

     

    CausesValidation="false">

     

     

    <

     

     

    span><%# Container.Appointment.Owner.Localization.Cancel%></span>

     

     

     

    </asp:LinkButton>

     

     

     

    </div>

     

     

     

    </asp:Panel>

     

     

     

    </div>

     

     

     

    </div>

     

     

     

     

    </AdvancedInsertTemplate>

     

     

     

    <AdvancedEditTemplate>

     

     

     

    <div class="rsAdvancedEdit rsAdvancedModal" style="position: relative">

     

     

     

    <div class="rsModalBgTopLeft"></div>

     

     

     

    <div class="rsModalBgTopRight"></div>

     

     

     

    <div class="rsModalBgBottomLeft"></div>

     

     

     

    <div class="rsModalBgBottomRight"></div>

     

     

    <%

     

    -- Title bar.--%>

     

     

     

     

    <div class="rsAdvTitle">

     

    <%

     

    -- The rsAdvInnerTitle element is used as a drag handle when the form is modal. --%>

     

     

     

     

    <h1 class="rsAdvInnerTitle">

     

    Add to

     

     

    <asp:Label ID="lbltitle" runat="server" Text=""></asp:Label> </h1>

     

     

     

    <asp:LinkButton runat="server" ID="AdvancedEditCloseButton" CssClass="rsAdvEditClose"

     

     

     

    CommandName="Cancel" CausesValidation="false" ToolTip='<%# Container.Appointment.Owner.Localization.AdvancedClose %>'>

     

    <%

     

    # Container.Appointment.Owner.Localization.AdvancedClose%>

     

     

     

     

    </asp:LinkButton>

     

     

     

    </div>

     

     

     

    <div class="rsAdvContentWrapper">

     

     

     

    <table style="width: 66%;">

     

     

     

    <tr>

     

     

     

    <td align="right" >

     

    Subject

     

    </td>

     

     

     

    <td >

     

     

     

    <asp:TextBox ID="txtSubject" Visible="true" Label='<%# Container.Appointment.Owner.Localization.AdvancedSubject%>' text= <%# Bind("Subject") %> runat="server" Width="100px"></asp:TextBox>

     

     

     

    </td>

     

     

     

    </tr>

     

     

     

    <tr>

     

     

     

    <td align="right" class="style2">

     

    Start

     

     

    </td>

     

     

     

    <td class="style3">

     

     

     

    <telerik:RadDateTimePicker ID="dtpStart" SelectedDate= <%# Bind("Start") %> Runat="server">

     

     

     

    </telerik:RadDateTimePicker>

     

     

     

    </td>

     

     

     

    </tr>

     

     

     

    <tr>

     

     

     

    <td align="right" class="style2">

     

    End

     

     

    </td>

     

     

     

    <td class="style3">

     

     

     

    <telerik:RadDateTimePicker ID="dtpEnd" SelectedDate= <%# Bind("End") %> Runat="server">

     

     

     

    </telerik:RadDateTimePicker>

     

     

     

    </td>

     

     

     

    </tr>

     

     

     

    <tr>

     

     

     

    <td align="right" class="style2">

     

    Job ID

     

    </td>

     

     

     

    <td class="style3">

     

     

     

    <asp:TextBox ID="txtJobID" text= <%# Bind("JobID") %> runat="server" Width="155px"></asp:TextBox>

     

     

     

    <asp:LinkButton ID="LinkButton1" CommandName="Search" runat="server">Search </asp:LinkButton>

     

     

     

    <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/PartialSuccess.gif"

     

     

     

     

    Visible="False" Width="23px" />

     

     

     

    </td>

     

     

     

    </tr>

     

     

     

    <tr>

     

     

     

    <td align="right" class="style2">

     

    Client Name

     

    </td>

     

     

     

    <td class="style3">

     

     

     

    <asp:TextBox ID="txtCName" text= <%# Bind("ClientName") %> runat="server" Width="203px"></asp:TextBox>

     

     

     

    </td>

     

     

     

    </tr>

     

     

     

    <tr>

     

     

     

    <td align="right" class="style2">

     

    Email

     

    </td>

     

     

     

    <td class="style3">

     

     

     

    <asp:TextBox ID="txtEmail" text= <%# Bind("ClientEmail") %> runat="server" Width="205px"></asp:TextBox>

     

     

     

    </td>

     

     

     

    </tr>

     

     

     

     

    <tr>

     

     

     

    <td align="right" class="style2">

     

    Sale Person

     

    </td>

     

     

     

    <td class="style3">

     

     

     

    <asp:TextBox ID="txtSPerson" Text= <%# Bind("SalesPerson") %> runat="server" Width="204px"></asp:TextBox>

     

     

     

    </td>

     

     

     

    </tr>

     

     

     

    <tr>

     

     

     

    <td align="right" class="style2">

     

    Sale Person Email

     

    </td>

     

     

     

    <td class="style3">

     

     

     

    <asp:TextBox ID="txtSEmail" runat="server" Width="204px"></asp:TextBox>

     

     

     

    </td>

     

     

     

    </tr>

     

     

     

    <tr>

     

     

     

    <td align="right" class="style2">

     

    Color

     

    </td>

     

     

     

     

    <td align="left" >

     

     

     

     

    <telerik:RadComboBox ID="RadComboBox1" Runat="server" Text=<%# Bind("Color") %> >

     

     

     

     

    <Items>

     

     

     

    <telerik:RadComboBoxItem runat="server" Text="CornflowerBlue" Value="CornflowerBlue"

     

     

     

     

    ForeColor="CornflowerBlue" />

     

     

     

    <telerik:RadComboBoxItem runat="server" Text="black" Value="black"

     

     

     

     

    ForeColor="#404040" />

     

     

     

    <telerik:RadComboBoxItem runat="server" ForeColor="Lime" Text="Lime"

     

     

     

     

    Value="Lime" />

     

     

     

    <telerik:RadComboBoxItem runat="server" ForeColor="Pink" Text="pink"

     

     

     

     

    Value="pink" />

     

     

     

    <telerik:RadComboBoxItem runat="server" ForeColor="DarkSalmon" Text="DarkSalmon"

     

     

     

     

    Value="DarkSalmon" />

     

     

     

    <telerik:RadComboBoxItem runat="server" ForeColor="Yellow" Text="yellow"

     

     

     

     

    Value="yellow" />

     

     

     

    <telerik:RadComboBoxItem runat="server" ForeColor="Orange" Text="orange"

     

     

     

     

    Value="orange" />

     

     

     

    </Items>

     

     

     

    </telerik:RadComboBox>

     

     

     

    </td>

     

     

     

     

    </td>

     

     

     

    </tr>

     

     

     

    <tr>

     

     

     

    <td align="right" class="style2" valign="top">

     

    Description

     

    </td>

     

     

     

    <td class="style3">

     

     

     

    <asp:TextBox ID="txtDescrip" visible="true" Text= <%# Bind("Note") %> TextMode="MultiLine" Height="20%" Width="50%" runat="server"></asp:TextBox>

     

     

     

    </td>

     

     

     

    </tr>

     

     

     

     

    </table>

     

     

     

    <asp:Panel runat="server" ID="ButtonsPanel" CssClass="rsAdvancedSubmitArea">

     

     

     

    <div class="rsAdvButtonWrapper">

     

     

     

    <asp:LinkButton CommandName="Update" runat="server" ID="UpdateButton" CssClass="rsAdvEditSave">

     

     

    <

     

     

    span><%# Container.Appointment.Owner.Localization.Save%></span>

     

     

     

    </asp:LinkButton>

     

     

     

    <asp:LinkButton runat="server" ID="CancelButton" CssClass="rsAdvEditCancel" CommandName="Cancel"

     

     

     

    CausesValidation="false">

     

     

    <

     

     

    span><%# Container.Appointment.Owner.Localization.Cancel%></span>

     

     

     

    </asp:LinkButton>

     

     

     

    </div>

     

     

     

    </asp:Panel>

     

     

     

    </div>

     

     

     

    </div>

     

     

     

    </AdvancedEditTemplate>

     

     

     

     

    <ResourceTypes >

     

     

     

    <telerik:ResourceType KeyField="installerid" Name="Name" TextField="Name" ForeignKeyField="installerid" DataSourceID="InstallerDS" />

     

     

     

    </ResourceTypes>

     

     

     

    <TimeSlotContextMenuSettings EnableDefault="true" />

     

     

     

    <AppointmentContextMenuSettings EnableDefault="true" />

     

     

     

    <WeekView UserSelectable="false" />

     

     

     

    </telerik:RadScheduler>

     

     

     

    <telerik:RadWindowManager ID="RadWindowManager1" runat="server"

     

     

     

     

    EnableViewState="False" EnableShadow="true" >

     

     

     

    </telerik:RadWindowManager>

     

     

     

    </ContentTemplate>

     

     

     

    </asp:UpdatePanel>

     

     

     

     

    <asp:SqlDataSource ID="EventDS" runat="server"

     

     

     

     

    ConnectionString="<%$ ConnectionStrings:ScheduleConnectionString %>"

     

     

     

     

     

     

    SelectCommand="SELECT [ID], [Subject], [Start], [End], [JobID], [ClientName], [ClientEmail], [SalesPerson], [RecurrenceRule], [RecurrenceParentID], [InstallerID], [Color], [Note] FROM [Events]"

     

     

     

     

    DeleteCommand="DELETE FROM [Events] WHERE [ID] = @ID"

     

     

     

     

    InsertCommand="INSERT INTO [Events] ([Subject], [Start], [End], [JobID], [ClientName], [ClientEmail], [SalesPerson], [RecurrenceRule], [RecurrenceParentID], [InstallerID], [Color], [Note]) VALUES (@Subject, @Start, @End, @JobID, @ClientName, @ClientEmail, @SalesPerson, @RecurrenceRule, @RecurrenceParentID, @InstallerID, @Color, @Note)"

     

     

     

    UpdateCommand="UPDATE [Events] SET [Subject] = @Subject, [Start] = @Start, [End] = @End, [JobID] = @JobID, [ClientName] = @ClientName, [ClientEmail] = @ClientEmail, [SalesPerson] = @SalesPerson, [RecurrenceRule] = @RecurrenceRule, [RecurrenceParentID] = @RecurrenceParentID, [InstallerID] = @InstallerID, [Color] = @Color, [Note] = @Note WHERE [ID] = @ID"

     

     

     

     

     

     

    >

     

     

     

    <DeleteParameters>

     

     

     

    <asp:Parameter Name="ID" Type="Int32" />

     

     

     

    </DeleteParameters>

     

     

     

    <InsertParameters>

     

     

     

    <asp:Parameter Name="Subject" Type="String" />

     

     

     

    <asp:Parameter Name="Start" Type="DateTime" />

     

     

     

    <asp:Parameter Name="End" Type="DateTime" />

     

     

     

    <asp:Parameter Name="JobID" Type="String" />

     

     

     

    <asp:Parameter Name="ClientName" Type="String" />

     

     

     

    <asp:Parameter Name="ClientEmail" Type="String" />

     

     

     

    <asp:Parameter Name="SalesPerson" Type="String" />

     

     

     

    <asp:Parameter Name="RecurrenceRule" Type="String" />

     

     

     

    <asp:Parameter Name="RecurrenceParentID" Type="Int32" />

     

     

     

    <asp:Parameter Name="InstallerID" Type="Int32" />

     

     

     

    <asp:Parameter Name="Color" Type="String" />

     

     

     

    <asp:Parameter Name="Note" Type="String" />

     

     

     

    </InsertParameters>

     

     

     

    <UpdateParameters>

     

     

     

    <asp:Parameter Name="Subject" Type="String" />

     

     

     

    <asp:Parameter Name="Start" Type="DateTime" />

     

     

     

    <asp:Parameter Name="End" Type="DateTime" />

     

     

     

    <asp:Parameter Name="JobID" Type="String" />

     

     

     

    <asp:Parameter Name="ClientName" Type="String" />

     

     

     

    <asp:Parameter Name="ClientEmail" Type="String" />

     

     

     

    <asp:Parameter Name="SalesPerson" Type="String" />

     

     

     

    <asp:Parameter Name="RecurrenceRule" Type="String" />

     

     

     

    <asp:Parameter Name="RecurrenceParentID" Type="Int32" />

     

     

     

    <asp:Parameter Name="InstallerID" Type="Int32" />

     

     

     

    <asp:Parameter Name="Color" Type="String" />

     

     

     

    <asp:Parameter Name="Note" Type="String" />

     

     

     

    <asp:Parameter Name="ID" Type="Int32" />

     

     

     

    </UpdateParameters>

     

     

     

     

    </asp:SqlDataSource>

     

     

     

    <asp:SqlDataSource ID="InstallerDS" runat="server"

     

     

     

     

    ConnectionString="<%$ ConnectionStrings:ScheduleConnectionString %>"

     

     

     

     

     

     

    SelectCommand="SELECT [installerid], [name], [credentials] FROM [installers]"></asp:SqlDataSource>

     

     

     

    </form>

     

     

    </

     

     

    body>

     

     

    </

     

     

    html>

    vb

     

     

     

     

    Private Sub RadScheduler1_FormCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.SchedulerFormCreatedEventArgs) Handles RadScheduler1.FormCreated

     

     

     

     

     

    Dim scheduler As RadScheduler = CType(sender, RadScheduler)

     

     

     

     

     

    'If ((e.Container.Mode = SchedulerFormMode.Insert) _

     

     

     

     

     

     

     

     

     

     

     

    ' OrElse (e.Container.Mode = SchedulerFormMode.AdvancedInsert)) Then

     

     

     

     

     

     

     

     

     

     

     

    ' 'Dim list As RadioButtonList = CType(e.Container.FindControl("AppointmentTypeRadioButtonList"), RadioButtonList)

     

     

     

     

     

     

     

     

     

     

     

    ' 'list.SelectedIndex = 0

     

     

     

     

     

     

     

     

     

     

     

    ' Dim txtJobId As TextBox = TryCast(e.Container.FindControl("txtJobID"), TextBox)

     

     

     

     

     

     

     

     

     

     

     

    ' Dim txtCname As TextBox = TryCast(e.Container.FindControl("txtCname"), TextBox)

     

     

     

     

     

     

     

     

     

     

     

    ' Dim txtSperson As TextBox = TryCast(e.Container.FindControl("txtsperson"), TextBox)

     

     

     

     

     

     

     

     

     

     

     

    ' Dim txtEmail As TextBox = TryCast(e.Container.FindControl("txtemail"), TextBox)

     

     

     

     

     

     

     

     

     

     

     

    ' Dim failimg As Image = TryCast(e.Container.FindControl("Image1"), Image)

     

     

     

     

     

     

     

     

     

     

     

    'End If

     

     

     

     

     

     

     

     

     

     

     

    If ((e.Container.Mode = SchedulerFormMode.AdvancedInsert) _

     

     

     

     

     

    OrElse (e.Container.Mode = SchedulerFormMode.AdvancedEdit)) Then

     

     

     

     

     

     

     

     

     

     

     

    If RadScheduler1.SelectedView = SchedulerViewType.TimelineView = True Then

     

     

     

     

     

     

     

     

     

     

     

    Dim txtJobId As TextBox = TryCast(e.Container.FindControl("txtJobID"), TextBox)

     

     

     

     

     

    Dim txtCname As TextBox = TryCast(e.Container.FindControl("txtCname"), TextBox)

     

     

     

     

     

    Dim txtSperson As TextBox = TryCast(e.Container.FindControl("txtsperson"), TextBox)

     

     

     

     

     

    Dim txtEmail As TextBox = TryCast(e.Container.FindControl("txtemail"), TextBox)

     

     

     

     

     

    Dim failimg As Image = TryCast(e.Container.FindControl("Image1"), Image)

     

     

     

     

     

    Dim ddlcolor As RadComboBox = TryCast(e.Container.FindControl("RadComboBox1"), RadComboBox)

     

     

     

     

     

    Dim installer As Label = TryCast(e.Container.FindControl("lblInstaller"), Label)

     

     

     

     

     

    Dim title As Label = TryCast(e.Container.FindControl("lbltitle"), Label)

     

     

     

     

     

    Dim txtSEmail As TextBox = TryCast(e.Container.FindControl("txtSemail"), TextBox)

     

     

     

     

     

    Dim txtSubject As TextBox = TryCast(e.Container.FindControl("txtSubject"), TextBox)

     

     

    ddlcolor.SelectedValue = ddlcolor.Text

     

     

     

     

    'installer.Text = e.Container.Appointment.Resources(0).Text

     

     

     

     

     

     

     

     

    title.Text = e.Container.Appointment.Resources(0).Text

     

     

     

     

    Dim tempstr As String = ""

     

     

     

     

     

     

     

     

     

     

     

    Dim artempstr() As String

     

     

     

     

     

     

     

     

    tempstr = title.Text

     

    artempstr = tempstr.Split(

     

     

    " ")

     

     

    Session(

     

     

    "installeremail") = getEmail(artempstr(0), artempstr(1))

     

     

    Session(

     

     

    "installer") = title.Text

     

     

     

     

     

    If e.Container.Mode = SchedulerFormMode.AdvancedEdit Then

     

     

     

     

     

     

     

     

     

     

     

    ' Session("test") = txtSperson.Text

     

     

     

     

     

     

     

     

     

     

     

    If txtSperson.Text <> "" Then

     

     

     

     

     

     

     

     

    tempstr =

     

     

    ""

     

     

     

     

     

     

     

     

    tempstr = txtSperson.Text

     

    artempstr = tempstr.Split(

     

     

    " ")

     

     

    txtSEmail.Text = getEmail(artempstr(0), artempstr(1))

     

     

     

     

    End If

     

     

     

     

     

     

     

     

     

     

     

    End If

     

     

     

     

     

     

     

     

     

     

     

    End If

     

     

     

     

     

     

     

     

     

     

     

    End If

     

     

     

     

     

     

     

     

     

     

     

     

    End Sub

     

  4. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 24 Feb 2011 Link to this post

    Hi Jeremy,

    Could you please attach the code in a .zip file and send it via some of the sites for free online storage e.g. 4shared.com?

    Thank you!

    All the best,
    Veronica Milcheva
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  5. Jeremy
    Jeremy avatar
    10 posts
    Member since:
    Feb 2011

    Posted 25 Feb 2011 Link to this post

    I used a radtextbox and it works. thank you
Back to Top