Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
39 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
56 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
46 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
41 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
43 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
    371 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
    40 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
    41 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
    2 answers
    59 views

    Yesterday, April 1st, around 2:35PM Eastern, several of my web forms became extremely slow/non-responsive for a period of about 5 minutes or so. This also happened on March 14th. Since it happened so quickly, I could only do limited troubleshooting, but it seems like any of our forms that has a Radgrid became slow. One of our forms has been in use since last winter and has not been changed since last last year. Only a few hundred records exist in that database.

    I tried to open the web forms in Edge, instead of Chrome, and sometimes the form would initially open. When I closed out and went back in, the form would become non-responsive. I have menus on my forms and those always loaded, but the grid did not. And then after a few minutes, everything started to work fine again.

    We checked IIS and the memory seemed fine at the time of the slowness. We checked the error logs at that time of failure and did not see anything either. It was a bit tough to troubleshoot as it was relatively brief both times it happened.

    Has anyone else complained about this? Maybe a recent patch could be behind this?  I'm not sure what to think/try.

    Rumen
    Telerik team
     answered on 08 Apr 2025
    1 answer
    34 views

    I use telerik web ui  2024.1.131.45 in my asp net web app. Using Rad Image Gallery the thumbnail is not showing (see attached). Any idea why?

    Thanks before

     

    Rumen
    Telerik team
     answered on 02 Apr 2025
    Narrow your results
    Selected tags
    Tags
    +? more
    Top users last month
    Rob
    Top achievements
    Rank 3
    Bronze
    Iron
    Iron
    Sergii
    Top achievements
    Rank 1
    Iron
    Iron
    Dedalus
    Top achievements
    Rank 1
    Iron
    Iron
    Lan
    Top achievements
    Rank 1
    Iron
    Doug
    Top achievements
    Rank 1
    Want to show your ninja superpower to fellow developers?
    Top users last month
    Rob
    Top achievements
    Rank 3
    Bronze
    Iron
    Iron
    Sergii
    Top achievements
    Rank 1
    Iron
    Iron
    Dedalus
    Top achievements
    Rank 1
    Iron
    Iron
    Lan
    Top achievements
    Rank 1
    Iron
    Doug
    Top achievements
    Rank 1
    Want to show your ninja superpower to fellow developers?
    Want to show your ninja superpower to fellow developers?