Telerik Forums
UI for WPF Forum
1 answer
387 views

I reproduced the "First Look" example program code in "NotifyIcon" in the "NotifyIcon" in "WPF Controls Examples" program in a project created on a personal computer.
It is executed.
However, the popup does not appear when the button is pressed.
If you write the code using the "NotifyIcon" introduced on the "Telerik UI" site, the results are the same.
It runs, but no popup appears.
Simply submit the code you wrote below.
Can you tell me what the problem is?

 

MainWindow.xaml.cs
        private void OnShowNotification(object sender, RoutedEventArgs e)
        {
            this.icon.ShowBalloonTip();
        }

 

MainWindow.xaml

    Button Content="Show notification" Click="OnShowNotification" /> 
    <telerik:RadNotifyIcon 
        x:Name="icon" 
        BalloonText="Balloon Text" 
        BalloonTitle="Balloon Title" 
        TrayIconSource="black.ico" 
        BalloonIconSource="black.ico"> 
    </telerik:RadNotifyIcon> 

 

 

Martin Ivanov
Telerik team
 answered on 08 Jul 2020
3 answers
164 views

Hello,

In the Windows Explorer, you can change the view using Ctrl+Mouse Wheel.

Your file dialogs should do the same.

Dinko | Tech Support Engineer
Telerik team
 answered on 07 Jul 2020
4 answers
92 views

Hello,

The following resources are wrong in French:

  • FileDialogs_FileSizes_B, should be "octets" instead of "bytes".
  • FileDialogs_FileSizes_GB, should be "Go" instead of "GB".
  • FileDialogs_FileSizes_KB, should be "ko" instead of "KB".
  • FileDialogs_FileSizes_MB, should be "Mo" instead of "MB".
  • FileDialogs_FileSizes_TB, should be "To" instead of "TB".
  • FileDialogs_OpenFolderDialogHeader, should be "Sélectionner un dossier" instead of "Ouvrir le dossier".
  • FileDialogs_OpenFolder, should be "Sélectionner le dossier" instead of "Ouvrir le dossier".
  • FileDialogs_DateHeader: should be "Modifié le" instead of "Date de modification ".
  • FileDialogs_Back, should be "Précédent" instead of "Retour".
  • FileDialogs_Forward, should be "Suivant" instead of "Transférer".
  • FileDialogs_Up, should be "Dossier parent " instead of "En haut".
  • FileDialogs_CopyTo: should be "Copier sur" instead of "Copier a". (there's a typo in "Copier a", as the "a" must take a grave accent in this case: "à").
  • FileDialogs_MoveTo: should be "Déplacer vers " instead of "Déplacer".

Note for English:

  • The official SI abbreviation for "kilo" is a lowercase "k", not an uppercase one, so it should be "kb" in English, not KB, and so on.
  • For the RadOpenDialogFolder, we don't "open" a folder, but "select" it, This should be changed in the resources, but also in the documentation (and even in the class name!).

It's also strange that the FileDialogs_InvalidOrMissingExtension resource says something completely different: "If you change a file name extension, the file might become unusable". Some thing for the FileDialogs_InvalidExtensionConfirmation resource.

Martin Ivanov
Telerik team
 answered on 07 Jul 2020
4 answers
425 views

Hello,

In the Windows Explorer, it is possible to use the Alt+Left keyboard shortcut for Back and the Alt+Right shortcut for Forward.

Your file dialogs should do the same.

Patrick
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 07 Jul 2020
2 answers
109 views
Is it possible to select an item programatically? After I bind the TreeMap control I would like to select a default item.
Martin Ivanov
Telerik team
 answered on 06 Jul 2020
6 answers
403 views

Thoughts on what I'm doing wrong here?  If I collapse a ListBoxItem, why does the RadListBox control on partially collapse it?  It still has a height of a couple of pixels when the bound property for visiblity is set to Visibility.Collapsed.

<telerik:RadListBox Name="MainListControl" Grid.Row="3" 
                       VerticalAlignment="Stretch"
                        VerticalContentAlignment="Stretch"
                        HorizontalAlignment="Stretch"
                        HorizontalContentAlignment="Stretch"
                        Background="White"
                        Margin="0,0,0,0"
                        ItemsSource="{Binding Path=HumanResources,Mode=TwoWay}" >
            <telerik:RadListBox.ItemsPanel>
                <ItemsPanelTemplate>
                    <StackPanel HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
                </ItemsPanelTemplate>
            </telerik:RadListBox.ItemsPanel>
            <telerik:RadListBox.ItemTemplate>
                <DataTemplate>
                    <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch"  Visibility="{Binding Path=IsVisible, Mode=TwoWay,Converter={StaticResource localVisibilityConverter}}" >
                        <Grid.RowDefinitions>
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                         
                        <StackPanel Name="ButtonPanel" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="3,3,3,3">
                            <telerik:RadButton x:Name="EditButton" Margin="3,3,3,3" Click="Edit_Click" Tag="{Binding Path=HumanResourceID}"  Content="{Binding Edit, Source={StaticResource GeneralStrings}}"   />
                        </StackPanel>
                        <TextBlock Grid.Column="1" x:Name="expanderCaption" HorizontalAlignment="Stretch" VerticalAlignment="Center"  Text="{Binding Path=Description}" Margin="3,3,3,3"  />
                    </Grid>
                </DataTemplate>
            </telerik:RadListBox.ItemTemplate>
        </telerik:RadListBox>
Dinko | Tech Support Engineer
Telerik team
 answered on 06 Jul 2020
10 answers
785 views
Hi,

I'd like to display data from database using an OData endpoint in the GridView. For this I've decided to use the QueryableDataServiceCollectionView, passing the DataServiceContext and DataServiceQuery into constructor.

For OData, I have a standard setup of Web Api OData Service endpoint and WCF Data Services 5 WPF Client. Model (DTO) looks like this:

[DataServiceKey("FactTradeHeaderIdentifier")]
    public class TradeHeaderModel
    {
        [Key]
        [DataMember(IsRequired = true)]               
        public int FactTradeHeaderIdentifier { get; set; }
     
        ...
    }

And the autogenerated client side counterpart like this:

    /// <summary>
    /// There are no comments for Edft.Regulatory.Tracker.Service.Web.ApiModels.TradeHeaderModel in the schema.
    /// </summary>
    /// <KeyProperties>
    /// FactTradeHeaderIdentifier
    /// </KeyProperties>
    [global::System.Data.Services.Common.EntitySetAttribute("TradeHeaders")]
    [global::System.Data.Services.Common.DataServiceKeyAttribute("FactTradeHeaderIdentifier")]
    public partial class TradeHeaderModel : global::System.ComponentModel.INotifyPropertyChanged
    {
        /// <summary>
        /// There are no comments for Property FactTradeHeaderIdentifier in the schema.
        /// </summary>
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
        public int FactTradeHeaderIdentifier
        {
            get
            {
                return this._FactTradeHeaderIdentifier;
            }
            set
            {
                this.OnFactTradeHeaderIdentifierChanging(value);
                this._FactTradeHeaderIdentifier = value;
                this.OnFactTradeHeaderIdentifierChanged();
                this.OnPropertyChanged("FactTradeHeaderIdentifier");
            }
        }
 
        ...
}

When loading data into the QueryableDataServiceCollectionView 

var ds = new QueryableDataServiceCollectionView<TradeHeaderModel>(apiService.Container, apiService.Container.TradeHeaders);

I get this error:

System.ArgumentException: The DataServiceCollection to be tracked must contain entity typed elements with at least one key property. The element type 'Edft.Regulatory.Tracker.Presentation.CrossCutting.ServiceClient.ApiODataService.TradeHeaderModel' does not have any key property.
   at System.Data.Services.Client.DataServiceCollection`1.StartTracking(DataServiceContext context, IEnumerable`1 items, String entitySet, Func`2 entityChanged, Func`2 collectionChanged)
   at System.Data.Services.Client.DataServiceCollection`1..ctor(DataServiceContext context)
   at Telerik.Windows.Controls.DataServices.DataServiceCollection`1..ctor(DataServiceContext context)
   at Telerik.Windows.Data.QueryableDataServiceCollectionView`1..ctor(DataServiceContext dataServiceContext, DataServiceQuery`1 dataServiceQuery)
   at Edft.Regulatory.Tracker.Presentation.Modules.Dashboard.ViewModels.TradeHeaderViewModel.<LoadDataAsync>d__1f.MoveNext() in d:\TFS\Regulatory\Tracker\Dev\Codebase\Edft.Regulatory.Tracker.Presentation.Modules.Dashboard\ViewModels\TradeHeaderViewModel.cs:line 272

