Telerik Forums
UI for WPF Forum
3 answers
201 views

Hi all,

     I read this blog(https://www.telerik.com/blogs/ui-automation-testing-with-uia-verify) about identify Wpf telerik element by uia verify tool. 

     However, I can't find the RadButton and only the text on uia verify tool. Could someone give me hints? Thanks

Yoan
Telerik team
 answered on 19 Jan 2018
7 answers
1.1K+ views

Hi,

I'm trying to use different GroupHeaderTemplates with Converters for the columns in my grid view.  If I apply the template to the entire grid, my converter gets invoked.

           <telerik:RadGridView.GroupHeaderTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Group.Key, Converter={StaticResource IsActiveConverter}}" />
                </DataTemplate>
            </telerik:RadGridView.GroupHeaderTemplate>

 

If I apply the GroupHeaderTemplates to GridViewDataColumn, my converter gets called unless the column had a cell template.  My converter gets called for the followiing:

 

               <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name">

                   <telerik:GridViewDataColumn.GroupHeaderTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Group.Key, Converter={StaticResource IsActiveConverter}}" />

                        </DataTemplate>
                    </telerik:GridViewDataColumn.GroupHeaderTemplate>

            </telerik:GridViewDataColumn>

My converter (IsActiveConverter) does NOT get called for the following.

               <telerik:GridViewDataColumn Width="16" SortMemberPath="FontFormat">
                    <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate>
                            <Image x:Name="TypeIcon" Width="12" Height="12" Style="{StaticResource TypeIconStyle}" />
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
                    <telerik:GridViewDataColumn.GroupHeaderTemplate>
                        <DataTemplate>
                            <Image Source="{Binding Group.Key, Converter={StaticResource IsActiveConverter}}" Height="16" Width="16"/>
                        </DataTemplate>
                    </telerik:GridViewDataColumn.GroupHeaderTemplate>
                </telerik:GridViewDataColumn>

 

What am I doing wrong?  Thanks.

 

    
 

Stefan
Telerik team
 answered on 19 Jan 2018
0 answers
305 views

Hi,

I am binding my observablecollection to CollectionViewSource which has SortDescriptions. On initial load everything loads fine and sorting can be done. 

I have a reset button on which i am trying to refresh the changes in the grid with re fetching observablecollection and binding to ItemSource. Once i do the rebind the sorting doesnot work. 

Below is my collectionviewsource,

<CollectionViewSource
                x:Key="BuildLineSource"
                IsLiveSortingRequested="True"
                Source="{Binding BuildLineCollection,
                                 UpdateSourceTrigger=PropertyChanged}">
                <CollectionViewSource.GroupDescriptions>
                    <PropertyGroupDescription PropertyName="BuildLineCategory.Category" />
                </CollectionViewSource.GroupDescriptions>
                <CollectionViewSource.LiveSortingProperties>
                    <system:String>ExecutePriority</system:String>
                </CollectionViewSource.LiveSortingProperties>
                <CollectionViewSource.SortDescriptions>
                    <componentModel:SortDescription PropertyName="ExecutePriority" />
                </CollectionViewSource.SortDescriptions>
            </CollectionViewSource>

 

Below is the code i am calling on Constructor and also on Reset click,

private void GetBuildLines()
        {
            BuildLineCollection?.Clear();
            BuildLineCollection = _buildLineData.GetBuildLines();           
            ((INotifyPropertyChanged)BuildLineCollection).PropertyChanged +=
                (x, y) => BuildLineUpdated();
        }
Vinay
Top achievements
Rank 1
 asked on 19 Jan 2018
2 answers
580 views

Hi,

Is there a way to turn off the opacity in the new Fluent theme?

Stefan
Top achievements
Rank 1
 answered on 19 Jan 2018
0 answers
41 views
Hi, 
I have a wpf  radgridview with many groups .
I want to sort rows inside each group. the sorting is ok . But I found thet the group having the biggest element moves up 
I want to sort inside groups without moving groups 
please the picture 
thanks a lot
BEN SAID
Top achievements
Rank 1
 asked on 18 Jan 2018
4 answers
547 views

