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

How do I remove the indent/padding from an expanded context menu?  

 

See attached image.  The only thing that should be visible is the black box with gold border.  

 

How do I remove the padding without effecting other menus elsewhere on the page?  

 

I created a custom skin called Black1 via the theme builder  but I do not see any entries to explain the indent.  

 

 

 

Doncho
Telerik team
 answered on 23 Apr 2020
5 answers
254 views

Hi, is it possible to have an offline version of the whole (new) documentation for ASP.NET AJAX?

In CHM or similar format?

Thanks, Tom

Vessy
Telerik team
 answered on 23 Apr 2020
1 answer
643 views

Hi there,

Our organization is using the FileExplorer control in one of our web applications for our end users to manage files.

There is a continuous request for being able to download all files from any given folder instead of downloading them one by one.

Does the latest version of FileExplorer support this feature? If not, is this on your roadmap for future releases?

Thanks,
Roger

Vessy
Telerik team
 answered on 23 Apr 2020
1 answer
176 views

Hi from France, from my home...

normally, I'm on vacation since Friday evening, but I had a problem with the finalization of my project during the weekend.

And i need help !

 

I've got an RadAjaxManager, 2 buttons set as PostBackControls

this buttons are in listview, this listview is ajaxified

Each item in listiew contains for clic on

2 radiobutton (grouped) AjaxPostback to set in database is selected and other things

2 buttons (1 per radiobutton) to download a generated document from Database and they must set a fullpostback on clic

uploadViewbutton ajaxPostback for opening a panel.to view Upload Zone (and put element id Selected in upload button commandArg)

My problem is i clic on fullPostback Buttons i've an error :

 

Sys.WebForms.PageRequestManagerParserErrorException: Sys.WebForms.PageRequestManagerParserErrorException: Impossible d'analyser le message reçu du serveur. Cette erreur peut avoir plusieurs causes possibles : réponse modifiée par des appels à Response.Write(), filtres de réponse, HttpModules ou activation de trace du serveur.
Détails : Erreur d'analyse à proximité de 'PK

My code behind fullpostback to download document :

With Response
           Dim filename As String = strLibelle & "." & strExtension
           .Clear()
           .ContentType = strType
           .AddHeader("Content-Disposition", "attachment; filename=" & filename)
           .AddHeader("content-length", bFile.Length.ToString)
           .BinaryWrite(bFile)
           .End()
       End With

 

My Aspx :

<asp:ScriptManager ID="SM1" runat="server"/>
        <telerik:RadAjaxManager ID="RAM1" runat="server" UpdatePanelsRenderMode="Inline" PostBackControls="btro;btrs" >
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="btrsUp">
                    <UpdatedControls>                       
                        <telerik:AjaxUpdatedControl ControlID="pZoneUpload" />                       
                    </UpdatedControls>
                    </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btJoindreCCTP">
                      <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="pJoindreCCTP" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                 <telerik:AjaxSetting AjaxControlID="ro">
                      <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="cctpList" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                 <telerik:AjaxSetting AjaxControlID="rs">
                      <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="cctpList" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                 <telerik:AjaxSetting AjaxControlID="btUploadDoc">
                      <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="cctpList" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>           
        </telerik:RadAjaxManager>
 
