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
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.
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.