Telerik Forums
UI for WPF Forum
1 answer
272 views

RadRibbonView how can I merge it with the Windows top bar like Excel?

 

See images below for example

Martin
Telerik team
 answered on 20 Mar 2017
1 answer
82 views

How does on transform the yaxis?

I need to center the y axis on a certain x value?

You can email directly at stevensrf@mail.com if you have answers , or better yet link me to source that does this.

Dinko | Tech Support Engineer
Telerik team
 answered on 20 Mar 2017
2 answers
102 views

I have a view that contains a RadMaskedNumericInput that has Value property with binding to my model inside my viewmodel.

<telerik:RadMaskedNumericInput Value="{Binding CurrentItem.NumeroMatricole,Mode=TwoWay}" Grid.Row="6" Grid.Column="1" Style="{StaticResource FieldMax3IntegerRadMaskedInputNumericStyle}" />

 

private byte numeroMatricole;
public byte NumeroMatricole
{
    get { return numeroMatricole; }
    set
    {
        numeroMatricole = value;
        NotifyPropertyChanged("NumeroMatricole");
    }
}

 

Now, when I try to update other properties of CurrentItem, it works all.

When I change value in this control (that is unique with MaskerNumeriInput and it is unique that point to NumeroMatricole property that is a byte), NotifyPropertyChanged not fire.

Is it possibile that RadMaskerNumeriInput doesn't support byte type?

Dario Concilio
Top achievements
Rank 2
 answered on 20 Mar 2017
2 answers
140 views

Hello Telerik team! 

When the row validation is failed row background is red and this is ok. But when I select this row it's background is still red. I'm trying to change this behaviour using trigger. But this trigger has no effect. What am I doing wrong. Could you help me, please.

    <Style.Triggers>
   <MultiTrigger>
      <MultiTrigger.Conditions>
        <Condition Property="IsValid" Value="false"/>
        <Condition Property="IsSelected" Value="true"/>
      </MultiTrigger.Conditions>
      <MultiTrigger.Setters>
        <Setter Property="Background" Value="Blue"/>
      </MultiTrigger.Setters>
    </MultiTrigger>

 </Style.Triggers>


ytnytn1
Top achievements
Rank 1
 answered on 18 Mar 2017
3 answers
333 views

 Hi Team,

We developing application with Prism and we need to edit the content at run time. So we used empty RadRichTextBox along with RadToolBar, we wont use any document. But it hits the performance on first time, please refer the below code.

 

<telerik:RadToolBarTray DataContext="{Binding ElementName=editor, Path=Commands}" telerik:StyleManager.Theme="Windows8" Background="LightGray" IsLocked="True">
<telerik:RadToolBarTray.Resources>
    <telerik:FontFamiliesProvider x:Key="FontFamiliesProvider" />
</telerik:RadToolBarTray.Resources>
 