Note that the DataServiceKeyAttribute is defined on both client and server models.

Any ideas? 


Edit: Using the Telerik.Windows.Controls.DataServices50 version

Thanks,
Stevo

Vladimir Stoyanov
Telerik team
 answered on 06 Jul 2020
2 answers
337 views

I'd like to be able to use a masked input control to allow the user to enter a hexadecimal number representing a color value (ARGB) e.g. #FF445566 or 0x445566. Is there some way I can use one of the mask controls to achieve this?

Thanks
Pete

Vladimir Stoyanov
Telerik team
 answered on 06 Jul 2020
1 answer
442 views

 

I know that it is possible to remove distinct values from the filters, as described in this article: https://docs.telerik.com/devtools/wpf/controls/radgridview/filtering/how-to/howto-display-all-distinct-values

But I want to add distinct values to the column filter. The use case would be when the user is creating a favorite for a specific set of filters. When the user comes back later to the list, it may not contain the values that the favorite filter had specified at that moment. But the user would like to still be able to see what the filters for the favorite looks like.

Is it possible to add distinct values to a column filter, without creating a custom filter editor? 

Vladimir Stoyanov
Telerik team
 answered on 06 Jul 2020
1 answer
108 views

Hello,

I've got a problem with the control.
After a while after applying a filter, I get SQL & Entity Exception.
Now I would like to debug it and see where exactly is the issue.
I can't look into it selecting the event.

How can I do it?

Regards

Dinko | Tech Support Engineer
Telerik team
 answered on 06 Jul 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?