Save and save as in RichText Telerik editor

I am using Telerik RichTextBox Editor (such as MS Office) in my WPF project. When I save the file and try to save it later after making changes, it opens SaveFileDialog and asks for the file name, although I already defined it and saved it (for example, it considers that I use Save As, not Save). How can I solve this problem?

I use

 <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" /> 
+4
source share
2 answers

Someone else has no solution. While working on this, make some progress using CustomSaveCommand . I will lay out the complete solution when I receive it. If anyone gets it before I do this, I will accept it. Thanks to everyone.

Decision:

Got a solution. Created a custom OpenCommand using CustomSaveCommand and radrichtextbox-Import / Export . Hold the string variable , the full path to the file on opening / saving the document and overwrite the file the next time you save without filedialog. Also reset opens the variable in a new file. Hope this helps anyone looking for a solution. Greetings :)

+2
source

Perhaps you can set up your own file provider and do what you want there, that is, see a custom file browserercontentprovider . In addition, several other bits and beans are simply inherited from the Telerik.Web.UI.Widgets.FileBrowserContentProvider class.

Here is a good example of using sql database for files: sql database

+1
source

All Articles