Default Save Format Param

2 posts, 0 answers
  1. Marcello
    Marcello avatar
    57 posts
    Member since:
    Apr 2013

    Posted 12 Dec 2014 Link to this post


    How to show the default file format as pdf clicking the save button in RadRichTextBox Ribbon Bar?
    Perhaps a parameter in the SaveCommand?


  2. Todor
    Todor avatar
    168 posts

    Posted 16 Dec 2014 Link to this post

    Hello Marcello,

    You are correct - the dialog's file filter could be passed as a CommandParameter to the SaveCommand command. For example, if you want to export only Pdf or Rtf files, you can use the following markup in the declaration of the RadRichTextBoxRibbonUI:
    <telerik:RadRibbonButton telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding SaveCommand}" CommandParameter="PDF Files (*.pdf)|*.pdf|Rich Text Format (*.rtf)|*.rtf" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/save.png" Text="Save"/>

    In order you want to export only Pdf files, you can set the CommandParameter property to 'pdf' string only.

    I hope this helps.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. DevCraft R3 2016 release webinar banner
Back to Top