Telerik Forums
UI for WPF Forum
3 answers
216 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
127 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
534 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
142 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
485 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
1.1K+ 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
387 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
512 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
147 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
2 answers
189 views

Hi,

 

Is it possible to make a connection with a cap in the middle? I want to obtain an connection without caps at the start and end but with an arrow in the middle only.

Like this:    

------->-------

 

How can that be done? Thank you for your help! 

Dan
Top achievements
Rank 1
 answered on 03 Jul 2020
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?