<telerik:RadWindow runat="server" ID="rwCCTP" Title="CCTP - Paramétrage" VisibleStatusbar="false" Modal="true" Behaviors="Close, Move" AutoSize="true" Skin="Default" RenderMode="Lightweight">
                <Localization Cancel="Annuler" Close="Fermer" Maximize="Agrandir" Minimize="Réduire" No="Non" PinOff="Détacher" PinOn="Attacher" Reload="Recharger" Restore="Restaurer" Yes="Oui" />
                <ContentTemplate>
                    <section id="CCTP-edit">
                        <header>
                            <h2><asp:Literal runat="server" ID="CCTP_Title"></asp:Literal></h2>
                            <asp:Literal runat="server" ID="CCTP_DetailCompo"></asp:Literal>
                            <asp:Panel ID="pJoindreCCTP" runat="server" CssClass="pjoindreCCTP">                               
                                <asp:Label runat="server" ID="ll" Text="Joindre les CCTP lors de l'impression :"></asp:Label>
                                <asp:Button runat="server" ID="btJoindreCCTP" cssclass="switchButton" ToolTip="Inverser en cliquant."/>                               
                            </asp:Panel>
                        </header>                       
                        <div id="CCTP_content" Class="container">
                            <asp:panel runat="server" id="cctpList" CssClass="cctpList section">
                                <asp:ListView runat="server" ID="lvCCTP" OnItemCommand="lvCCTP_ItemCommand" DataKeyNames="IdCCTPCompoDCE" >                                   
                                    <LayoutTemplate>
                                        <asp:PlaceHolder id="itemPlaceholder" runat="server">
                                        </asp:PlaceHolder>
                                    </LayoutTemplate>
                                    <ItemTemplate>
                                        <div class="cctpRow">
                                            <h3><asp:Literal runat="server" Text='<%#Eval("Nom") %>'></asp:Literal></h3>
                                            <div class="ori">                                              
                                                <asp:RadioButton ID="ro" runat="server" Text="Original" GroupName="cctpSM1" Checked='<%#Eval("selection") = Francelot.CCTP.CompoSM.TypeCCTP.Original %>' AutoPostBack="true" OnCheckedChanged="ro_CheckedChanged" />
                                                <asp:Button runat="server" ID="btro" cssClass="btn-ico viewDoc" UseSubmitBehavior="False" CommandArgument='<%#Eval("CCTPOriginale.idPieceJointe") %>' CommandName="ViewDocOriginal" />
                                            </div>
                                            <asp:panel ID="pSpe" runat="server" cssclass="spe" Enabled='<%#Eval("CCTPSpecifique.idPieceJointe") > 0 %>'>
                                                <asp:RadioButton ID="rs" runat="server" Text="Spécifique" GroupName="cctpSM1" Checked='<%#Eval("selection") = Francelot.CCTP.CompoSM.TypeCCTP.Specifique %>' AutoPostBack="true" OnCheckedChanged="rs_CheckedChanged" />
                                                <asp:Button runat="server" ID="btrs" cssClass="btn-ico viewDoc" UseSubmitBehavior="False" CommandArgument='<%#Eval("CCTPSpecifique.idPieceJointe") %>' CommandName="ViewDocSpecifique" Visible='<%#Eval("CCTPSpecifique.idPieceJointe") > 0 %>' />
                                            </asp:panel>
                                            <div class="up">
                                                <asp:Button runat="server" ID="btrsUp" cssClass="btn-ico uploadDoc" UseSubmitBehavior="False" CommandArgument='<%#Eval("IdCCTPCompoDCE") %>' CommandName="ViewUpload" />
                                            </div>                                       
                                        </div>
                                    </ItemTemplate>                                  
                                </asp:ListView>
                            </asp:panel>
                            <asp:panel runat="server" ID="pZoneUpload" CssClass="section zupload-collapsed" DefaultButton="btUploadDoc">
                                <div class="depotBloc">
                                    <h5>Zone de dépôt des additifs à la CCTP originale.</h5>
                                    <div>
                                        <telerik:RadAsyncUpload Culture="fr-FR" ID="RAU" runat="server" DropZones=".dropZone" PostbackTriggers="btUploadDoc" MaxFileInputsCount="1" AllowedFileExtensions="doc,docx" data-clientFilter="application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document" OnClientAdded="OnClientAdded" AutoAddFileInputs="true" HideFileInput="True" RenderMode="Lightweight">     
                                            <Localization  Cancel="Annuler" Remove="Retirer"  DropZone="Déposez le fichier ici" />                                           
                                        </telerik:RadAsyncUpload >                                      
                                        <div class="dropZone" >
                                            <span>Déposez le fichier ici</span>
                                        </div>
                                    </div>
                                    <div class="action-upload">
                                        <asp:Button runat="server" ID="btUploadDoc" UseSubmitBehavior="False" CommandName="UploadDoc" Text="Envoyer" OnClientClick="OnClientClicking()" />
                                    </div>
                                  </div>
                                <asp:Button runat ="server" Text="tempmail" ID="btnmail"/>
                            </asp:Panel>
                        </div>
                    </section>
                    <telerik:RadCodeBlock ID="rcb" runat="server">
                        <script>
                            var uploadctrl = '<%= RAU.ClientID %>';
 
                            function OnClientAdded(sender, args) {
                                var allowedMimeTypes = $telerik.$(sender.get_element()).attr("data-clientFilter");
                                $telerik.$(args.get_row()).find(".ruFileInput").attr("accept", allowedMimeTypes);
                            }
 
                            function OnClientClicking(args) {
 
                                var upload = $find(uploadctrl);
                                var files = upload.getUploadedFiles();
 
                                if (files == 0) {
                                    args.set_cancel(true);
                                }
                            }
                            </script>
                    </telerik:RadCodeBlock>
                </ContentTemplate>
            </telerik:RadWindow>

 

 

 

 

Rumen
Telerik team
 answered on 22 Apr 2020
23 answers
2.0K+ views
Dear telerik team,

