Telerik Forums
UI for WPF Forum
1 answer
317 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
364 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
574 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
1 answer
210 views
<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.

 

Martin Ivanov
Telerik team
 answered on 22 May 2019
1 answer
95 views

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

Martin Ivanov
Telerik team
 answered on 21 May 2019
8 answers
341 views

Hello,

I use a RadGridView and validate my data by implementing the INotifyDataErrorInfo interface.
It works well, but when there is a validation error, the tooltip of the row header is empty.
Could you please tell me how to fill the tooltip of the row header with the validation error messages?

Example: https://file.io/rEm4Fd (link valid until Tuesday 16th of April 2019)

Vladimir Stoyanov
Telerik team
 answered on 21 May 2019
1 answer
113 views

Hello,

Given <telerik:GridViewDataColumn DataMemberBinding="{Binding Number, StringFormat=C}" />..
If I use GetValueForItem, I get the formatted value (e.g. $1.00)..
Is there a method so I can get "1" instead?

Thank you,

Jan

Dilyan Traykov
Telerik team
 answered on 21 May 2019
6 answers
332 views
Using Windows Narrator (or our automated testing tool) our app crashes with the following stack trace:

at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)

   at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection)

   at Telerik.Windows.Controls.RadTabControlAutomationPeer.GetChildrenCore()

   at System.Windows.Automation.Peers.AutomationPeer.EnsureChildren()

   at System.Windows.Automation.Peers.AutomationPeer.UpdateChildrenInternal(Int32 invalidateLimit)

   at System.Windows.Automation.Peers.ItemsControlAutomationPeer.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.ContextLayoutManager.fireAutomationEvents()


This didnt happen with the Telerik trial dll's (version 2012.2.0725.40) but does happen since we received our licensed dll's (versions 2012.2.0912.40 and 2012.2.0929.40)

I would have raised this as a support ticket but my Telerik account isnt linked to our license at present. 

Thanks
Praveen
Top achievements
Rank 1
 answered on 20 May 2019
8 answers
1.1K+ views
Hello,

I am trying to implement multiple selection of a RadGridView in an MVVM context with data binding, based on this example.

I have achieved one way of interaction: when the selection state in the grid view is changed, the SelectedItems property of the view model is changed accordingly.

However, when I try to update the view from the viewmodels state, I run into a loop, where a change in the view changes the view model, which tries to update the view again etc. as a consequence, WPF throws an exception, that a change of a collection inside a CollectionChanged event is not possible (which makes sense).

Any ideas how this is solved properly ? Unfortunately, the above mentioned example does not present any further details for this issue.

Lars
Zahra
Top achievements
Rank 1
 answered on 20 May 2019
1 answer
76 views
I have a case where I want some tiles to span multiple columns and different rows, so I implemented the RestoredTilesToSpanMultipleRowsAndColumns example that is frequently posted here (https://github.com/telerik/xaml-sdk/tree/master/TileView/RestoredTilesToSpanMultipleRowsAndColumns). However, after implementing it I see that the maximize button no longer works - the example sets MaximizeMode to "Zero" because it doesn't do anything. How can I restore that functionality?
Dilyan Traykov
Telerik team
 answered on 20 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
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?