or

<EditItemTemplate> <asp:Button ID="Button1" runat="server" Text="Button" /></EditItemTemplate><EditFormSettings EditFormType="Template"> <PopUpSettings Modal="True" /> <FormTemplate> <telerik:RadTextBox ID="Username" Runat="server"> </telerik:RadTextBox> </FormTemplate></EditFormSettings>

<telerik:RadGrid ID="attachment_list" runat="server" OnNeedDataSource="attachment_list_NeedDataSource" AutoGenerateColumns="False" AllowPaging="True" PageSize="30" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" OnEditCommand="attachment_list_EditCommand" GroupPanelPosition="Top" > <HeaderContextMenu EnableAutoScroll="True"> </HeaderContextMenu> <MasterTableView CommandItemDisplay="Top" NoMasterRecordsText="There are currently no attachments"> <CommandItemSettings AddNewRecordText="Attach Another File" /> <RowIndicatorColumn> <HeaderStyle Width="20px"></HeaderStyle> </RowIndicatorColumn> <ExpandCollapseColumn> <HeaderStyle Width="20px"></HeaderStyle> </ExpandCollapseColumn> <NoRecordsTemplate> <div ID="no_data_label">There are currently no attachments</div> </NoRecordsTemplate> <Columns> <telerik:GridBoundColumn DataField="AttachmentPath" HeaderText="File Name" UniqueName="FileName" ItemStyle-Width="340px"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="AttachmentDescriptors" HeaderText="Description" UniqueName="Desc" ItemStyle-Width="450px"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="LastUpdatedDate" HeaderText="Updated Date" UniqueName="UpdatedDate" ItemStyle-Width="200px"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="UpdatedByName" HeaderText="Updated By" UniqueName="UpdatedBy" ItemStyle-Width="200px"> </telerik:GridBoundColumn> <telerik:GridButtonColumn ConfirmText="Are you sure you want to delete this item?" ConfirmDialogType="RadWindow" ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn"> <ItemStyle HorizontalAlign="Center" CssClass="delete_button"></ItemStyle> </telerik:GridButtonColumn> <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"> <ItemStyle CssClass="edit_button"></ItemStyle> </telerik:GridEditCommandColumn> </Columns> <EditFormSettings EditFormType="Template"> <FormTemplate> <asp:Panel ID="attachment_edit" runat="server" GroupingText='<%# IIf((TypeOf (Container) Is GridEditFormInsertItem), "Add an Attachment", "Update an Attachment")%>'> <div class="inner_1"> <div class="float_left"> <asp:Panel ID="att_file_wrapper" runat="server"> <div class="label">Select File:</div> <telerik:RadUpload ID="att_file" runat="server" ReadOnlyFileInputs="True" ControlObjectsVisibility="none" ></telerik:RadUpload> </asp:Panel> <div class="label">Description:</div><asp:TextBox ID="att_desc" runat="server" Text='<%# Bind("AttachmentDescriptors")%>'></asp:TextBox> </div> </div> </asp:Panel> <div class="btn_group_small"> <asp:Button runat="server" ID="add_task" Text='<%# IIf((TypeOf (Container) Is GridEditFormInsertItem), "Add Attachment", "Update Attachment")%>' CommandName='<%# IIf((TypeOf (Container) Is GridEditFormInsertItem), "Insert", "Update")%>' CssClass="small_btn" /> <asp:Button runat="server" ID="cancel_task" Text="Cancel" CommandName="Cancel" CausesValidation="False" CssClass="small_btn" /> </div> </FormTemplate> </EditFormSettings> </MasterTableView> </telerik:RadGrid><telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1" runat="server" > <AjaxSettings> <telerik:AjaxSetting AjaxControlID="attachment_list"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="attachment_list" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManagerProxy>
