Telerik Forums
UI for WPF Forum
3 answers
94 views

I switched my solution from using references to the binaries i have localy to nuget packages.

But by doing this i get a strange behaviour in the controls UI. Suddenly all controls get different theming than they had before the nuget packages.

 

How do i fix this so they are again showing as it was before?

JIG
Top achievements
Rank 1
 answered on 28 May 2019
4 answers
624 views

A password protected Excel document causes an error message "End of central Directory not found".

Would it be possible to get a more appropriate error message at least? The possibility to enter a Password would be great, of course.

 

Thanks

Michael

liz
Top achievements
Rank 1
 answered on 28 May 2019
9 answers
318 views
I am looking to set the ItemsSource of the TileList to an ObservableCollection of object. One property of this object will respresent a SizeMode which I would like to see setup as a Setter to set the TileType property. I have created an IValueConverter to convert this INT size property to the Telerik TileType enum, and setup a binding for this, however it is looking for this property on my window ViewModel, not a property of each bound item.

In the online documentation this is achieved by implementing an AutoGeneratingTile event handler in the code behind.

Could you please provide an example of how this is achieved.

Thanks

Duncan 

 
Martin Ivanov
Telerik team
 answered on 27 May 2019
0 answers
964 views

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>

 

JR
Top achievements
Rank 1
 asked on 25 May 2019
3 answers
101 views
Hello,

I have the local WPF RadControls demos installed on my machine, but I cannot view the Server Page Sort Group Filter demo, the app crashes and closes everytime.  Is there a newer version of the demo that I can install?  Or, perhaps some other documentation about how to wire up the DataGridView, and a DataPager in this way.

What I am wondering specifically is if something like that demo will work using a WCF DataService instead of linq to sql, since the DataService will not allow Group By, or Select?  All that I really need is the paging, can these controls help me out with 'lazy loading' through a DataService one page at a time? 

Thanks.
Dinko | Tech Support Engineer
Telerik team
 answered on 24 May 2019
1 answer
205 views

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!

Dinko | Tech Support Engineer
Telerik team
 answered on 24 May 2019
1 answer
139 views

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.

Dinko | Tech Support Engineer
Telerik team
 answered on 23 May 2019
1 answer
321 views

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

Nikola
Telerik team
 answered on 23 May 2019
2 answers
367 views

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)};


Vladimir Stoyanov
Telerik team
 answered on 23 May 2019
9 answers
579 views

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.

 

Dinko | Tech Support Engineer
Telerik team
 answered on 23 May 2019
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
PersistenceFramework
DataPager
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?