<telerik:RadToolBar Height="32" OverflowButtonVisibility="Hidden" >
    <telerik:RadButtonGroup>
        <telerik:RadRibbonButton CollapseToSmall="WhenGroupIsMedium" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding CutCommand}" Size="Medium" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/cut.png"  />
        <telerik:RadRibbonButton CollapseToSmall="WhenGroupIsMedium" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding CopyCommand}" Size="Medium" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/copy.png" />
        <telerik:RadRibbonButton CollapseToSmall="WhenGroupIsMedium" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding PasteCommand}" Size="Medium" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/paste.png" />
    </telerik:RadButtonGroup>
    <telerik:RadToolBarSeparator />
    <telerik:RadButtonGroup>
        <telerik:RadRibbonButton telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding UndoCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/undo.png" Text="Undo" />
        <telerik:RadRibbonButton telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding RedoCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/redo.png" Text="Redo" />
    </telerik:RadButtonGroup>
    <telerik:RadToolBarSeparator />
    <telerik:RadButtonGroup>
        <telerik:RadRibbonToggleButton telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=ToggleBoldCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/bold.png" />
        <telerik:RadRibbonToggleButton telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=ToggleItalicCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/italic.png" />
        <telerik:RadRibbonToggleButton telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=ToggleUnderlineCommand}" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/underline.png" />
        <telerik:RadRibbonToggleButton telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=ToggleStrikethroughCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/Strikethrough16.png" />
    </telerik:RadButtonGroup>
    <telerik:RadButtonGroup>
        <telerik:RadRibbonToggleButton CommandParameter="Left" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding ChangeTextAlignmentCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/alignleft.png" Text="Align Left" />
        <telerik:RadRibbonToggleButton CommandParameter="Center" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding ChangeTextAlignmentCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/aligncenter.png" Text="Center" />
        <telerik:RadRibbonToggleButton CommandParameter="Right" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding ChangeTextAlignmentCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/alignright.png" Text="Align Right" />
        <telerik:RadRibbonToggleButton CommandParameter="Justify" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding ChangeTextAlignmentCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/alignjustify.png" Text="Justify" />
    </telerik:RadButtonGroup>
    <telerik:RadToolBarSeparator />
    <telerik:RadButtonGroup>
        <telerik:RadRibbonButton telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding DecrementParagraphLeftIndentCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/outdent.png" />
        <telerik:RadRibbonButton telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding IncrementParagraphLeftIndentCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/indent.png" />
    </telerik:RadButtonGroup>
    <telerik:RadToolBarSeparator />
    <telerik:RadButtonGroup>
        <telerik:RadRibbonComboBox CanAutocompleteSelectItems="False" CanKeyboardNavigationSelectItems="False" CommandParameter="{Binding RelativeSource={RelativeSource Self}, Path=SelectedValue}" Height="21" IsReadOnly="True" ItemsSource="{Binding Source={StaticResource FontFamiliesProvider}, Path=RegisteredFonts}" OpenDropDownOnFocus="True" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=ChangeFontFamilyCommand}" telerik:ScreenTip.Description="Change the font family." telerik:ScreenTip.Title="Font" Width="132" />
        <telerik:RadRibbonComboBox CanAutocompleteSelectItems="False" CanKeyboardNavigationSelectItems="False" CommandParameter="{Binding RelativeSource={RelativeSource Self}, Path=SelectedItem.Tag}" Height="21" IsEditable="True" IsReadOnly="True" IsTextSearchEnabled="False" OpenDropDownOnFocus="True" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=ChangeFontSizeCommand}" Width="45">
            <telerik:RadRibbonComboBoxItem Content="8" Tag="10.67" />
            <telerik:RadRibbonComboBoxItem Content="9" Tag="12" />
            <telerik:RadRibbonComboBoxItem Content="10" Tag="13.33" />
            <telerik:RadRibbonComboBoxItem Content="11" Tag="14.67" />
            <telerik:RadRibbonComboBoxItem Content="12" Tag="16" />
            <telerik:RadRibbonComboBoxItem Content="14" Tag="18.67" />
            <telerik:RadRibbonComboBoxItem Content="16" Tag="21.33" />
            <telerik:RadRibbonComboBoxItem Content="18" Tag="24" />
            <telerik:RadRibbonComboBoxItem Content="20" Tag="26.67" />
            <telerik:RadRibbonComboBoxItem Content="22" Tag="29.33" />
            <telerik:RadRibbonComboBoxItem Content="24" Tag="32" />
            <telerik:RadRibbonComboBoxItem Content="26" Tag="34.67" />
            <telerik:RadRibbonComboBoxItem Content="28" Tag="37.33" />
            <telerik:RadRibbonComboBoxItem Content="36" Tag="48" />
            <telerik:RadRibbonComboBoxItem Content="48" Tag="64" />
            <telerik:RadRibbonComboBoxItem Content="72" Tag="96" />
        </telerik:RadRibbonComboBox>
    </telerik:RadButtonGroup>
    <telerik:RadButtonGroup>
        <telerik:RadRibbonToggleButton telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding ToggleBulletsCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/list-bullets.png" />
        <telerik:RadRibbonToggleButton telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding ToggleNumberedCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/list-numbered.png" />
        <telerik:RadRibbonDropDownButton Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/MultilevelList.png">
            <telerik:RadRibbonDropDownButton.DropDownContent>
                <StackPanel>
                    <telerik:RadGroupHeader Content="List Library" />
                    <telerik:RadGallery ItemHeight="88" ItemWidth="88" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding ChangeListStyleCommand}" ViewportHeight="176" ViewportWidth="266">
                        <telerik:RadGalleryItem Image="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/MultilevelListNone.png" Tag="None" />
                        <telerik:RadGalleryItem Image="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/MultilevelListBulleted.png" Tag="Bulleted" />
                        <telerik:RadGalleryItem Image="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/MultilevelListNumbered.png" Tag="Numbered" />
                        <telerik:RadGalleryItem Image="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/MultilevelListNumberedParenthesis.png" Tag="NumberedParenthesis" />
                        <telerik:RadGalleryItem Image="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/MultilevelListNumberedHierarchical.png" Tag="NumberedHierarchical" />
                    </telerik:RadGallery>
                </StackPanel>
            </telerik:RadRibbonDropDownButton.DropDownContent>
        </telerik:RadRibbonDropDownButton>
    </telerik:RadButtonGroup>
