Telerik Forums
UI for WPF Forum
3 answers
371 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
184 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
213 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
342 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
80 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
236 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
10 answers
172 views

Hi,

I have Radcontrols for WPF Q1 2011 installed and I am using ScheduleView control in my application. I implemented Function key bindings (other than F2 key) on WPF window. On running the application, all Function keys work as expected but when I press F2 key followed by any other Function key, it gives me the error "Width Must be Non-Negative". The error popup is cascaded to infinite loop which as the application to crash.

I also found this is the issue with control and it has been fixed in Radcontrols for WPF Q2 2013. My application is not compatible with latest version, got lots of build errors. Please reply how can I make my application compatible with latest version? And how can I download the Radcontrols for WPF Q2 2013 version?

Durga
Top achievements
Rank 1
 answered on 16 Mar 2017
10 answers
358 views
Hello,

I am having a weird problem with the RadDocking control. You can find the example xaml code below. I am setting the datacontext of the UserControl from codebehind. And for the local:SelectedComponentsView control the DataContext binding is not being set!! But when I put the entire RadDocking object inside a Tabcontrol and TabItem, it works!!! But I don't want to use a TabControl to fix this problem. Please advice on the problem I am facing.

Regards,

<UserControl x:Class="MyProject.Engineering.Common.Controls.EnergyStateModelView"             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"             xmlns:local="clr-namespace:MyProject.Engineering.Common.Controls"             xmlns:controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"             mc:Ignorable="d"             d:DesignHeight="750" d:DesignWidth="1000">    <UserControl.Resources>        <SolidColorBrush x:Key="LightGrayBrush" Color="#FFEFEFF2" />        <SolidColorBrush x:Key="LightGrayBackgroundBrush" Color="#FFFFFFFF" />        <SolidColorBrush x:Key="DarkGrayBrush" Color="#FF424242" />        <SolidColorBrush x:Key="ContentForegroundBrush" Color="#FF020202" />        <SolidColorBrush x:Key="GreenBrush" Color="#FF388B41" />        <SolidColorBrush x:Key="DisableBrush" Color="#4C434647" />        <SolidColorBrush x:Key="LabelBrush" Color="#767676" />        <SolidColorBrush x:Key="ToolbarForegroundBrush" Color="#FF434647" />        <local:WidthConverter x:Key="WidthConverter"/>        <local:ItemToIndexConverter x:Key="IndexConverter"/>        <local:ResultToColorConverter x:Key="ColorConverter"/>        <local:InverseBooleanConverter x:Key="InverseBooleanConverter"/>        <controls:Windows8Colors x:Key="Windows8Colors" />        <SolidColorBrush x:Key="MarkerBrush" Color="{Binding Source={StaticResource Windows8Colors}, Path=Palette.MarkerColor}" />        <SolidColorBrush x:Key="AccentBrush" Color="{Binding Source={StaticResource Windows8Colors}, Path=Palette.AccentColor}" />        <SolidColorBrush x:Key="MainBrush" Color="{Binding Source={StaticResource Windows8Colors}, Path=Palette.MainColor}" />        <SolidColorBrush x:Key="BasicBrush" Color="{Binding Source={StaticResource Windows8Colors}, Path=Palette.BasicColor}" />    </UserControl.Resources>    <UserControl.InputBindings>        <KeyBinding Modifiers="Control" Key="N" Command="{Binding NewMenuCommand}"/>        <KeyBinding Modifiers="Control" Key="O" Command="{Binding OpenMenuCommand}"/>        <KeyBinding Modifiers="Control" Key="S" Command="{Binding SaveMenuCommand}"/>        <KeyBinding Modifiers="Control+Shift" Key="S" Command="{Binding SaveAsMenuCommand}"/>        <KeyBinding Modifiers="Control" Key="W" Command="{Binding CloseMenuCommand}"/>    </UserControl.InputBindings>    <Grid>        <Grid.RowDefinitions>            <RowDefinition Height="Auto"/>            <RowDefinition Height="*"/>        </Grid.RowDefinitions>        <StackPanel Grid.Row="0">            <telerik:RadMenu Name="mnuMain" Background="Transparent">                <telerik:RadMenuItem Header="FILE" >                    <telerik:RadMenuItem Name="NewItem" Header="_New"InputGestureText="Ctrl+N" Command="{Binding NewMenuCommand}"/>                    <telerik:RadMenuItem Name="OpenItem" Header="_Open"InputGestureText="Ctrl+O" Command="{Binding OpenMenuCommand}" CommandParameter="{Binding ElementName=EnergyStateModelView}"/>                    <telerik:RadMenuItem Name="OpenRecentItem" Header="Open Recent" ItemsSource="{Binding LastLogs}">                        <telerik:RadMenuItem.ItemTemplate>                            <DataTemplate>                                <StackPanel Orientation="Horizontal">                                    <MenuItem Header="{Binding FileName}" Command="{Binding Open}"/>                                </StackPanel>                            </DataTemplate>                        </telerik:RadMenuItem.ItemTemplate>                    </telerik:RadMenuItem>                    <telerik:RadMenuItem IsSeparator="True"/>                    <telerik:RadMenuItem Name="SaveItem" Header="_Save"InputGestureText="Ctrl+S" Command="{Binding SaveMenuCommand}"/>                    <telerik:RadMenuItem Name="SaveAsItem" Header="_Save As"InputGestureText="Ctrl+Shift+S" Command="{Binding SaveAsMenuCommand}"/>                    <telerik:RadMenuItem Name="CloseItem" Header="_Close"InputGestureText="Ctrl+W" Command="{Binding CloseMenuCommand}"/>                    <telerik:RadMenuItem IsSeparator="True"/>                    <telerik:RadMenuItem Name="ExitMenu" Header="_Exit"InputGestureText="Ctrl+Q" Command="{Binding ExitMenuCommand}"/>                </telerik:RadMenuItem>                <telerik:RadMenuItem Header="VIEW">                    <telerik:RadMenuItem Name="ComponentExplorerItem"Header="Component Explorer" IsCheckable="True" IsChecked="{Binding ElementName=tabFacility, Path=IsSelected, Mode=TwoWay}"/>                    <telerik:RadMenuItem Name="ConnectionExplorerItem"Header="Connection Explorer" IsCheckable="True" IsChecked="{Binding ElementName=tabConnection, Path=IsSelected, Mode=TwoWay}"/>                    <telerik:RadMenuItem IsSeparator="True"/>                    <telerik:RadMenuItem Name="MonitoringWindowDiagramItem"Header="Monitoring Window-Diagram"/>                    <telerik:RadMenuItemName="MonitoringWindowComponentTreeItem" Header="Monitoring Window-Component Tree"/>                    <telerik:RadMenuItem IsSeparator="True"/>                    <telerik:RadMenuItem Name="PropertiesWindow"Header="Properties Windows" IsCheckable="True" IsChecked="{Binding ElementName=PropertiesPane, Path=IsHidden, Converter={StaticResource InverseBooleanConverter}, Mode=TwoWay}">                        <telerik:EventToCommandBehavior.EventBindings>                            <telerik:EventBinding Command="{Binding OnPropertiesWindowClickCommand}" CommandParameter="{Binding ElementName=PropertiesPane}" EventName="Click" />                        </telerik:EventToCommandBehavior.EventBindings>                    </telerik:RadMenuItem>                    <telerik:RadMenuItem IsSeparator="True"/>                    <telerik:RadMenuItem Name="OutputWindow" Header="Output Window" IsCheckable="True" IsChecked="{Binding ElementName=OutputPane, Path=IsHidden, Converter={StaticResource InverseBooleanConverter}, Mode=TwoWay}">                        <telerik:EventToCommandBehavior.EventBindings>                            <telerik:EventBinding Command="{Binding OnOutputWindowClickCommand}" CommandParameter="{Binding ElementName=OutputPane}"EventName="Click" />                        </telerik:EventToCommandBehavior.EventBindings>                    </telerik:RadMenuItem>                </telerik:RadMenuItem>                <telerik:RadMenuItem Header="BUILD">                    <telerik:RadMenuItem Name="CompileMenuItem"Header="Compile" InputGestureText="Ctrl+B" Command="{Binding CompileCommand}"/>                    <telerik:RadMenuItem Name="DownloadMenuItem"Header="Download" InputGestureText="Ctrl+D" Command="{Binding DownloadMenuCommand}"/>                    <telerik:RadMenuItem IsSeparator="True"/>                    <telerik:RadMenuItem Name="SimulateMenuItem"Header="Simulate" InputGestureText="Ctrl+S"/>                </telerik:RadMenuItem>                <telerik:RadMenuItem Header="HELP" />            </telerik:RadMenu>        </StackPanel>         <!--Main Content Grid-->        <Grid Grid.Row="1">            <telerik:RadDocking x:Name="dockEngineering"                                             Grid.Row="1"Margin="0,0,0,0"                                                                              BorderThickness="0"                                            Padding="0" Background="{StaticResource LightGrayBrush}">                 <!--DocumentHost-->                <telerik:RadDocking.DocumentHost>                    <telerik:RadSplitContainer>                        <telerik:RadPaneGroup>                            <telerik:RadPane Header="Engineering">                                <local:SelectedComponentsViewDataContext="{Binding FacilityViewModel, Mode=TwoWay}"/>                            </telerik:RadPane>                            <telerik:RadPane Header="Monitoring">                                <Grid Name="grdMonitoring">                                </Grid>                            </telerik:RadPane>                            <telerik:RadPane Header="Forecast">                                <Grid Name="grdForecast">                                    <local:ForecastView DataContext="{Binding ForecastViewModel}"/>                                </Grid>                            </telerik:RadPane>                        </telerik:RadPaneGroup>                    </telerik:RadSplitContainer>                </telerik:RadDocking.DocumentHost>                 <telerik:RadSplitContainer  MaxWidth="600"telerik:DockingPanel.InitialSize="300,150"                            Name="LeftContainer"InitialPosition="DockedLeft">                    <telerik:RadPaneGroup x:Name="Group1">                        <telerik:RadPane x:Name="LeftPane" Header="Facility Explorer">                            <telerik:RadTabControl x:Name="tbcInner"x:FieldModifier="public" TabOrientation="Horizontal" TabStripPlacement="Bottom"SelectedIndex="0">                                <telerik:RadTabItem x:Name="tabFacility"x:FieldModifier="public" Header="Facility View" IsSelected="True">                                     <!--Server Exproler-->                                    <!--<telerik:RadPane x:Name="Pane11" Header="Facility Explorer">-->                                    <Grid Margin="3 0">                                        <local:FacilityViewx:Name="FacilityView" DataContext="{Binding FacilityViewModel, Mode=TwoWay}"/>                                    </Grid>                                    <!--</telerik:RadPane>-->                                 </telerik:RadTabItem>                                <telerik:RadTabItemx:Name="tabConnection" x:FieldModifier="public" Header="Connection View"IsSelected="False">                                     <!--<telerik:RadPane x:Name="Pane12" Header="Connection Explorer">-->                                    <Grid Margin="3 0">                                        <local:CommunicationViewx:Name="CommunicationView" DataContext="{Binding CommunicationViewModel}"/>                                    </Grid>                                    <!--</telerik:RadPane>-->                                 </telerik:RadTabItem>                            </telerik:RadTabControl>                        </telerik:RadPane>                    </telerik:RadPaneGroup>                </telerik:RadSplitContainer>                 <telerik:RadSplitContainer MaxWidth="679"telerik:DockingPanel.InitialSize="210,250" Width="400"                            x:Name="RightContainer"InitialPosition="DockedRight">                    <telerik:RadPaneGroup x:Name="Group2">                        <!--Properties-->                        <telerik:RadPane x:Name="PropertiesPane"Header="Properties">                            <Grid Margin="3 0">                                <Grid.RowDefinitions>                                    <RowDefinition Height="*" />                                </Grid.RowDefinitions>                                <local:PropertyEditorx:Name="PropertyEditor" Item="{Binding SelectedItem}"/>                            </Grid>                        </telerik:RadPane>                    </telerik:RadPaneGroup>                </telerik:RadSplitContainer>                 <telerik:RadSplitContainer                            x:Name="BottomContainer"InitialPosition="DockedBottom">                    <telerik:RadPaneGroup x:Name="Group3">                        <!--Properties-->                        <telerik:RadPane x:Name="OutputPane" Header="Output Window">                            <Grid Margin="3 0">                                <Grid.RowDefinitions>                                    <RowDefinition Height="*" />                                </Grid.RowDefinitions>                                <ListView Name="OutputBox"VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Background="LightYellow"ItemsSource="{Binding OutputMessages}">                                    <telerik:EventToCommandBehavior.EventBindings>                                        <telerik:EventBindingCommand="{Binding OnOutputBoxSelectedCommand}" CommandParameter="{Binding ElementName=OutputBox, Path=SelectedItem}" EventName="SelectionChanged" />                                    </telerik:EventToCommandBehavior.EventBindings>                                    <ListView.ItemContainerStyle>                                        <StyleTargetType="ListViewItem">                                            <SetterProperty="Background" Value="{Binding ResultType, Converter={StaticResource ColorConverter}}"/>                                        </Style>                                    </ListView.ItemContainerStyle>                                    <ListView.View>                                        <GridView>                                            <GridViewColumnHeader="Number" DisplayMemberBinding="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListViewItem}}, Converter={StaticResource IndexConverter}}"/>                                            <GridViewColumnHeader="Description" DisplayMemberBinding="{Binding MessageContent}" Width="{Binding ElementName=OutputBox, Path=ActualWidth, Converter={StaticResource WidthConverter},ConverterParameter=1}"/>                                        </GridView>                                    </ListView.View>                                </ListView>                            </Grid>                        </telerik:RadPane>                    </telerik:RadPaneGroup>                </telerik:RadSplitContainer>            </telerik:RadDocking>        </Grid>    </Grid> </UserControl>
Nasko
Telerik team
 answered on 16 Mar 2017
0 answers
207 views

Hi, I had a Datepicker name Disbursal and I have a Grid with 2 columns. The first column is the important one and is also a DatePicker.


Each row in the grid must have their date before the Datepicker, if it isn't then throw up a validation. 

 

I applied the CellValidatedEvent which works if I were to change the date of the row manually, but if I were to change the Disbursal DatePickerDate, how do I trigger CellValidatedEvent for each row's date? 

band
Top achievements
Rank 1
 asked on 15 Mar 2017
9 answers
195 views

We have been using the Telerik GridView for WPF for 4 years. We took the 2013 GridView and customized the styles (see attached). We recently updated to Telerik.Windows.Controls.GridView 2016.2.613.45 and now have strange scrolling behavior. The text alignment of content changes when scrolling and that content reaches the GridView bounds.

Video: https://dl.dropboxusercontent.com/u/23017318/Auction%20Management%20v6.0.0.9%209_13_2016%204_03_10%20PM.mp4

Styling Code: https://dl.dropboxusercontent.com/u/23017318/TelerikGridView.xaml

Yoan
Telerik team
 answered on 15 Mar 2017
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?