
Hi Guys
I really desperately need your help on this. I have created listbox with a toggle from materialdesign theme package and along with richtextbox. The listbox comprises of three listboxitems which are bold, italic and underline. So when the user clicks on the button and the highlighted text in the richtextbox will reflect its changes accordingly, i.e. normal font text changes to font bold.
However what I have noticed the listboxitem with button like format has to be double clicked in order to get the font text to change from bold to normal, vice versa from normal to bold. I have been struggling on how to get the single click selection and the button to show the selected highlight colour etc.
I couldn't use the event setter as it messes the highlight colour and styling of the listboxitems
PLEASE HELP - the code behind is C#
<Window x:Class="WPFDEMO.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:materialDesign="clr-namespace:MaterialDesignThemes.Wpf;assembly=MaterialDesignThemes.Wpf"
mc:Ignorable="d"
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
TextElement.FontWeight="Regular"
TextElement.FontSize="13"
TextOptions.TextFormattingMode="Ideal"
TextOptions.TextRenderingMode="Auto"
Background="{DynamicResource MaterialDesignPaper}"
FontFamily="{DynamicResource MaterialDesignFont}"
xmlns:local="clr-namespace:WPFDEMO"
Title="MainWindow" Height="1080" Width="1920">
<!--<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Button.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>-->
<Grid>
<DockPanel>
<StackPanel DockPanel.Dock="Top">
<ListBox SelectionMode="Extended"
Style="{StaticResource MaterialDesignToolToggleFlatListBox}"
Background="Transparent" materialDesign:ListBoxAssist.IsToggle="True">
<!--<ListBox.ItemContainerStyle>
<Style TargetType="ListBoxItem">
<EventSetter Event="PreviewMouseDown" Handler="ItemOnPreviewMouseDown"></EventSetter>
<EventSetter Event="PreviewMouseDoubleClick" Handler="ItemOnPreviewMouseDown"></EventSetter>
</Style>
</ListBox.ItemContainerStyle>-->
<ListBoxItem x:Name="btnBold" Selected="btnBold_Selection" PreviewMouseDown="btnBold_PreviewMouseDown">
<materialDesign:PackIcon Kind="FormatBold" />
</ListBoxItem>
<ListBoxItem x:Name="btnItalic" Selected="btnItalic_Selected">
<materialDesign:PackIcon Kind="FormatItalic" />
</ListBoxItem>
<ListBoxItem x:Name="btnUnderline" Selected="btnUnderline_Selected">
<materialDesign:PackIcon Kind="FormatUnderline" />
</ListBoxItem>
</ListBox>
</StackPanel>
<RichTextBox x:Name="rtbTextbox" SelectionChanged="rtbTextbox_SelectionChanged"></RichTextBox>
</DockPanel>
</Grid>
</Window>

Hi,
I have a Gender DataFormComboBoxField in the RadDataForm's NewItemTemplate. How do I show and hide another DataFormDataField on the same template(NewItemTemplate) based on the Gender type (male/female)?
Thanks!

Steps to reproduce:
I have built a wpf application with 2 telerik controls: a WatermarkTextBox and a PasswordBox.
1. In a Windows session, I launch my wpf application
2. Enter text in both controls
3. Leave the application up and running and disconnect from the Windows session
4. I reconnect to (log back in) the Windows session, the PasswordBox field gets cleared.
[In a different scenario, when having multiple WatermarkTextBox, some of the WatermarkTextBox get cleared when reconnecting to the session]
Any idea what is going? I did some research and could not find anything helpful. Thanks.

Hello!
I recently purchased Telerik UI For WPF. Installation worked fine, dll's are installed in the GAC etc.
However, I can't convert my existing project into a Telerik WPF Application. The option is missing from the Telerik menu in VS for 1 of my projects, and is not present in the Context menu in the Solution explorer either.
My VS solution exists of 10 or so projects. For 9 of those projects, the Convert to Telerik WPF application is there, but for the main application which I want to convert the option is missing as I described.
Any ideas?
Tia,
Chris
Hi, i'm trying to implement a custom filter as your example, but in a dynamic columns grid, when i filter i receive this error:
'The binary operator GreaterThanOrEqual is not defined for the types 'System.Object' and 'System.DateTime'.'
On the event
private void OnFilter(object sender, RoutedEventArgs e) { this.fromFilter.Value = this.FromDate; this.toFilter.Value = this.ToDate; if (!this.column.DataControl.FilterDescriptors.Contains(this.compositeFilter)) { this.column.DataControl.FilterDescriptors.Add(this.compositeFilter); } this.IsActive = true; }
i set the dynamic column type like this:
e.Column.ColumnGroupName = "Commercial"; e.Column.Header = new TextBlock { Text = "Data inserimento", TextAlignment = TextAlignment.Center, TextWrapping = TextWrapping.Wrap, Width = 75, LayoutTransform = new RotateTransform { Angle = -90 } }; ((GridViewDataColumn)(e.Column)).DataFormatString = "{0:dd-MMM-yy}"; ((GridViewDataColumn)(e.Column)).DataType = typeof(DateTime?); ((GridViewDataColumn)(e.Column)).FilterMemberType = typeof(DateTime?); e.Column.FilteringControl = new ucDateFilter { FromDate = DateTime.Now, ToDate =DateTime.Now.AddDays(5)};

