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

Ajaxified grid with popup RadWindow and RadUpload

2 Answers 84 Views
Window
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 26 Feb 2010, 12:47 PM
Hi there, hope someone can help

I have an Ajaxified gird used for editing records with an edit template popup which is working fine. On the grid I have a column with an ImageButton that I want to perform the following operation when clicked.

1. Open a new popup window using RadWindow
2. The opened RadWindow is defined using the window template and has a RadUpload and an OK and Cancel button.
3. If the Cancel button is clicked then the window is to close.
4. If the OK button is clicked then validation is to be done to confirm at least one file has been uploaded and the window stays open if not.
5. If the OK button is clicked and at least one file has been uploaded then the window is to close and the uploaded files passed back to the server for processing.

I have got it working so far up to step 3.

The problem I am having is getting validation to work and also getting the list of uploaded files when the OK button is pressed.
I've tried setting a postback click event on the OK button but this doesn't seem to get fired.

Can anyone point me in the right direction or perhaps provide a working sample of this scenario.

Thanks for any help
Paul

2 Answers, 1 is accepted

Sort by
0
Paul
Top achievements
Rank 1
answered on 27 Feb 2010, 02:00 PM
Hi

I've just discovered the GridAttachmentColumn which seems to do exactly what I want so that is great. However, does anyone know how to use this in a custom edit form rather than the auro-generated edit form?

Regards

Paul
0
Accepted
Pavlina
Telerik team
answered on 02 Mar 2010, 04:17 PM
Hi Paul,

I am sending you a simple working application which demonstrates how to achieve the desired functionality. Please check it out and let me know if it works for you or if I am leaving something important out.

You could also refer to the following example which elaborates on this subject:
Binary Images and Upload in Grid

Additionally, I suggest you examine the  following online resources for more information about how to validate the uploaded files.
ValidatingFile
Validating using an ASP.NET validator
Require at least one file to be uploaded

I hope this helps.

Regards,
Pavlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Window
Asked by
Paul
Top achievements
Rank 1
Answers by
Paul
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or