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

Hello,

I am trying to generate a solution for processing Word .DOCX documents, adding some headers and footer and then saving them as a PDF.  My original code used Aspose libraries to accomplish this.  Our current version is many years old and outside the update path, their recent releases seem to handle this, so I know Telerik handles some of the same functionality and was considering standardizing on Telerik and re-writing the code.

I created a real simple example as a test to just read in the .docx as a stream and then export as a PDF.  The PDF seems to be corrupted or fails with Cambodian, and if I load just a standard English, Spanish or similar document (without doing the header work, etc) it seems to save the PDF fine.

I did not know if there was additional statements I needed to get this to convert/save as a pdf because of the font family.  Thanks

 

            Telerik.Windows.Documents.Flow.Model.RadFlowDocument doc;

            var docxPRovider = new Telerik.Windows.Documents.Flow.FormatProviders.Docx.DocxFormatProvider();
            var pdfProvider = new Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider();
            TimeSpan timeoutInterval = TimeSpan.FromSeconds(180);

            using (FileStream stream = File.Open(@"C:\Telerik\15-190.docx", FileMode.Open))
            {
                doc = docxPRovider.Import(stream, timeoutInterval);
            }
        
            using (Stream output = File.Open(@"C:\Telerik\Out\15-190.pdf", FileMode.Create))
            {
                pdfProvider.Export(doc, output, timeoutInterval);
            }

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 May 2025
1 answer
13 views


For RTL languages, the "Back" and "Next" buttons on the Image Manager screen appear inverted.

How should I fix it? I also checked here, also the direction of the arrows is wrong for RTL languages.

Please help us fix this issue.


Rumen
Telerik team
 answered on 06 May 2025
1 answer
19 views

Hi,

I'm using RadFileExplorer in a project that includes file version control. Occasionally, when attempting to save a new version of a file, I receive the alert:
"A file with a name same as the target already exists!"

This issue seems inconsistent — it doesn't appear limited to a specific file type, but I've noticed it more frequently with image files or files that have numbers in their names.

I came across a possible solution in this File Explorer as a Version Control issues. in UI for ASP.NET AJAX | Telerik Forums, where it was suggested to modify the GetFIle method to always return null. Here's the method :

public override Stream GetFile(string url)
{
    string virtualPath = RemoveProtocolNameAndServerName(url);
    string physicalPath = this.GetPhysicalFromVirtualPath(virtualPath);
    if (physicalPath == null)
        return null;

    if (!File.Exists(physicalPath))
    {
        return null;
    }

    return File.OpenRead(physicalPath);
}

if it is okay to overriding this method to always return null? Is it a safe and recommended approach to prevent the "file already exists" error in version control scenarios?
Rumen
Telerik team
 answered on 06 May 2025
2 answers
25 views

Good afternoon,

I'm currently running Telerik UI for ASP.NET AJAX R3 2023.  I am using the RadAsyncUpload with a AsyncHandler.ashx to copy the file to a RadUploadTemp on a file share.

This has been working perfectly for ages but recently large file updates have been failing e.g. a 2.1 GB file failing at 61%.  I'm being told this is due to a TCP Zero Window issue.

I assumed the chunked upload mechanism mitigates the issues caused by TCP window size restrictions, which can cause slowdowns or failures when uploading very large files in a single request. I am setting the upload ChunkSize value to 4194304.

I have the following settings in web.config:

  <system.web>    
    <httpRuntime maxRequestLength="2097151" executionTimeout="18000"/>
  </system.web>

  <system.webServer>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="4294967295"/>
      </requestFiltering>
    </security>
  </system.webServer>

Have you got any ideas as to why it might be failing for larger files, or what I can do to the configuration to prevent the TCP Zero Window error by pausing data transmission until the receiver is ready to accept more data?

Kind regards,

Richard

Hester
Top achievements
Rank 1
Iron
 updated answer on 05 May 2025
2 answers
18 views

Hello,

I have a RadGrid embedded in a RadTabStrip. This is defined in a UserControl with a RadAjaxManagerProxy. It displays content from a DB server. I have a GridButtonColumn that is defined below. Everything works fine except that when I try to delete a row by clicking on the icon it won't work initially. A second click results in a callback to the server's RgAttachments_ItemCommand appropriately. This behaviour happens consistently. I took a look at the generated code and noticed a difference in the button's clientside onclick handler

 

This following generated javascript works

if(!$find('ctl00_MainContent_ctlRqstAttachments_RgAttachmentRevision').confirm('Are you sure you wish to delete this file attachment?', event, 'ctl00_MainContent_ctlRqstAttachments_RgAttachmentRevision', 'Delete'))return false;__doPostBack('ctl00$MainContent$ctlRqstAttachments$RgAttachmentRevision$ctl00$ctl14$ctl00','')

This generated code doesn't

if(!$find('ctl00_MainContent_ctlRqstAttachments_RgAttachmentRevision').confirm('Are you sure you wish to delete this file attachment?', event, 'ctl00_MainContent_ctlRqstAttachments_RgAttachmentRevision', 'Delete'))return false;__doPostBack('ctl00$MainContent$ctlRqstAttachments$RgAttachmentRevision$ctl00$ctl12$ctl01','')

 

