Ajaxified grid with popup RadWindow and RadUpload

3 posts, 1 answers
  1. Paul
    Paul avatar
    43 posts
    Member since:
    Aug 2005

    Posted 26 Feb 2010 Link to this post

    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
  2. Paul
    Paul avatar
    43 posts
    Member since:
    Aug 2005

    Posted 27 Feb 2010 Link to this post


    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?


  3. Answer
    Pavlina avatar
    6183 posts

    Posted 02 Mar 2010 Link to this post

    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.
    Validating using an ASP.NET validator
    Require at least one file to be uploaded

    I hope this helps.

    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.
Back to Top