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

AjaxManager and tabstrip+multipage

5 Answers 83 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
James Lever
Top achievements
Rank 1
James Lever asked on 25 Nov 2008, 03:44 PM
Hi,

I have a AjaxMan on a page but i have ajaxifing a treeview to the tabstrip with multipage but i have a upload control in the which i have tried the condition postback in JS with the ajax manager on request start but to no luck it still just does a part postback

Help

James

5 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 26 Nov 2008, 12:24 PM
Hi James,

RadUpload cannot upload files using AJAX calls. This is a limitation of the XmlHttpRequest component, used in all AJAX frameworks for asynchronous calls to the application. In order to upload a file your application must perform a full page postback.
Please review the following help topic for more information on this matter.

All the best,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
James Lever
Top achievements
Rank 1
answered on 26 Nov 2008, 01:02 PM
i have tried that with the Ajax manger onrequeststart to the javascript call but it doesn't work still only does a ajax postback please check thats the ajax manger works with

here is the javascript i'm using

<script type="text/javascript">  
        function conditionalPostback(sender, args) {  
            if (args.EvenTarget == "<%= btnUpdate.UniqueID %>") {  
                args.EnableAjax = false;  
            }  
        }  
          
    </script> 
    </telerik:RadScriptBlock> 
      
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ClientEvents-OnRequestStart="conditionalPostback">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="RadTreeView1">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" /> 
                    <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 

and the button doesn't have any onclientclick event i followed your examples but still doesn't work

0
Maria Ilieva
Telerik team
answered on 26 Nov 2008, 02:54 PM
Hello James Lever,

You should exclude from ajaxifying the controls which are related to the RadUpload control. Which control is "btnUpdate" in your case? In its place you should add the upload initiator. And also please note that when the controls related with the RadUpload are excluded from Ajax it is expected behaviour for them to work with regular postbacks, as RadUpload cannot upload files using AJAX calls.

Best wishes,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
James Lever
Top achievements
Rank 1
answered on 26 Nov 2008, 03:08 PM
the thing is i'm not wanting it to be related in the Ajax but for what i want it's being added and i don't want to be please tell me how to do this upload initator??

James
0
Maria Ilieva
Telerik team
answered on 27 Nov 2008, 02:07 PM
Hello James,

You could not add RadUpload or all related with it controls into the RadAjax settings.. RadUpload works only with regular postback.

Best wishes,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
James Lever
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
James Lever
Top achievements
Rank 1
Share this question
or