2 radupload and the first disappears

Thread is closed for posting
2 posts, 0 answers
  1. Michel
    Michel avatar
    11 posts
    Member since:
    Oct 2011

    Posted 23 Apr 2012 Link to this post

    Hello,

    When I have one RadUpload, it's work :

    <table> 
         <tr> 
              <td class="label_up" colspan="2"><asp:Label ID="LBL_image" runat="server" CssClass="bold">Image : </asp:Label></td> 
         </tr> 
         <tr> 
              <td></td> 
              <td style="white-space:nowrap;"
                   <asp:Label runat="server" ID="info_image"></asp:Label> 
              </td> 
         </tr> 
         <tr> 
              <td class="width110"
                   <asp:Image runat="server" ID="Imagea" ImageUrl="./images/7.gif"></asp:Image> 
              </td> 
              <td> 
                   <telerik:RadUpload ID="RadUpload1" runat="server" ControlObjectsVisibility="None" 
                   overwriteexistingfiles="False" targetfolder="~/images/données" 
                   Skin="Vista" InputSize="20" MaxFileInputsCount="1" InitialFileInputsCount="1"
                   </telerik:RadUpload> 
        
                   <telerik:RadButton ID="SubmitButton" runat="server" Text="Upload image" onclick="SubmitButton_Click"
                   </telerik:RadButton> 
              </td> 
         </tr> 
         <tr> 
              <td></td> 
              <td> 
                   <telerik:RadButton ID="DeleteButton" runat="server" OnClick="DeleteImage" ClientIDMode="Static"
                   </telerik:RadButton> 
              </td> 
         </tr> 
    </table>

    But, if I add an another RadUpload, the fist one dissapears on the client page. :-(

    <table>  
         <tr>  
              <td class="label_up" colspan="2"><asp:Label ID="LBL_image" runat="server" CssClass="bold">Image : </asp:Label></td>  
         </tr>  
         <tr>  
              <td></td>  
              <td style="white-space:nowrap;">  
                   <asp:Label runat="server" ID="info_image"></asp:Label>  
              </td>  
         </tr>  
         <tr>  
              <td class="width110">  
                   <asp:Image runat="server" ID="Imagea" ImageUrl="./images/7.gif"></asp:Image>  
              </td>  
              <td>  
                   <telerik:RadUpload ID="RadUpload1" runat="server" ControlObjectsVisibility="None" 
                   overwriteexistingfiles="False" targetfolder="~/images/données" 
                   Skin="Vista" InputSize="20" MaxFileInputsCount="1" InitialFileInputsCount="1">  
                   </telerik:RadUpload>  
          
                   <telerik:RadButton ID="SubmitButton" runat="server" Text="Upload image" onclick="SubmitButton_Click">  
                   </telerik:RadButton>  
              </td>  
         </tr>  
         <tr>  
              <td></td>  
              <td>  
                   <telerik:RadButton ID="DeleteButton" runat="server" OnClick="DeleteImage" ClientIDMode="Static">  
                   </telerik:RadButton>  
              </td>  
         </tr>
         <tr>
              <td class="label_up" colspan="2">
                   <asp:Label ID="LBL_documents" runat="server" CssClass="bold">Documents :</asp:Label>
              </td>
         </tr>
         <tr>
              <td colspan="2">
                   <asp:Label runat="server" ID="Documents"></asp:Label>
              </td>
         </tr>
         <tr>
              <td>
                   <telerik:RadUpload ID="RadUpload2" runat="server" />                        
              </td>
              <td>
                   <asp:Repeater ID="repeaterResults" runat="server" Visible="False">
                        <HeaderTemplate>
                             <div class="title">Uploaded files in the target folder:</div>
                        </HeaderTemplate>
                        <ItemTemplate>
                             <%#DataBinder.Eval(Container.DataItem, "FileName")%>
                             <%#DataBinder.Eval(Container.DataItem, "ContentLength").ToString() + " bytes"%>
                             <br />
                        </ItemTemplate>
                   </asp:Repeater>
              </td>
         </tr>
         <tr>
              <td>
                   <telerik:RadButton runat="server" ID="RadButton1" Text="Upload files" onclick="SubmitFileButton_Click" />
              </td>
         </tr>
    </table> 

    Have you an idea?
  2. Plamen
    Admin
    Plamen avatar
    2734 posts

    Posted 26 Apr 2012 Link to this post

    Hello Michel,

     
    I have tested the second code and both uploads were visible at my side. It seems that the issue is caused by some custom styles in your project. Here you can see a video of my test in several browsers. Would you please explain what else should be done in order to observe the described behavior?

    Kind regards,
    Plamen Zdravkov
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top