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

RadUpload (upload button) does not work inside an AJAX MultiPage TabStrip

2 Answers 132 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 29 Jan 2009, 06:12 AM
Just as the title states.

I hvae been able to make clicking of the tab force a post back with this code:
<script type="text/javascript">  
        Sys.Application.add_load(function()  
            {  
                currentlySelectedTab = $find("<%= RecipientTabs.ClientID %>").get_selectedTab();  
            });  
        function onClientTabSelecting(sender, args)  
        {  
            var currentlySelectedTab = args.get_tab().get_tabStrip().get_selectedTab();  
            if (currentlySelectedTab.get_index() == 1)  
            {  
                $find("<%= AjaxPanel1.ClientID %>").set_enableAJAX(false);  
            }  
        }  
        </script> 

but that only causes a normal post back when I click on the actual tab.

I have a regular asp.net button that I want to have that force a post back (it's also inside the RadTabStrip and RadMultiPage AJAX container.

Please let me know if there is a way I can have the regular button itself force the postback and cause the upload to happen.  I've tried several methods including the forcepostback javascript etc, but none of it works.

Thanks

2 Answers, 1 is accepted

Sort by
0
Jeff
Top achievements
Rank 1
answered on 29 Jan 2009, 08:23 AM
OK, after trying countless number of ways to disable single controls, panels, using tons of javascript, etc I finally found something that works:

http://www.telerik.com/help/aspnet-ajax/upload_uploadingajax.html

You have to wrap the whole rad upload (including your button) inside an ajax panel.  Then you can use the javascript "conditionalPostback" to cause it to work.

So you will have your Tabs, then your multi-page controls, then inside the PageView control where your code resides you put the panel.

0
Saqib
Top achievements
Rank 1
answered on 15 Oct 2009, 08:57 PM
Jeff,
You just made my day. I was struggling with this for more than 3 hours until I saw the post.

Thank you.
Tags
Upload (Obsolete)
Asked by
Jeff
Top achievements
Rank 1
Answers by
Jeff
Top achievements
Rank 1
Saqib
Top achievements
Rank 1
Share this question
or