Cannot Reference Telerik Object In InlineInsertTemplate

1 posts, 0 answers
  1. Derek Goeller
    Derek Goeller avatar
    1 posts
    Member since:
    Apr 2010

    Posted 16 Aug 2017 Link to this post

    01.<telerik:RadScheduler ID="RadScheduler1" runat="server" Skin="BlackMetroTouch" DataEndField="EndTime"
    02.    DataKeyField="id" DataSourceID="SqlDataSource1" DataStartField="StartTime" Height="517px"
    03.    RowHeight="32px" StartEditingInAdvancedForm="False" DataSubjectField="event"
    04.    DataDescriptionField="Description" DataRecurrenceField="RecData" DataRecurrenceParentKeyField="RecParent"
    05.    DayStartTime="07:00:00" TimeZoneID="Eastern Standard Time" TimeZoneOffset="-04:00:00"
    06.    ResolvedRenderMode="Classic">
    07.    <InlineInsertTemplate>
    08.        <div id="InlineInsertTemplate" class="rsCustomAppointmentContainer ">
    09.            <telerik:RadDropDownList RenderMode="Auto" runat="server" ID="RadDropDownList2" DataSourceID="SqlDataSource2"
    10.                Width="300px" DefaultMessage="Select Job:" DropDownHeight="200px" DataValueField="JobNumber"
    11.                DataTextField="JobDes" AutoPostBack="True" OnItemSelected="JobNumSelected">
    12.        </telerik:RadDropDownList>
    13.            <telerik:RadDropDownList ID="RadDropDownList1" RenderMode="Auto" runat="server" AutoPostBack="true"      DefaultMessage="Select a Phase..."
    14.            DropDownHeight="200px" Width="150px"  DataSourceID="SqlDataSource3" DataTextField="PhaseString" DataValueField="PhaseCode" EnableAriaSupport="False">
    15.            </telerik:RadDropDownList>
    16.        </div>
    17.    </InlineInsertTemplate>
    18.    <AdvancedForm Modal="true" />
    In C# within the "JobNumSelected" method I can type RadScheduler1 and it will be a valid reference to the object. I cannot type RadDropDownList1 and have it be a valid reference I can only see the base object not the instance I created. If I move the RadDropDownList object outside of the RadScheduler I can reference it just fine. 

    I'm trying to make a scheduler where a user can select a job and a phase and that would show them being busy for whatever time period they selected. 
Back to Top