This is a migrated thread and some comments may be shown as answers.

RichTextBox TelerikEditor

2 Answers 90 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Avishek
Top achievements
Rank 1
Avishek asked on 07 Jan 2013, 02:53 PM
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 Answers, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 09 Jan 2013, 04:43 PM
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.
 
Regards,
Petya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Avishek
Top achievements
Rank 1
answered on 10 Jan 2013, 07:15 AM
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.  : )
Tags
RichTextBox
Asked by
Avishek
Top achievements
Rank 1
Answers by
Petya
Telerik team
Avishek
Top achievements
Rank 1
Share this question
or