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

[Solved] RadGrid with EditFormType WebUserControl and Attachment?

1 Answer 117 Views
Grid
This is a migrated thread and some comments may be shown as answers.
chrbra
Top achievements
Rank 1
chrbra asked on 25 Mar 2013, 09:34 AM
Hi folks,

I've got a RadGrid with a LinqDataSource and a WebUserControl as EditForm, much like the example http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/linqdatasource/defaultcs.aspx.

I have some custom code in my WebUserControl which makes it impossible for me to switch to another EditFormType.

Now I need to add a File Upload to the EditForm. Of course just adding a normal FileUpload (asp:FileUpload aswell as telerik:RadUpload) doesn't work because there are no postbacks in the EditForm UserControl.

In the examples (http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/gridattachmentcolumn/defaultcs.aspx) I find a <telerik:GridAttachmentColumn> which would be great if I were using an automatically generated EditForm, but doesn't help me with my EditForm.

Is there any way I can put a file upload in my UserControl EditForm? Any suggestions for a workaround?

Cheers

1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 28 Mar 2013, 09:30 AM
Hi Christian,

If you do not want a postback to be performed while uploading a file I suggest that you use the RadAsyncUpload control. When the control uploads a file it is stored in a temporary location until a postback occurs.

Kind regards,
Angel Petrov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
chrbra
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or