Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
13 views

We have a RadAsyncUpload control on a page.  The "Select" button is displayed to allow the user to choose files.  All good.  What we'd like is a way to detect when the Select button is clicked to clean up other parts of the page. 

For example... we also have a RadGrid on the page.  The user might have a row open in an EditForm.  We'd like to close that edit form when the user clicks the Select button of the RadAsyncUpload control.  I don't see an obvious client side event for that, and the Select button doesn't trigger a server side event.  

Is there a client-side equivalent for the RadGrid ClearEditItems method that could be called as part of the click event on the RadAsyncUpload Select button?

Any suggestions would be appreciated.

Rumen
Telerik team
 answered on 13 Mar 2024
2 answers
31 views

Hi,

 

Is it possible to upload directly to the TargetFolder when the file is dropped on a dropzone?

I mean, without hitting a submit button first?

 

Thanks,

Marc

Vasko
Telerik team
 answered on 30 Nov 2023
0 answers
42 views

I am creating a mobile website using radcomboboxes inside of update controls that are set to autopostback = true.  All of the controls work except on the page's initial load the UI elements are enlarged and look more like buttons.  They are still able to be selected and after the controls postback the elements still do not go back to a normal size. Only after a postback from another control do the UI elements shrink down to a normal size.  

I have tested the radcombobox with checkboxes enabled outside of the update panel and this behavior does not change.  I have a master page that contains jQuery files located in the header, and when I remove one of the js files, the problem disappears with the UI elements disappearing.  Can anyone help me figure out what is preventing the UI elements from rendering properly?

On Load:

   

After postback:

 

 

1 answer
46 views

when uploading file 

Uncaught SyntaxError: Unexpected token '<', "


<!DOCTYPE "... is not valid JSON
    at JSON.parse (<anonymous>)
    at n.parseJSON (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a669ca791-a838-4419-82bc-9fa647338708%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2023.2.714.45%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a1bc89511-db65-4edd-9b7b-852f5fbc5915%3a16e4e7cd%3af7645509%3a24ee1bba%3a33715776%3a52af31a4%3a5fa37e7e%3bAjaxControlToolkit%2c+Version%3d1.0.10606.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a0b6af642-f113-415c-b33c-97e8c63eeb23%3ab14bb7d5%3acecc93f9%3adc2d6e36%3a5acd2e8e%3a13f47f54%3a4cda6429%3a35ff259d%3aefde3e73%3aca84c49e:1587:16647)
    at g.callback (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a669ca791-a838-4419-82bc-9fa647338708%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2023.2.714.45%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a1bc89511-db65-4edd-9b7b-852f5fbc5915%3a16e4e7cd%3af7645509%3a24ee1bba%3a33715776%3a52af31a4%3a5fa37e7e%3bAjaxControlToolkit%2c+Version%3d1.0.10606.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a0b6af642-f113-415c-b33c-97e8c63eeb23%3ab14bb7d5%3acecc93f9%3adc2d6e36%3a5acd2e8e%3a13f47f54%3a4cda6429%3a35ff259d%3aefde3e73%3aca84c49e:2838:15)
    at XMLHttpRequest.m (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a669ca791-a838-4419-82bc-9fa647338708%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2023.2.714.45%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a1bc89511-db65-4edd-9b7b-852f5fbc5915%3a16e4e7cd%3af7645509%3a24ee1bba%3a33715776%3a52af31a4%3a5fa37e7e%3bAjaxControlToolkit%2c+Version%3d1.0.10606.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a0b6af642-f113-415c-b33c-97e8c63eeb23%3ab14bb7d5%3acecc93f9%3adc2d6e36%3a5acd2e8e%3a13f47f54%3a4cda6429%3a35ff259d%3aefde3e73%3aca84c49e:2950:77)

 

Attila Antal
Telerik team
 answered on 30 Aug 2023
1 answer
61 views

How do I trouble shoot the following error "RadAsyncUpload handler is registered successfully, however, it may not be accessed directly."

 

It works fine locally but not on the server.

 

 

 

Mark
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 24 Jul 2023
1 answer
86 views

Hello -

We are using Telerik forms for our internal website. When I download one page with all its components, it is 73 files and 11.2 MB total size. Screen captures attached.

  • 10 axd files (4.4 MB)
  • 8 css files (328 KB)
  • 47 js files (2.7 MB)
  • 7 image files (84 KB)
  • 1 html file (3.7 MB)

Most of our site is made up of similar pages. Our site has an average 500 connections per second. During peak times, the website crawls, with 20-30 seconds to return one page for each user.

We are accessing only text, with about 200 KB of text returned for each request.

It looks like 99.3% of the size of our pages is Telerik related files (mostly axd and js).

What could we be doing wrong? What should we be doing differently to reduce the size or count of Telerik files returned to the client?

Thank you!

Rumen
Telerik team
 updated answer on 28 Jun 2023
0 answers
291 views

Our system was probed using the url:    /Telerik.Web.UI.WebResource.axd?type=rau

which produced this frightening message:

{ "message" : "RadAsyncUpload handler is registered succesfully, however, it may not be accessed directly." }

