Telerik Forums
UI for WPF Forum
1 answer
182 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
114 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
281 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
338 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
532 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
190 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
83 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
313 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
87 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
304 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
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?