I've some problem using RadAsyncUpload [Q2 2010 .Net 3.5].
When I want to save uploaded file to the specified folder, sometime it raised error exception: cannot find [temporary file location].  You can see error message on the pic attached.

This problem doesn't always occur, means sometime I can successfully save the file.
Below is my code when for saving the file:

If RadAsyncUpload1.UploadedFiles.Count > 0 Then     
    For Each validFile As UploadedFile In RadAsyncUpload1.UploadedFiles 
        Dim targetFolder As String = Server.MapPath("~/uploadedFile/")
         
        If Not Directory.Exists(targetFolder) = True Then
            Directory.CreateDirectory(targetFolder)
        End If
 
        validFile.SaveAs(Path.Combine(targetFolder, validFile.FileName), True)
    Next
End If

Thank you..
Simon
Top achievements
Rank 1
 answered on 22 Apr 2020
1 answer
235 views

     Hello,

     I tested the Spreadsheet with a normal csv, worked very well

     But now i have to load a xlsm file, but unfortunaltly it doesnt work.

     Does Spreadsheet support .xlsm Files? When not is there a product/Control from Telerik/Progress which does?

 

    Thanks in Advance 

Peter Milchev
Telerik team
 answered on 21 Apr 2020
5 answers
282 views
Hi Telerik,

I have a page where the Radscheduler control is used. The only problem is when i try navigate between dates using "<" Today ">"  icons section (which comes as part of the control)it does a post back and the entrie page gets refreshed. I have added the RadAjaxManager to restict the post back for few buttons and Radscheduler itself but that doesnt seem to work.

am i missing any thing? I havent added any code at .cs level which i think is the entire idea of code less ajax implementation.
Please suggest a way to solve this.

Thanks and Regards,
Adi.

 

Peter Milchev
Telerik team
 answered on 21 Apr 2020
1 answer
99 views

Hello Admin,

 

i have radgrid, with GridTemplateColumn of textbox (amount) item inside. is there any way when i've changed textbox value in page 1 and then moving onto next page 2, then back again to page 1, value of previously changed still remain, and not overwrite it with data from radgrid.rebind ?

i've tried looking in this grid-persist-checkbox-state-in-gridtemplatecolumn, but this link can not be accessed anymore.

 

Regards,

 

Ragil

 

 

Attila Antal
Telerik team
 answered on 21 Apr 2020
19 answers
716 views
Many users have begun using our website on their iPads and iPhones. At present, it appears that Telerik doesn't fully support these platforms with RadControls... for example, the RadComboBox is not treated like a dropdown natively by the Safari browser (i.e. using the native picker); instead, it is displayed as it would be on a desktop browser.

Are there any plans to include full mobile Safari support in the near future?

Many thanks,

Jake
Rumen
Telerik team
 answered on 21 Apr 2020
8 answers
634 views
Hi,
I need to filter the files displayed in the browse dialogue window based on file types. I am using RadAsyncUpload control to
accomplish this.
  • When I browse in FF, I can see two browse button displayed. Clicking on first browse button doesn't open dialogue with file lists. Attached the image. I want a simple file upload control with single browse button. I had a similar issue in IE but resolved by adding the following. But  issue still persists in FF.
    <TeleControl:RadStyleSheetManager runat="server" ID="RadStyleSheetManager1"> </TeleControl:RadStyleSheetManager>
                                    
  • When I browse with applying file filter for Image files(jpg,png), It shows all files in the open dialogue window instead of showing only those files with extension .jpg or .png. Attached the screen shot. But when I refresh the page it works fine. 
  • Can you please explain how does this file filter works in RadAsyncUpload w.r.t browsers. As far as I know, It depends on upload module. IE prefers silver light first where as FF prefers flash. Is that possible to make filters work in IE with having only flash (not silverlight)?. In which scenario does this combination (IE or FireFox with only flash) fails?.

Please find the aspx code:
 
<TeleControl:RadStyleSheetManager runat="server" ID="RadStyleSheetManager1"></TeleControl:RadStyleSheetManager>

<TeleControl:RadAsyncUpload ID="RadAsyncUpload1" runat="server">
<Localization Select="Browse" />
</TeleControl:RadAsyncUpload>

C# (asp.net page behind):
protected void Page_Load(object sender, EventArgs e)
 {
       var filter = new FileFilter();
        filter.Description = "Image files(jpg,png)";
        filter.Extensions = new string[2];
        filter.Extensions[0] = "jpg";
        filter.Extensions[1] = "png";
        RadAsyncUpload1.FileFilters.Add(filter);
}


David
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 20 Apr 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?