I stopped getting that message after I disabled the Upload Handler in the web.config:

<add key="Telerik.Web.DisableAsyncUploadHandler" value="true"/>

But my question is, how can I tell if my system (Windows 2012) has been compromised

Thank you,

Steven

 

Steven
Top achievements
Rank 1
Iron
 asked on 04 May 2023
1 answer
49 views

Hello, everyone. I need your help. How can I disable the button when uploading an image, and the button becomes enable after the image is uploaded successfully. I'd prefer to do it in JavaScript but I failed. just like

var btnMove = $find("<%= RadGrid1.ClientID %>").get_masterTableView().get_commandItem().findControl("btnMove");             
btnMove.set_enabled(false);

It's useless,how can I do it. there are my code.

 <telerik:RadMultiPage runat="server" ID="RadMultiPage1" SelectedIndex="0" CssClass="outerMultiPage">
            <telerik:RadPageView runat="server" ID="RadPageView1">
                <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" Height="740px" BackColor="#FFFFFF">                   
                    <div class="ContentRow">
                        <div class="column c1 ">
                            <telerik:RadLabel ID="LabContainer" runat="server" Text="LabContainer" CssClass="LabOnRight" ForeColor="#000000"></telerik:RadLabel>
                        </div>
                        <div class="column c2 ">
                             <telerik:RadTextBox ID="txtContainer" runat="server" ></telerik:RadTextBox>
                        </div>
                    </div>     
                    <div class="ContentRow">                  
                           <telerik:RadAsyncUpload RenderMode="Lightweight" runat="server" ID="AsyncUpload1" AllowedFileExtensions="jpeg,jpg,gif,png,bmp"   OnClientFileUploading="OnClientFileUploading" OnClientValidationFailed="onClientValidationFailed"  MaxFileInputsCount="1" PostbackTriggers="btnMove" >                                
                            </telerik:RadAsyncUpload>                            
                     </div>
                    <telerik:RadGrid RenderMode="Lightweight" runat="server" ID="RadGrid1" Height="700px" AllowPaging="true" PageSize="10" AllowAutomaticDeletes="true" 
                        AllowAutomaticUpdates="false" AllowAutomaticInserts="false"  AllowFilteringByColumn="false" AllowMultiRowSelection="false"
                        OnNeedDataSource="RadGrid_NeedDataSource" OnItemCommand="RadGrid_ItemCommand" OnItemDataBound="RadGrid_ItemDataBound" 
                        OnItemCreated="RadGrid_ItemCreated" OnDeleteCommand ="RadGrid_DeleteCommand" >
                        <PagerStyle Position="Bottom" AlwaysVisible="true" PageSizes="10,20,30"></PagerStyle>
                        <ClientSettings EnableAlternatingItems="true" AllowKeyboardNavigation="False" EnablePostBackOnRowClick="true">
                            <Selecting AllowRowSelect="false" />
                            <Scrolling AllowScroll="true" UseStaticHeaders="true"></Scrolling>
                        </ClientSettings>
                         <AlternatingItemStyle BackColor ="LightBlue" />
                        <MasterTableView DataKeyNames="ContainerName" AutoGenerateColumns="false" CommandItemDisplay="Top" EditMode="PopUp">
                            <CommandItemTemplate>
                                <telerik:RadPushButton ID="btnClearAll" runat="server" UniqueName="btnClearAll" Text="Clear All" OnClick ="btnClearAll_Click"></telerik:RadPushButton>
                                <telerik:RadPushButton ID="btnMove" runat="server" UniqueName="btnMove" Text="Move In" OnClientClicking="ShowMoveForm"></telerik:RadPushButton>                               
                            </CommandItemTemplate>
                            <CommandItemSettings ShowAddNewRecordButton="false" />
                            <Columns>
 </Columns>
                        </MasterTableView>
                    </telerik:RadGrid>

                </telerik:RadAjaxPanel>
            </telerik:RadPageView>
<telerik:RadPageView runat="server" ID="RadPageView2">
//
//
</telerik:RadMultiPage>


Attila Antal
Telerik team
 answered on 26 Apr 2023
0 answers
102 views

Hi All,

I am trying to provide read-only access to certain users. This user should not be able to remove the uploaded file. 

How do I hide/disable the remove button from server side? 

 

 

Neil
Top achievements
Rank 2
 updated question on 20 Apr 2023
0 answers
81 views
Please help me, I have no idea how to upload the images form local computer to the remote computer's folder. I don't know how to write the code about the remote folder' path   on "TargetFolder" and how to test it whether it uploaded correctly. Please give me an example. Thanks very much!
<telerik:RadAsyncUpload RenderMode="Lightweight" runat="server" ID="AsyncUpload1" AllowedFileExtensions="jpeg,jpg,gif,png,bmp" OnClientFileUploading="OnClientFileUploading" OnClientValidationFailed="onClientValidationFailed"  MaxFileInputsCount="1" 
TargetFolder="" > 
</telerik:RadAsyncUpload>

Colin
Top achievements
Rank 1
Iron
 asked on 22 Mar 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?