Hello Télérik,

 

I'm using a RadDesktopAlert in my software.

The declaration :

private void CreateNotification(string header, string content, int dureeEnMillisecondes, int tailleEnPx)
        {
            var alert = new RadDesktopAlert();
            alert.Header = header;
            alert.Content = content;
            alert.Opacity = 0.7;
            alert.ShowDuration = dureeEnMillisecondes;
            alert.Height = tailleEnPx;
            alert.ShowCloseButton = false;
 
            //Point pointDeDepart = new Point(0, 20);
            RadDesktopAlertManager manager = new RadDesktopAlertManager(AlertScreenPosition.BottomRight);//pointDeDepart);
              
            manager.ShowAlert(alert);
        }

- Me, and my clients, using 2 or more screens to work. 

- For the moment, i'm using AlertScreenPosition.BottomRight and the notification was displayed in the bottom-right of the main screen (where is the windows task bar), even if the screen software is on a other screen.

 

I want to know if is it possible to display the notification on the current screen (where is the software, or where is the mouse) ?

 

Thank you very much, I hope be understadable.

Leonid
Top achievements
Rank 2
 answered on 18 Jan 2018
3 answers
242 views
Hi,

I want to display list of all open windows in "Windows" RadMenu  at dynamically  and if I close any window then it should be removed from the "Windows" menu.
And I also want, menu should be check which window is top most.

Any help will be much more appreciated.

Regards,
Bharat Mendapara
Kalin
Telerik team
 answered on 18 Jan 2018
1 answer
149 views

I would like to change the light blue header color of the RadWindow.Confirm. (See attached)

I have asked this question before and got a satisfactory answer, however that answer no longer works. I get a build error that RadWindow is does not exist in the namespace http://schemas.telerik.com/2008/xaml/presentation

Maybe something changed since I asked this question in 2015.

My current project is using the NoXaml binaries.

 

 

 

 

 

 

Paul
Top achievements
Rank 1
 answered on 17 Jan 2018
3 answers
341 views
Hi Telerik,
I need your quick suggestion on the below requirement for our reputed Client (Transportation domain).
We are using the RaddesktopAlert and have an immediate requirement to have some buttons  on RaddesktopAlert to perform some functionalities. I came across that RaddesktopAlert for Winforms supports this but don't have any idea how to achieve the same on RaddesktopAlert for WPF.
Any help on this one will be grateful :)
Martin Ivanov
Telerik team
 answered on 17 Jan 2018
1 answer
556 views

I'm using the combobox in this example inside a grid as a celledittemplate:
<telerik:GridViewDataColumn Header="ÙŽArticle Description" Width="100"><telerik:GridViewDataColumn.CellTemplate><DataTemplate><TextBlock Text="{Binding DataContext.AccDocumentItem.Description1, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadGridView}}}"/></DataTemplate></telerik:GridViewDataColumn.CellTemplate><telerik:GridViewDataColumn.CellEditTemplate><DataTemplate><telerik:RadComboBox IsEditable="True" DisplayMemberPath="SLStandardDescriptionTitle"ItemsSource="{Binding DataContext.AccDocumentItem.SelectedSL.SLStandardDescriptions, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadGridView}}}"Text="{Binding DataContext.AccDocumentItem.Description1,Mode=TwoWay,RelativeSource={RelativeSource AncestorType={x:Type telerik:RadGridView}}}"><i:Interaction.Triggers><i:EventTrigger EventName="DropDownOpened"><i:InvokeCommandAction Command="{Binding DataContext.SLStandardDescriptionsDropDownOpenedCommand, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadGridView}}}" CommandParameter="DLType2"/></i:EventTrigger></i:Interaction.Triggers></telerik:RadComboBox></DataTemplate></telerik:GridViewDataColumn.CellEditTemplate> </telerik:GridViewDataColumn>

I need to present a grid where one column is a combobox. The user can select one value from the list or enter a new value, the problem is that selected row is repeated in all rows. Can you please tell me what I'm doing wrong?
Your time much appreciated!

Dinko | Tech Support Engineer
Telerik team
 answered on 17 Jan 2018
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?