</telerik:RadToolBar>
</telerik:RadToolBarTray>
 
<telerik:RadRichTextBox  Name="editor"
                        telerik:StyleManager.Theme="Windows8"
                        Grid.Row="1"
                        Margin="0"
                        FocusVisualStyle="{x:Null}"
                        EnforcedPermissionRangeBrush="Blue"
                        Background="{x:Null}" />

 

And we have tried all possible ways that you have described in below link.

http://docs.telerik.com/devtools/wpf/controls/radrichtextbox/mef#initial-load-performance-of-radrichtextbox

Please refer the below code. 

RadCompositionInitializer.Catalog = new TypeCatalog();
DocumentFormatProvidersManager.AutomaticallyLoadFormatProviders = false;
InitializeComponent();
this.editor.UILayersBuilder = new UILayersBuilder();

 

 

While using the above code the loading time is reduced, but not completely. Still it takes minimum five seconds to load at first time. Please suggest any ideas to reduce the loading time completely.

 

Thanks,

Antony

Tanya
Telerik team
 answered on 17 Mar 2017
1 answer
140 views

Hello everybody, I need to do some stuff (change the items depending on what it is shown in that moment on a RadPaneGroup) just before the Backstage of my RadRibbonView is going to be open (every time) but I don't find any event that can handle it.

 

Any help?

 

Thanks,

Simone

Evgenia
Telerik team
 answered on 17 Mar 2017
1 answer
163 views

Good morning,

 

How it's possible insert a datagrid within an autocompletebox ?

 

I've tried to make this with a DropDownTemplate, but I have a datagrid for each element of my collection (see the picture on attachment)

Dilyan Traykov
Telerik team
 answered on 17 Mar 2017
17 answers
302 views

I tried to implement the Export functionality for GridView shown in the UI for WPF example (Word, Excel, CSV export), and I get everything to work except that the "context" is incorrect. When I get into the code, the object that is passed as a parameter is the high-level parent of the GridView I would like to export. What am I doing wrong that I can't get the "context" parameter to be correct?

XAML:

    xmlns:exp="clr-namespace:GridView.Exporting"
    <UserControl.Resources>
        <exp:ExportingModel x:Key="context" />

 

    <telerik:RadButton x:Name="ExpGPData" Content="Export" Grid.Column="0" ToolTip="Export this data to an Excel format" Command="{Binding ExportCommand, Source={StaticResource context}}" CommandParameter="{Binding}"/>

 

ExportingModel.cs is same as in the example.

Stefan Nenchev
Telerik team
 answered on 17 Mar 2017
2 answers
65 views

Here is my issue:

 

Attached is a partial picture of my app.

In the left, at the bottom, I have assistants and providers in two different resource types, so I can select one of them or both when editing an appointment.

What I need is to group the appointments with assistants and providers at the same level, not one as subgroup of the other.

I added a resourcetype of user, where I listed both the previous ones, but then when the editor pops up, it also shows a combo box for users, which I don't want.

Is there a way of doing this?

 

Thanks.

Yana
Telerik team
 answered on 17 Mar 2017
1 answer
203 views

Hello

My company is currently using dlls that are old . 2013.

We want to update soon to fix some problems we are having so I downloaded the trial version to do some tests first.

Some of our code use PickerTextBox. I red that it was now obsolete.

 

With what should I replace it?

 

Thanks

 

 

Martin
Telerik team
 answered on 16 Mar 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?