Telerik Forums
UI for WPF Forum
2 answers
105 views

I have a problem trying to use another Telerik component (-> RadTimeBar) which leads to a not loading application with a lot of memory consumption. I am using NoXaml assemblies so I figured I have to add DataVisualization to the App.xaml ResourceDictionary in order to see the control (because it is "invisible" so far). As soon as I add Control.DataVisualization to the App.xaml ResourceDictionary the application is no longer starting properly. It tries to initialize the first visible "start page" called TuggersView.xaml which uses a Telerik RadGridView. However the View initialization call never returns and meanwhile the application uses above 4GB of RAM before I kill the process. Running in debug the application usually consumes around 400 to 500 MB when loaded completely.

 

Have you ever encountered this kind of behaviour?

 

App.xaml Ok:

<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/System.Windows.xaml" />
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.xaml" />
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.Chart.xaml" />
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.Data.xaml" />
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.Diagrams.xaml" />
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.GridView.xaml" /
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.Input.xaml" />

 

App.xaml issue:

<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/System.Windows.xaml" />
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.xaml" />
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.Chart.xaml" />
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.Data.xaml" />
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.DataVisualization.xaml" />
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.Diagrams.xaml" />
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.GridView.xaml" /
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.Input.xaml" />

Vladimir Stoyanov
Telerik team
 answered on 10 Dec 2019
3 answers
406 views

Hi, I just downloaded the latest UI for WPF (2019.3.1023) NuGet packages. Obviously the Wpf.NetCore packages have dependencies to SharpDX (>= 2.5.0) and SharpDX.Direct3D9 (>= 2.5.0). These are packages compiled for .NET Framework and NOT compatible with .NET Core 3.x 

Hey guys, do you test your packages before deployment? Can I use the controls in my project anyway, should I remove the SharpDX references?

Regards
Heiko

Heiko
Top achievements
Rank 1
Iron
Veteran
 answered on 09 Dec 2019
3 answers
240 views

Hi,

What is the best practice to have a combination of a full line to a dotted line.

I would like to use it in data of last x weeks to a forecast of y weeks. I would like to have a dotted line for the forecast and a full line for the last weeks.

Thanks in advance!

Martin Ivanov
Telerik team
 answered on 06 Dec 2019
1 answer
256 views

Hey together,

 

I have a MapControl in my application in which I have different MapLayers with different MapItemsControls.
To a few of them I want to add ContextMenues if someone rightclicks. For example to create a route from Pushpin A to B, to add it to some existing things etc.
To make the second option easy, I want to add a RadCombobox to the ContextMenue and populate it with the data of an ObservableCollection that is part of the DataContext of the RadWindow. 

The problem is, that the RadComboBox stays empty. If I add the RadComboBox directly without the ContextMenu it gets populated as it should.
Also if I put the ContextMenu directly into the MapLayer it populates, but I need the Source of the Pushpin as a Commandparameter later so I can trigger some things with the underlying element.

