Cant access edit form controls in page_load

2 posts, 0 answers
  1. Philip
    Philip avatar
    69 posts
    Member since:
    Mar 2016

    Posted 07 Apr Link to this post

    I am trying to access the controls in page load of a inline edit form  but i cannot see them using the standard method it is
    01.<telerik:RadGrid ID="rgNotes" runat="server" GroupPanelPosition="Top">
    02.                                 <GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings>
    03.                                 <MasterTableView NoDetailRecordsText="No notes for this Appointment" AutoGenerateColumns="False" CommandItemDisplay="Top" CommandItemSettings-AddNewRecordText="Add Notes" AllowAutomaticInserts="true" EditMode="PopUp">
    04.                                     <Columns>
    05.                                         <telerik:GridEditCommandColumn UniqueName="EditCommandColumn">
    06.                                         </telerik:GridEditCommandColumn>
    07.                                         <telerik:GridBoundColumn DataField="Subject" FilterControlAltText="Filter Subject column" HeaderText="subject" ReadOnly="True" SortExpression="Subject" UniqueName="Subject">
    08.                                         </telerik:GridBoundColumn>
    09.                                     </Columns>
    11.                                     <EditFormSettings EditFormType="Template" InsertCaption="Add new Note">
    12.                                         <FormTemplate>
    13.                                             Subject
    14.                                             <p>
    15.                                                 <telerik:RadTextBox ID="txtSubjectNotes" Width="200px" runat="server"></telerik:RadTextBox>
    16.                                             </p>
    17.                                             <p>
    18.                                             </p>
    20.                                             <telerik:RadButton ID="rdSaveNotes" OnClick="rdSaveNotes_Click" Skin="Bootstrap" BackColor="#512479" ForeColor="White" runat="server" Text="Save Notes"></telerik:RadButton>
    21.                                             <telerik:RadButton ID="rdCancel" OnClick="rdCancel_Click1" CommandName="Cancel" Skin="Bootstrap" BackColor="#512479" ForeColor="White" runat="server" Text="Cancel"></telerik:RadButton>
    22.                                         </FormTemplate>
    23.                                     </EditFormSettings>
    24.                                 </MasterTableView>
    25.                                 <ClientSettings>
    26.                                     <ClientEvents OnPopUpShowing="PopUpShowing" />
    27.                                     <Selecting AllowRowSelect="true" />
    28.                                 </ClientSettings>
    29.                             </telerik:RadGrid>
  2. Eyup
    Eyup avatar
    2941 posts

    Posted 12 Apr Link to this post

    Hello Philip,

    Please try accessing them using the ItemDataBound event handler:

    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft R3 2016 release webinar banner
Back to Top