OnItemCommand Firing multiple times

2 posts, 0 answers
  1. Atlas
    Atlas avatar
    97 posts
    Member since:
    Jun 2009

    Posted 03 Mar 2010 Link to this post

    I have added an OnItemCommand to my FileExplorer control, and it is firing once per file uploaded. If I attempt to upload three files at once, the command fires three times?? I would expect it to fire only once.
  2. Atlas
    Atlas avatar
    97 posts
    Member since:
    Jun 2009

    Posted 04 Mar 2010 Link to this post

    Problem solved:
    void RadFileExplorer1_ItemCommand(object sender, RadFileExplorerEventArgs e)  
    {  
        UploadedFile currentUploadedFile;  
        if (e.Command == "UploadFile")  
        {  
            foreach (UploadedFile file in explorer.Upload.UploadedFiles)  
            {  
                string currentUploadedFileName = VirtualPathUtility.GetFileName(e.Path);  
                if (file.GetName() == currentUploadedFileName)  
                {  
                    currentUploadedFile = file;  
                    break;  
                }  
            }  
        }  
       
        // use the currentUploadedFile  
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top