RichTextBox TelerikEditor

3 posts, 0 answers
  1. Avishek
    Avishek avatar
    2 posts
    Member since:
    Jan 2013

    Posted 07 Jan 2013 Link to this post

    When I save a file, and attempt to save it again later after making changes it keeps asking for the file name even though I've already defined it (like it thinks I'm using Save As, rather than Save). How can I solve this issue??
  2. Petya
    Petya avatar
    983 posts

    Posted 09 Jan 2013 Link to this post

    Hello Avishek,

    Currently, there is a single command of RadRichTextBox - SaveCommand, which does indeed invoke the save file dialog.

    If you wish to mimic the behavior in MS Word where there are two options - Save (to the current document instance) and Save As (which invokes the save file dialog), you can create a custom command that implements the desired behavior. There are several forum threads that show how a custom command can be created and bound to the RichTextBoxRibbonUI, for example this thread or this Silverlight thread (the code base is the same).

    I hope this helps! Do not hesitate to contact us if you need further assistance.
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Avishek
    Avishek avatar
    2 posts
    Member since:
    Jan 2013

    Posted 10 Jan 2013 Link to this post

    Hi Petya,

    Thanks for your response. I have tried to modify that CustomSaveCommand. But the way I am trying to achieve this functionality, I am storing the saved FilePath when saving, and next time I am saving the same file. But I cant store the FilePath this when a file is opened. Can you provide me an Overridden or Custom OpenDocumentCommand, or the the default OpenDocumentCommand, so that I can override it get the filePath at the time of opening a file.

    Thanks in advance.  : )
Back to Top