Please refer to this forum post for a sample implementation of a custom save command. The code of the command is very similar to the one of the default SaveCommand.
As mentioned in the post in the other thread, this custom save command opens a specific directory on start-up by setting the InitialDirectory of the SaveFileDialog.
When it comes to the formats that the custom command can save to, this is determined by the format providers that have been added as references. If you would like, you could change it in the code of the custom command.
As for saving the file after the dialog is closed, you can use the format providers programmatically as described in this article. Here is an example of how you can write the document of the editor to a file in any of the supported file formats:
FileInfo file =
(Stream stream = file.OpenWrite())
I hope this helps.
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>