Dear support ,
I have grid view with , and i need to access the upload file control in insertCommand and editCommand event.
i got cant convert System.Web.UI to Telerik.Web.UI.UploadControl when i try to get the control
here is my grid and the event
server Code..
.aspx code
if you need the full code for the grid or the code behind please tell ..
Thanks
I have grid view with , and i need to access the upload file control in insertCommand and editCommand event.
i got cant convert System.Web.UI to Telerik.Web.UI.UploadControl when i try to get the control
here is my grid and the event
server Code..
protected void MasterRadGrid_InsertCommand(object source, GridCommandEventArgs e) { try { Telerik.Web.UI.UploadedFile attachment = e.Item.FindControl("txtUpdateTaskCompletion2") as Telerik.Web.UI.UploadedFile;.aspx code
<telerik:RadGrid CssClass="GridAlign" ID="MasterRadGrid" runat="server" ShowStatusBar="true" AutoGenerateColumns="False" PageSize="3" AllowSorting="True" AllowMultiRowSelection="False" AllowPaging="True" GridLines="None" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" OnInsertCommand="MasterRadGrid_InsertCommand" OnDetailTableDataBind="MasterRadGrid_DetailTableDataBind" OnNeedDataSource="MasterRadGrid_NeedDataSource" OnUpdateCommand="MasterRadGrid_UpdateCommand" Skin="Metro" OnDeleteCommand="MasterRadGrid_DeleteCommand"> <PagerStyle Mode="NumericPages"></PagerStyle> <MasterTableView DataKeyNames="CommentID" AllowMultiColumnSorting="True" Width="100%" CommandItemDisplay="Top" Name="MainComment"> <CommandItemStyle CssClass="GridAlign" /> <NoRecordsTemplate> No Records to Display </NoRecordsTemplate> <HeaderStyle CssClass="InnerHeaderStyle" /><EditFormSettings EditFormType="Template"> <FormTemplate> <div id="content"> <table> <tr> <td style="width: 20%; padding-right: 10px"> <asp:Label ID="lblAttachments" runat="server" Text="<%$Resources:TMS.UI,TM_AddNewTask_lblTaskAttachmentTitle%>" /> </td> <td colspan="3" style="width: 65%"> <telerik:RadUpload ControlObjectsVisibility="RemoveButtons,AddButton" ID="rpTaskAttachments" runat="server" Localization-Add="<%$Resources:TMS.UI,TM_AddNewTask_btnAddAttachment%>" Localization-Remove="<%$Resources:TMS.UI,TM_AddNewTask_btnRemoveAttachment%>" Localization-Select="<%$Resources:TMS.UI,TM_AddNewTask_btnSelectAttachment%>" OnClientAdded="AddNewFields" Width="500px"> </telerik:RadUpload> </td> </tr> </table>if you need the full code for the grid or the code behind please tell ..
Thanks