The column in question

                            <telerik:GridButtonColumn HeaderText="Delete" ConfirmText="Are you sure you wish to delete this file attachment?" ConfirmDialogType="RadWindow" ButtonCssClass="btn btn-outline-danger btn-sm rounded" ConfirmTitle="Delete" ButtonType="FontIconButton" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn" ItemStyle-ForeColor="Red">
                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </telerik:GridButtonColumn>

 

Any help to resolve this is greatly appreciated

Gavin
Top achievements
Rank 1
Iron
 answered on 28 Apr 2025
1 answer
11 views

I'm experiencing an issue with custom button icons not displaying in the RadEditor ribbon bar. I've added a custom button that functions correctly, but the icon specified in the ImageUrl property does not appear on the UI.

Issue Details:

I've added the following custom tool to the RadEditor toolbar:

xml
<tool name="File" size="large" text="File Add" ImageUrl="~/Assets/images/add.png"/>

The button appears in the ribbon bar and the functionality works as expected, but the icon is not visible.

Troubleshooting Steps Already Taken:

  1. Verified the image exists at the specified path
  2. Tried both relative (~/) and absolute paths
  3. Checked for case sensitivity in the ImageUrl attribute (tried both ImageUrl and imageUrl)
  4. Specified width and height attributes for the image

    Questions:

    1. Is there any specific requirement or setting I'm missing for custom icons in the ribbon bar?
    2. Could there be an issue with how custom icons are rendered in the ribbon bar versus standard toolbar?
    3. Are there any size limitations or format requirements for custom icons in the ribbon?
    4. Is there a different approach recommended for adding custom icons to ribbon bar buttons?

     

    Rumen
    Telerik team
     answered on 28 Apr 2025
    4 answers
    327 views

    Add marker clustering support to the (kendo) Map control as seen in https://developers.google.com/maps/documentation/javascript/marker-clustering

    This functionality already exists in the Telerik Silverlight Map control and it would be great to see similar functionality here.
    Here's an example of what I want: http://demos.telerik.com/silverlight/#Map/Cluster

    What I am looking for is the same sort of 'pretty' cluster behaviour as when you zoom out of some pins you just see a number of how many pins are below this.
    In the example I am trying to replicate is that if a pin in that cluster is red (RAG status) then the top layer symbol should also be red. If this was not a network monitoring system you would ideally see a sea of green markers, if one node/pin went down/red, they the top most image should be red to draw your attention to it and then zoom in.
    How can that be done in (KendoUI) Mapping?

    Mar
    Top achievements
    Rank 1
    Iron
     answered on 24 Apr 2025
    1 answer
    15 views

    I have a RadAutoCOmpleteBox that is bound by a Web Service but I have client filtering set to true.

    Is it possible to rebind the web service client side? I only wish to do this so I can reset the where clause on the select statement based on a client selection in another field but I only want this to happen client side and not server side.

    Is there a way to fetch the web service again?

    Attila Antal
    Telerik team
     answered on 24 Apr 2025
    1 answer
    13 views

    I've set

    <telerik:GridTemplateColumn ... ShowFilterIcon="True">

    but no icon appears when I apply a filter. Conversely, a sort icon does appear when I apply a sort.

    Sorting is achieved by clicking on the column header, but for filtering, I am using a header context menu. Is that the source of the problem?

    • If so, how can I have the filter icon show in the column header when filtering is applied via a header context menu?
    • If not, why else might the filter icon now display when filtering is applied?
    Vasko
    Telerik team
     answered on 23 Apr 2025
    1 answer
    13 views

    I have created an application within Visual Studio 2019 and using c#.

    The project has a page which uses a telerik RadGrid. It is populated on page load and I have filtering enabled on 3 of the columns. I have set the aspx for the columns to have AutoPostBackOnFilter="true" AllowFiltering="true"  ShowFilterIcon="true"

    The runs perfectly when ran in development environment but when I publish my application to the web server the filter does not work at all. Nothing happens if I tab out of the filter text box or if I select anything from the filter icon.

    Can anyone advise what the issue could be please? I am using Telerik.web.ui version 2024.1.131.45

    Thanks

    RR

    Vasko
    Telerik team
     answered on 18 Apr 2025
    Narrow your results
    Selected tags
    Tags
    +? more
    Top users last month
    Anislav
    Top achievements
    Rank 6
    Silver
    Bronze
    Bronze
    Jianxian
    Top achievements
    Rank 1
    Iron
    Marco
    Top achievements
    Rank 3
    Iron
    Iron
    Iron
    Jim
    Top achievements
    Rank 2
    Iron
    Iron
    Nurik
    Top achievements
    Rank 2
    Iron
    Iron
    Want to show your ninja superpower to fellow developers?
    Top users last month
    Anislav
    Top achievements
    Rank 6
    Silver
    Bronze
    Bronze
    Jianxian
    Top achievements
    Rank 1
    Iron
    Marco
    Top achievements
    Rank 3
    Iron
    Iron
    Iron
    Jim
    Top achievements
    Rank 2
    Iron
    Iron
    Nurik
    Top achievements
    Rank 2
    Iron
    Iron
    Want to show your ninja superpower to fellow developers?
    Want to show your ninja superpower to fellow developers?