I am using Telerik RichTextBox Editor(the one like MS Office) in my WPF project. When I save a file, and attempt to save it again later after making changes it opens up the SaveFileDialog and asks for the file name even though I’ve already defined it and saved it (like it thinks I’m using Save As, rather than Save). How can I solve this issue??
I am using
<telerik:RadRibbonButton telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=SaveCommand}" Size="Small"
SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/save.png" Text="Save" />
Didn’t got a solution yet from anyone. Working on it, have some progress using CustomSaveCommand. Will post a complete solution when I get one.
If anyone gets one before I do, I’ll accept it. Thanks all.
Solution:
Got a solution. Created a custom OpenCommand using the CustomSaveCommand and radrichtextbox-Import/Export. Hold in a
string variable, the full path of the file on open/save a document, and overwrite the file on next save without the filedialog. Also reset the variable on new file open. Hope it helps anyone who is searching for a solution. Cheers 🙂