How to make the filename readonly

2 posts, 0 answers
  1. Paul
    Paul avatar
    15 posts
    Member since:
    Jan 2009

    Posted 06 Jan 2014 Link to this post

    After editing the existing image file, I would like to make the file name to be readonly so that the user cannot change the file name to another name when saving to the server.

    How do I accomplish this?
  2. Vessy
    Vessy avatar
    1351 posts

    Posted 07 Jan 2014 Link to this post

    Hi Paul,

    A way to make the file name in the Save dialog read only is to disable the corresponding text-box. This could be done in the handler of the ImageEditor's ClientDialogLoaded event in a similar way:
    <telerik:RadImageEditor ID="RadImageEditor1" runat="server" ImageUrl="~/Images/relax.jpg"OnClientDialogLoaded="OnClientDialogLoaded">
    <script type="text/javascript">
        function OnClientDialogLoaded(imageEditor, args) {
            var widget = args.get_widget();
            if (widget.get_name() == "Save") {
                widget.get_textBox().disabled = true;

    I hope this information will be helpful for you to achieve the desired scenario.

    Veselina Raykova
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. DevCraft R3 2016 release webinar banner
Back to Top