Hello,
The application I am working on is throwing the following unhandled exception whenever I attempt to run my automation against it. This issue started occurring when we upgraded our Telerik libraries from Library v2012.3.1129.40 to v2012.1.326.402. We are using HP QTP to automate our testing. This is the first time I have experienced this error, there were no issues prior to the Telerik lib upgrade.
System.NullReferenceException was unhandled by user code
Message=Object reference not set to an instance of an object.
Source=Telerik.Windows.Controls.GridView
StackTrace:
at Telerik.Windows.Automation.Peers.GridViewGroupPanelAutomationPeer.GetChildrenCore() in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\GridView\GridView\GridView\Automation\GridViewGroupPanelAutomationPeer.cs:line 44
at System.Windows.Automation.Peers.AutomationPeer.EnsureChildren()
at System.Windows.Automation.Peers.AutomationPeer.UpdateChildrenInternal(Int32 invalidateLimit)
at System.Windows.Automation.Peers.AutomationPeer.UpdateChildren()
at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
at System.Windows.Automation.Peers.AutomationPeer.UpdatePeer(Object arg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper
I have located some backwards compatibility documentation on your website http://www.telerik.com/help/wpf/radgridview-backward-compatibility.html.
It explains that the “Telerik.Windows.Controls.GridView.Automation” class is now obsolete and has been moved into “Telerik.Windows.Automation.Peers…” class. Could this have something to do with my issue? Any help with this would be much appreciated.

<telerik:RadGridView ... NewRowPosition="Top"> <telerik:RadGridView.Columns> <telerik:GridViewToggleRowDetailsColumn .../> <telerik:GridViewDataColumn ...> <telerik:GridViewDataColumn.CellTemplate> <DataTemplate> ... </DataTemplate> </telerik:GridViewDataColumn.CellTemplate> <telerik:GridViewDataColumn.CellEditTemplate> <DataTemplate> <TextBox ... > <TextBox.Triggers> <EventTrigger RoutedEvent="TextBox.GotFocus"> <EventTrigger.Actions> <BeginStoryboard> <Storyboard> <BooleanAnimationUsingKeyFrames Storyboard.TargetName="TextBoxPopup" Storyboard.TargetProperty="IsOpen"> <DiscreteBooleanKeyFrame KeyTime="0:0:0" Value="True" /> </BooleanAnimationUsingKeyFrames> </Storyboard> </BeginStoryboard> </EventTrigger.Actions> </EventTrigger> </TextBox.Triggers> </TextBox> <Popup x:Name="TextBoxPopup" ...> ... <Button Content="Test Button" Command="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:RadGridView}},Path=DataContext.SaveCommand}" Click="Button_Click"/> <Popup.Triggers> <EventTrigger RoutedEvent="Popup.LostFocus"> <BeginStoryboard> <Storyboard> <BooleanAnimationUsingKeyFrames Storyboard.TargetName="TextBoxPopup" Storyboard.TargetProperty="IsOpen"> <DiscreteBooleanKeyFrame KeyTime="0:0:0" Value="False" /> </BooleanAnimationUsingKeyFrames> </Storyboard> </BeginStoryboard> </EventTrigger> </Popup.Triggers> </Popup> </DataTemplate> </telerik:GridViewDataColumn.CellEditTemplate> </telerik:GridViewDataColumn> </telerik:RadGridView.Columns> <telerik:RadGridView.RowDetailsTemplate> ... </telerik:RadGridView.RowDetailsTemplate></telerik:RadGridView>Hi,
In xaml, I have a button inside a popup that is placed on edit cell template (CellEditTemplate). The button's Click event and the Command are not fired when I click the button. I have tried placing the popup with the button inside view cell template (CellTemplate) and the button by itself (no popup) inside edit template. They are both working. The xaml structure is attached. When the button on the popup is clicked, I want to close the popup and proceed to commit the change on the cell. Is this possible to do?
Thank you in advance for your help.

Hi,
i was wondering if its possible to Autohide Collums in the GridView when i resize the application. For example: i resize the width of the application from full sreen to half so from 8 collums only 4 are now visible.
Best regards,
Thomas