<map:MapLayer
    x:Name="MapLayerAufträge"
    >
    <map:MapItemsControl
        ItemsSource="{Binding AufträgeLocations}"
        >
        <map:MapItemsControl.ItemTemplate>
            <DataTemplate>
                <map:Pushpin
                    Location="{Binding Location}"
                    Visibility="{Binding Path=IsVisible, Converter={StaticResource VisibleIfTrueConverter}}"
                    ToolTip="{Binding Name}"
                    MouseLeftButtonDown="MontageAufträgePushpin_MouseDown"
                    >
                    <map:Pushpin.Background>
                        <SolidColorBrush
                            Color="{Binding MontageEinteilung, Converter={StaticResource AuftragMontageEingeteiltPinFarbeConverter}}"
                            Opacity="0.8"
                            />
                    </map:Pushpin.Background>
                    <telerik:RadContextMenu.ContextMenu>
                        <telerik:RadContextMenu
                            x:Name="rcmKarte"
                            >
                            <telerik:RadMenuItem Header="Tour starten"/>
                            <telerik:RadMenuItem
                                Header="Zu Tour hinzufügen"
                                >
                                <telerik:RadComboBox
                                    ItemsSource="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type telerik:RadWindow}}, Path=DataContext.Touren, Mode=OneWay}"
                                    SelectedValuePath="ID"
                                    >
                                    <telerik:RadComboBox.ItemTemplate>
                                        <DataTemplate>
                                            <Grid
                                Margin="0 3"
                                >
                                                <StackPanel
                                    Orientation="Horizontal"
                                    >
                                                    <TextBlock Text="{Binding Monteure}"/>
                                                    <TextBlock Text=" KW: " />
                                                    <TextBlock Text="{Binding KWsString}"/>
                                                    <TextBlock Text=" (" />
                                                    <TextBlock Text="{Binding DatumStart, StringFormat=d}" />
                                                    <TextBlock Text="-" />
                                                    <TextBlock Text="{Binding DatumEnde, StringFormat=d}" />
                                                    <TextBlock Text=")" />
                                                </StackPanel>
                                            </Grid>
                                        </DataTemplate>
                                    </telerik:RadComboBox.ItemTemplate>
                                </telerik:RadComboBox>
                                <Button
                    Content="Bestätigen"
                    Command="{Binding PutInTourCommand}"
                    />
                            </telerik:RadMenuItem>
                        </telerik:RadContextMenu>
                    </telerik:RadContextMenu.ContextMenu>
 
                </map:Pushpin>
            </DataTemplate>
        </map:MapItemsControl.ItemTemplate>
    </map:MapItemsControl>
    <map:MapItemsControl
        ItemsSource="{Binding SelectedAufträgeLocations}"
        >
        <map:MapItemsControl.ItemTemplate>
            <DataTemplate>
                <map:Pushpin
                    Location="{Binding LagerLocation.Location}"
                    ToolTip="{Binding Name}"
                    Template="{StaticResource LagerPushpinTemplate}"
                    PositionOrigin="0.45, 0.45"
                    >
                    <map:Pushpin.Background>
                        <SolidColorBrush
                            Color="#EF6C00"
                            />
                    </map:Pushpin.Background>
                </map:Pushpin>
            </DataTemplate>
        </map:MapItemsControl.ItemTemplate>
    </map:MapItemsControl>
    <map:MapItemsControl
        ItemsSource="{Binding SelectedAufträgeLocations}"
        >
        <map:MapItemsControl.ItemTemplate>
            <DataTemplate>
                <map:Pushpin
                    Location="{Binding Location}"
                    ToolTip="{Binding Name}"
                    >
                    <map:Pushpin.Background>
                        <SolidColorBrush
                            Color="#EF6C00"
                            Opacity="0.8"
                            />
                    </map:Pushpin.Background>
                </map:Pushpin>
            </DataTemplate>
        </map:MapItemsControl.ItemTemplate>
    </map:MapItemsControl>
</map:MapLayer>

 

Has anyone an idea how I can achieve this?

 

Greetings,

Benedikt

Vladimir Stoyanov
Telerik team
 answered on 06 Dec 2019
1 answer
400 views

     I have a rad Cartesian chart that updates live as data comes in, I have the render options set to Direct2D and seperate. I have tried bitmap/batch also and it seems to not make a difference. 

The problem is When the collection of data starts to reach around 20,000 datapoints the UI will completely freeze up although the code is still executing. 

I have a requirement to update live data up to 300,000 data points at a rate of 50HZ. Is this possible with your tools?

Martin Ivanov
Telerik team
 answered on 06 Dec 2019
1 answer
110 views

 WPF RadGrid copy multiple cell (non continuous ones like first and third). The second one is copied as empty. How to avoid this? Is there a property for setting this? The CellClipboardContent event is only fired twice though. 

 

Pradeep
Top achievements
Rank 1
 answered on 05 Dec 2019
1 answer
158 views

Hi,
I've a RadComboBox inside the RadGridView. When loading the tab very first time data inside the combobox is not displaying.

We have data in selectedvalue and in itemsource collection, but it is not displaying. Combobox is in editable mode.
<telerik:RadComboBox x:Name="ComboBox" Tag="{Binding SeqNo,UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource TextSearchStyle}" 
           ItemsSource="{Binding DataContext.List, Mode=TwoWay, RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}}"
                SelectedValue="{Binding Code, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" SelectedValuePath="Code"  IsEditable="True" ItemTemplate="{StaticResource ComboBoxItem}" ItemContainerStyle="{StaticResource ComboBoxItemStyle}"
                CanKeyboardNavigationSelectItems="True" TextSearchMode="Contains" IsFilteringEnabled="True"  OpenDropDownOnFocus="False" GotFocus="ComboBox_GotFocus" LostFocus="ComboBox_LostFocus" DropDownClosed="ComboBox_DropDownClosed"  GotKeyboardFocus="ComboBox_GotKeyboardFocus"
                IsTextSearchEnabled="True" KeyDown="ComboBox_KeyDown" PreviewKeyDown="ComboBox_KeyUp" CanAutocompleteSelectItems="False" TabIndex="7" >
                                                    <telerik:RadComboBox.ToolTip>
                                                        <StackPanel Height="Auto" Width="Auto" MaxWidth="300" Background="#F2F2F2">
                                                            <TextBlock Text="{Binding ShortDescription}" Style="{StaticResource ToolTipCodesDescriptionTextBlock}"/>
                                                        </StackPanel>
                                                    </telerik:RadComboBox.ToolTip>
                                                    <i:Interaction.Triggers>
                                                        <i:EventTrigger EventName="GotFocus">
                                                            <i:InvokeCommandAction Command="{Binding DataContext.LoadPopUpCommand, RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}}" CommandParameter="{Binding DataContext, ElementName=ComboBox}" />
                                                        </i:EventTrigger>
                                                        <i:EventTrigger EventName="DropDownClosed">
                                                            <i:InvokeCommandAction Command="{Binding DataContext.CPTSelectionChanged, RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}}" 
                CommandParameter="{Binding DataContext, ElementName=CPTComboBox}"/>
                                                        </i:EventTrigger>
                                                        <i:EventTrigger EventName="LostFocus">
                                                            <i:InvokeCommandAction Command="{Binding DataContext.ComboLostFocusCommand, RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}}" CommandParameter="{Binding DataContext, ElementName=ComboBox}" />
                                                        </i:EventTrigger>
                                                    </i:Interaction.Triggers>
                                                </telerik:RadComboBox>
