This is a migrated thread and some comments may be shown as answers.

Cant access edit form controls in page_load

1 Answer 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Philip
Top achievements
Rank 1
Philip asked on 07 Apr 2016, 07:56 AM
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>
10. 
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>
19. 
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>

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 12 Apr 2016, 06:20 AM
Hello Philip,

Please try accessing them using the ItemDataBound event handler:
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/rows/accessing-cells-and-rows#accessing-controls-in-editinsert-mode

Regards,
Eyup
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Grid
Asked by
Philip
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or