Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
37 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
37 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
34 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
    359 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
    30 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
    31 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
    51 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
    30 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
    0 answers
    38 views

    HI Guys

    I was wondering if you WebForms PdfViewer can accomplish updating fillable PDF and save the data entries into a new PDF, explain

    I have a fillable PDF with a few fillable textboxes, and I would like to capture the user inputs and save as a new PDF for then later continue filling the blanks loading the new saved PDF.

    I've tried accomplishing the task using iTextSharp but it was not possible here is my code for reference.


    string existingPdfilePath = Server.MapPath("~/export/I-693_1000_202502191951256806.pdf");
     string updatedPdfPath = Server.MapPath("~/App_Data/I-693_" + Guid.NewGuid().ToString() + ".pdf");
    
     using (FileStream pdfReaderStream = new FileStream(existingPdfilePath, FileMode.Open, FileAccess.Read))
                {
                    using (FileStream pdfWriterStream = new FileStream(updatedPdfPath, FileMode.Create, FileAccess.Write))
                    {
                        PdfReader reader = new PdfReader(pdfReaderStream);
                        PdfStamper stamper = new PdfStamper(reader, pdfWriterStream);
    
                        AcroFields formFields = stamper.AcroFields;
                        foreach (DictionaryEntry de in reader.AcroFields.Fields)
                        {
                            //sb.Append(de.Key.ToString() + Environment.NewLine);
                            var fullname = formFields.GetTranslatedFieldName(de.Key.ToString());
                            formFields.RenameField(fullname, Guid.NewGuid().ToString("N"));
                            if (de.Key.ToString() != fullname)
                                if (!String.IsNullOrEmpty(de.Value.ToString()))
                                {
                                    if (fullname != "form1[0].#pageSet[0].Page1[9].PDF417BarCode2[0]")
                                    {
                                        formFields.SetField(de.Key.ToString(), de.Value.ToString());
                                    }
                                }
                        }
                        stamper.Close();
                        reader.Close();
                    }

    As a PDFViewer I am using the plain html embed tag

     <embed class="pdf" 
                   src=
    "~/Templates/I-693_100_2025045512.pdf"
                width="800" height="500" />

    The user data entries vanish like a ghost, and when saving it just make a copy of the original with no captured data entries

    Can your PDFViewer accomplish the task?

    Al
    Top achievements
    Rank 1
     updated question on 01 Apr 2025
    1 answer
    29 views

    I am using Visual Studio 2019 c#

    I have a telerik radgrid which has a column named StageStDate which is in string format but shows a date in format dd-mmm-yy. This column has filtering enabled with a date picker.

    I have a hidden column named StageStartDate which is a replicate of StageStDate but is a date column and in format DD/MM/YYYY.

    As StageStDate wont filter correctly as its a string format, when user select a date for this column from filter I would like the filtering to apply to the StageStartDate column, how can I achieve this please?

    On ItemCommand I have changed the Pair Second to StageStartDate instead of StageStDate

     

    but for some reason this makes the filterExpression blank.

    Rumen
    Telerik team
     answered on 31 Mar 2025
    Narrow your results
    Selected tags
    Tags
    +? more
    Top users last month
    Jay
    Top achievements
    Rank 3
    Bronze
    Iron
    Iron
    yw
    Top achievements
    Rank 2
    Iron
    Iron
    Stefan
    Top achievements
    Rank 2
    Iron
    Iron
    Iron
    Kao Hung
    Top achievements
    Rank 1
    Iron
    Bohdan
    Top achievements
    Rank 2
    Iron
    Iron
    Iron
    Want to show your ninja superpower to fellow developers?
    Top users last month
    Jay
    Top achievements
    Rank 3
    Bronze
    Iron
    Iron
    yw
    Top achievements
    Rank 2
    Iron
    Iron
    Stefan
    Top achievements
    Rank 2
    Iron
    Iron
    Iron
    Kao Hung
    Top achievements
    Rank 1
    Iron
    Bohdan
    Top achievements
    Rank 2
    Iron
    Iron
    Iron
    Want to show your ninja superpower to fellow developers?
    Want to show your ninja superpower to fellow developers?