Regards,
Mahesh

Dinko | Tech Support Engineer
Telerik team
 answered on 05 Dec 2019
3 answers
808 views

Hi,

I have binded custom object collection to the RaCombobox selecting an item and saving is working fine but displaying the item again once we close and open the application is not working.

 

                    <telerik:RadComboBox Name="AppContextNames" Width="150" Height="25" SelectedItem="{Binding AppContext,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" ItemsSource="{Binding Path=DataContext.SharedActionVM.AppContextCollection,RelativeSource={RelativeSource AncestorType={x:Type telerik:RadTreeListView}}}" DisplayMemberPath="Name" />

Here while setting it is working fine but again if go to that combobox  even the AppContext object contains value it is showing empty combo value but combocollection is present.

Is there something I have to do from my side??

Regards,

Nagasree.

 

 

 

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 05 Dec 2019
3 answers
649 views

I'm currenting working on an existing project where there the creator had UserControl Xamls, the controls are in ViewModel folder where usercontrol.ViewModel.cs has the control and executable.

I'm trying not to break the code, learn how to use MVVM/WPF formatting.

I have added a button to the UserControl.Xaml now I'm not clear on get the button control to work so it can export both selected gridview item or the whole gridview. I have found several forum articles but they do not met my WPF format:

<telerik:RadButton x:Name="btnExport"
                                   Grid.Row="0"
                                   Content="Export to Excel"
                                   Command="{Binding Export2ExcelCommand}"
                                   Width="100"
                                   Margin="4" />

But now I need a good sample that show how I should add the "Export2ExcelCommand" button control to the "ucViewModel.cs" file.

Again the goal is to support both whole gridview export or selected items in gridview to Excel.

Help is appreciated.

herb
Top achievements
Rank 1
Veteran
Iron
 answered on 05 Dec 2019
8 answers
190 views

Hi,

I have this RadMaskedTextInput:

<telerik:RadMaskedTextInput IsClearButtonVisible="True" TextMode="PlainText"  Placeholder=" " Mask="a4/>a3" Margin="2,0,2,0" AcceptsReturn="False" HorizontalAlignment="Stretch" Value="{Binding FilterPasse}" ValueMode="IncludeLiterals" SelectionOnFocus="CaretToBeginning"/>

Following implicit style is used

<Style x:Key="DefaultTelerikMaskedTextInputStyle" TargetType="telerik:RadMaskedTextInput" BasedOn="{StaticResource RadMaskedTextInputStyle}">
    <Setter Property="MinHeight" Value="{StaticResource DefaultMinimumHeight}"/>
    <Setter Property="FontFamily" Value="{StaticResource DefaultFont}"/>
    <Setter Property="FontSize" Value="{StaticResource DefaultFontSize}"/>
    <Setter Property="FontWeight" Value="{StaticResource DefaultFontWeight}"/>
    <Setter Property="Validation.ErrorTemplate" Value="{StaticResource ErrorTemplate}"/>
 
    <Style.Triggers>
        <Trigger Property="IsEnabled" Value="True">
            <Setter Property="Background" Value="{StaticResource DefaultTextBoxBackgroundColor}"/>
        </Trigger>
        <Trigger Property="IsEnabled" Value="False">
            <Setter Property="Background" Value="{StaticResource DefaultTextBoxDisabledBackgroundColor}"/>
        </Trigger>
        <Trigger Property="IsFocused" Value="True">
            <Setter Property="Background" Value="{StaticResource DefaultTextBoxIsFocusedBackgroundColor}"/>
        </Trigger>
        <Trigger Property="IsReadOnly" Value="True">
            <Setter Property="Background" Value="{StaticResource DefaultTextBoxIsReadOnlyBackgroundColor}"/>
        </Trigger>
    </Style.Triggers>
</Style>
<Style TargetType="{x:Type telerik:RadMaskedTextInput}" BasedOn="{StaticResource DefaultTelerikMaskedTextInputStyle}"/>

 

When running the application the slash (in the mask) is shown twice (see attached pictures). Any ideas why ?

Regards,
Hans

Hans
Top achievements
Rank 1
Veteran
 answered on 04 Dec 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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?