RadAsyncUpload not working inside RadPanelItem <Items>

4 posts, 0 answers
  1. salvo
    salvo avatar
    2 posts
    Member since:
    Jan 2014

    Posted 31 Jan 2014 Link to this post

    Hello
    i have this following code...

    if the RadAsyncUpload runat is put inside

    <telerik:RadPanelItem Expanded="False" Text="Mat" >
                    <ItemTemplate>

                    </ItemTemplate>
                </telerik:RadPanelItem>

    It doe not work!!

    can you help me?


    <asp:ScriptManager runat="server"></asp:ScriptManager>
             
            <telerik:RadPanelBar runat="server" ID="RadPanelBar1" Width="100%" Skin="Silk">
            <Items>
                <telerik:RadPanelItem Expanded="True" Text="General Info" runat="server" Selected="true" Value="GeneralInfo">
                    <Items>
                        <telerik:RadPanelItem runat="server">
                            <ItemTemplate>
                                uao! this is expandable
                            </ItemTemplate>
                        </telerik:RadPanelItem>
                         
                    </Items>
                </telerik:RadPanelItem>
                <telerik:RadPanelItem Expanded="True" Text="General Info" runat="server" Selected="true" Value="GeneralInfo">
                    <Items>
                        <telerik:RadPanelItem runat="server">
                            <ItemTemplate>
                                  uao! this is expandable BUT upload does not work!
                                <div style="padding-bottom: 10px; padding-top: 10px;">
                                <asp:Button ID="btnDummy" runat="server" onclick="BtnUploadfileClick" style="display: none;" />
                                <telerik:RadAsyncUpload runat="server" ID="radUploader"
                                    MultipleFileSelection="Disabled"
                                    OnClientFileUploaded="OnClientFileUploaded"
                                    OnFileUploaded="RadAsyncUploadFileUploaded">
                                </telerik:RadAsyncUpload>
                 
                                <div class="mercurio-filesize" id="divContentSize" runat="server"></div>
                                <div class="mercurio-fileuploaderror" id="divErrorContentHolder" runat="server"></div>
         
             
                                <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
                                    <script type="text/javascript">
                                        function OnClientFileUploaded(sender, args) {
                                            document.getElementById("<%= GetDummyId() %>").click();
                                        }
     
                                    </script>
                                </telerik:RadScriptBlock>
                                </div>
                            </ItemTemplate>
                        </telerik:RadPanelItem>
                         
                    </Items>
                </telerik:RadPanelItem>
     
                <telerik:RadPanelItem Expanded="False" Text="Mat" >
                    <ItemTemplate>
                           uao! this is NOT expandable BUT upload WORKS CORRECTLY
                            <div style="padding-bottom: 10px; padding-top: 10px;">
                                <asp:Button ID="btnDummy" runat="server" onclick="BtnUploadfileClick" style="display: none;" />
                                <telerik:RadAsyncUpload runat="server" ID="radUploader"
                                    MultipleFileSelection="Disabled"
                                    OnClientFileUploaded="OnClientFileUploaded2"
                                    OnFileUploaded="RadAsyncUploadFileUploaded">
                                </telerik:RadAsyncUpload>
                 
                                <div class="mercurio-filesize" id="divContentSize" runat="server"></div>
                                <div class="mercurio-fileuploaderror" id="divErrorContentHolder" runat="server"></div>
         
             
                                <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
                                    <script type="text/javascript">
                                        function OnClientFileUploaded2(sender, args) {
                                            document.getElementById("<%= GetDummyId2() %>").click();
                                        }
     
                                    </script>
                                </telerik:RadScriptBlock>
                                </div>
                    </ItemTemplate>             
                </telerik:RadPanelItem>
            </Items>
            </telerik:RadPanelBar>
  2. salvo
    salvo avatar
    2 posts
    Member since:
    Jan 2014

    Posted 31 Jan 2014 in reply to salvo Link to this post

    sorry, it does not work in explorer 8 and explorer 7, but works perfectly in firefox and explorer 9
  3. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 05 Feb 2014 Link to this post

    Hi Salvo,

    What is the problem that you have experienced? Are you getting any JavaScript errors? Paste the GetDummyId and GetDummyId2 methods. What they return?

    Thanks.

    Regards,
    Hristo Valyavicharski
    Telerik
    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 UI for ASP.NET AJAX, subscribe to the blog feed now.
  4. salvo
    salvo avatar
    1 posts
    Member since:
    Jun 2011

    Posted 05 Feb 2014 Link to this post

    they return the client id of hidden buttons, to be used in automatic upload.

    btw, the bug is resolved in last build.
    thanks
Back to Top