Telerik Forums
UI for WPF Forum
1 answer
255 views

Hi,

 

I want to know few of the properties which I was previously using in WPF Toolkit DateTimePicker and I am not able to find them in Telerik UI for WPF.

AllowSpin="False"
AllowTextInput="False"
Format="Custom"
AutoCloseCalendar="True"
FormatString="{Binding SiteShortDateTimeFormat, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay,                                         FallbackValue='MMM-dd-yyyy HH:mm'}"  IsEnabled="{Binding ExpirationEnabled}" Minimum="{Binding MinExpirationDate}" TimePickerVisibility="Collapsed"
Value="{Binding ExpirationDate, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" 

 

These all I want in telerik.

Please help me in this if possible.

 

Thanks,

Yogendra

Dilyan Traykov
Telerik team
 answered on 25 Feb 2022
2 answers
231 views

Hi

Actually we are megrating to .net 5.0. So we had been using the 2019 version of Telerik and now we want to use the 2021 version of Telerik.

But we had been using the QueryableEntityCollectionView which was present into Telerik.Windows.Data dll version 2019.1.220.45, but not anymore into the version 2021.2.615.50.

Could you tell me by wich class QueryableEntityCollectionView was replaced into the new version ?

Thanks

BR

J-Christophe

Sandra
Top achievements
Rank 1
Iron
 answered on 24 Feb 2022
0 answers
122 views

Hi,

I tried to use the RadGridView with an OData Endpoint. 

I took a look into the documentations but didn't find any good sample.

I tried it with the QueryableDataProvider.

But my data was not loaded. It always runs into an exception:

Constructing or initializing instances of the type DynamicClass1 with the expression (Param_0 != null) is not supported.

This Exception is thrown by the OData Client.

 

Below my simplified code:

 

View:


<Window x:Class="ODataClientTest.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        xmlns:oDataClientTest="clr-namespace:ODataClientTest"
        xmlns:pivot="http://schemas.telerik.com/2008/xaml/presentation/pivot"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800"
        d:DataContext="{d:DesignInstance oDataClientTest:MainWindowViewModel}">
    <Grid>

        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        
        <pivot:RadPivotGrid Grid.Row="0" Grid.Column="0" DataProvider="{Binding ReportElements}" />
        
        <pivot:RadPivotFieldList Grid.Row="0" Grid.Column="1" DataProvider="{Binding ReportElements}" />

    </Grid>
</Window>


ViewModel

 


using System.Diagnostics;
using Telerik.Pivot.Queryable;

namespace ODataClientTest;

public class MainWindowViewModel : BaseNotifyPropertyChanged
{
    public MainWindowViewModel()
    {
        MyOdataContext dataContext = new();

        ReportElements = new()
                         {
                             Source = dataContext.ReportElements,
                             DeferUpdates = true
                         };

        ReportElements.StatusChanged += (sender, args) =>
                                        {
                                            if (args.Error != default)
                                                Debugger.Break(); // Here I can see the exception
                                        };
    }

    public QueryableDataProvider ReportElements
    {
        get => GetValue<QueryableDataProvider>();
        set => SetValue(value);
    }
}

 

 

My Question now: Is there any way to connect my OData Source to a PivotGrid?

Unfortunalety I could not use the LocalDataProvider, as the OData API returns a lot of data which must be filtered beforehand.

 

I also tried to use the normal GridView with works perfectly with the QueryableDataServiceCollectionView. But: It does not fit our needs, like Grouping, Creating dynamic aggregates (sum, average, etc.).

We are currently using .Net 4.7.2.

 

Many thanks!


 

Sebastian
Top achievements
Rank 1
 asked on 23 Feb 2022
1 answer
271 views

Hi,

As the title describes it, I'm trying to bind the property "Columns" of a RadGridView to a static resource (could also be bound to a dependency property).

But of course, since this "Columns" property doesn't have a public setter, I can't simply set it with:

<telerik:RadGridView Columns="{Binding InitialColumns}"/>

Nor can I do:

<telerik:RadGridView>
    <telerik:RadGridView.Columns Items="{Binding InitialColumns}"/>
</telerik:RadGridView>

since the "Items" property of Collection<T> doesn't have a public setter either.

As you may have guessed, I'm trying to add a collection of initial columns to the grid. My ultimate goal is to have a template selector that would fill the grid with some initial columns based on some conditions. The rest of the columns would then be added dynamically in code at runtime.

How could I do that? Thanks!

Martin Ivanov
Telerik team
 answered on 22 Feb 2022
1 answer
411 views

In VS2019 theme the highlight color for selected text in several controls is so light that is very difficult to tell if the text is selected or not.

You can see this in controls like MS Textbox or RadWaterMarkTextbox,

It looks like that the color used is the accentcolor property of the theme with certain opacity. The problem is that i don't know how to change this opacity.

I'm attaching two screen captures showing this, both of them from Telerik Color Theme Generator.

How can I change this color?

 

Stenly
Telerik team
 answered on 22 Feb 2022
2 answers
118 views

Hi guys,

I use a ScheduleView in Timeline Mode to display when users had vacations.
My problem now is, that the size of the Timeline-Area with the columns doesn't grow.
If the available space is smaller a scrollbar appears (what is good).
But if the available space is bigger, the columns get smaller instead that the space is used.
I tried to play with the MaxTimeRulerExtent property but this doesn't seem to have an effect.

Is there something I'm missing?

Greetings Benedikt

Masha
Telerik team
 answered on 22 Feb 2022
0 answers
118 views

Hello Support team.
We got following exception on changing ItemCollection property of a custom control.

Version
Assembly Telerik.Windows.Controls, Version=2022.1.117.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7

Message
System.NullReferenceException: 'Object reference not set to an instance of an object.'

StackTrace

   at Telerik.Windows.Controls.GridView.Selection.CellInfoCollectionCellValidator.IsPublicCellValid(GridViewCellInfo info)
   at Telerik.Windows.Controls.GridView.Selection.CellInfoCollection.Add(GridViewCellInfo cellInfo)
   at Telerik.Windows.Controls.GridView.Selection.CellSelectionHandler.CoerceSelectedCellsIfNeeded(NotifyCellInfoCollectionChangedEventArgs e)
   at Telerik.Windows.Controls.GridView.Selection.CellSelectionHandler.InternalSelectedCells_CellsChanged(Object sender, NotifyCellInfoCollectionChangedEventArgs e)
   at Telerik.Windows.Controls.GridView.Selection.CellInfoCollection.OnCellsChanged(CellInfoCollectionChangeType changeType, CellInfoCollection addedCells, CellInfoCollection removedCells)
   at Telerik.Windows.Controls.GridView.Selection.CompositeSelectionHandler.UpdateSelectedCells(IList`1 items, Boolean isSelected)
   at Telerik.Windows.Controls.GridView.Selection.CompositeSelectionHandler.OnColumnsCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Controls.GridViewColumnCollectionInternal.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, T item)
   at Telerik.Windows.Controls.GridViewColumnCollectionInternal.InsertItem(Int32 index, GridViewColumn item)
   at Telerik.Windows.Controls.GridView.GridViewDataControl.AddAutoGeneratedColumns()
   at Telerik.Windows.Controls.GridView.GridViewDataControl.OnAutoGenerateColumnsChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp, Boolean preserveCurrentValue)
   at System.Windows.StyleHelper.InvalidatePropertiesOnTemplateNode(DependencyObject container, FrameworkObject child, Int32 childIndex, FrugalStructList`1& childRecordFromChildIndex, Boolean isDetach, FrameworkElementFactory templateRoot)
   at System.Windows.StyleHelper.ClearTemplateChain(HybridDictionary[] instanceData, FrameworkElement feContainer, FrameworkContentElement fceContainer, List`1 templateChain, FrameworkTemplate oldFrameworkTemplate)
   at System.Windows.StyleHelper.ClearGeneratedSubTree(HybridDictionary[] instanceData, FrameworkElement feContainer, FrameworkContentElement fceContainer, FrameworkTemplate oldFrameworkTemplate)
   at System.Windows.StyleHelper.DoTemplateInvalidations(FrameworkElement feContainer, FrameworkTemplate oldFrameworkTemplate)
   at System.Windows.Controls.Control.OnTemplateChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp, Boolean preserveCurrentValue)
   at System.Windows.StyleHelper.InvalidateContainerDependents(DependencyObject container, FrugalStructList`1& exclusionContainerDependents, FrugalStructList`1& oldContainerDependents, FrugalStructList`1& newContainerDependents)
   at System.Windows.StyleHelper.DoStyleInvalidations(FrameworkElement fe, FrameworkContentElement fce, Style oldStyle, Style newStyle)
   at System.Windows.StyleHelper.UpdateStyleCache(FrameworkElement fe, FrameworkContentElement fce, Style oldStyle, Style newStyle, Style& styleCache)
   at System.Windows.FrameworkElement.OnStyleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp, Boolean preserveCurrentValue)
   at System.Windows.FrameworkElement.UpdateStyleProperty()
   at System.Windows.FrameworkElement.InvalidateTreeDependentProperties(TreeChangeInfo parentTreeState, Boolean isSelfInheritanceParent, Boolean wasSelfInheritanceParent)
   at System.Windows.FrameworkElement.OnAncestorChangedInternal(TreeChangeInfo parentTreeState)
   at System.Windows.TreeWalkHelper.OnAncestorChanged(DependencyObject d, TreeChangeInfo info, Boolean visitedViaVisualTree)
   at System.Windows.DescendentsWalker`1._VisitNode(DependencyObject d, Boolean visitedViaVisualTree)
   at MS.Internal.PrePostDescendentsWalker`1._VisitNode(DependencyObject d, Boolean visitedViaVisualTree)
   at System.Windows.DescendentsWalker`1.WalkLogicalChildren(FrameworkElement feParent, FrameworkContentElement fceParent, IEnumerator logicalChildren)
   at System.Windows.DescendentsWalker`1.WalkFrameworkElementLogicalThenVisualChildren(FrameworkElement feParent, Boolean hasLogicalChildren)
   at System.Windows.DescendentsWalker`1.IterateChildren(DependencyObject d)
   at System.Windows.DescendentsWalker`1._VisitNode(DependencyObject d, Boolean visitedViaVisualTree)
   at MS.Internal.PrePostDescendentsWalker`1._VisitNode(DependencyObject d, Boolean visitedViaVisualTree)
   at System.Windows.DescendentsWalker`1.WalkLogicalChildren(FrameworkElement feParent, FrameworkContentElement fceParent, IEnumerator logicalChildren)
   at System.Windows.DescendentsWalker`1.WalkFrameworkElementLogicalThenVisualChildren(FrameworkElement feParent, Boolean hasLogicalChildren)
   at System.Windows.DescendentsWalker`1.IterateChildren(DependencyObject d)
   at System.Windows.DescendentsWalker`1.StartWalk(DependencyObject startNode, Boolean skipStartNode)
   at MS.Internal.PrePostDescendentsWalker`1.StartWalk(DependencyObject startNode, Boolean skipStartNode)
   at System.Windows.TreeWalkHelper.InvalidateOnTreeChange(FrameworkElement fe, FrameworkContentElement fce, DependencyObject parent, Boolean isAddOperation)
   at System.Windows.FrameworkElement.OnVisualParentChanged(DependencyObject oldParent)
   at System.Windows.Media.Visual.FireOnVisualParentChanged(DependencyObject oldParent)
   at System.Windows.Media.Visual.RemoveVisualChild(Visual child)
   at System.Windows.Media.VisualCollection.DisconnectChild(Int32 index)
   at System.Windows.Media.VisualCollection.RemoveRange(Int32 index, Int32 count)
   at System.Windows.Controls.UIElementCollection.RemoveRangeInternal(Int32 index, Int32 count)
   at System.Windows.Controls.Panel.OnItemsChangedInternal(Object sender, ItemsChangedEventArgs args)
   at System.Windows.Controls.Panel.OnItemsChanged(Object sender, ItemsChangedEventArgs args)
   at System.Windows.Controls.ItemContainerGenerator.OnItemRemoved(Object item, Int32 itemIndex)
   at System.Windows.Controls.ItemContainerGenerator.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)
   at System.Windows.WeakEventManager.ListenerList`1.DeliverEvent(Object sender, EventArgs e, Type managerType)
   at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)
   at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
   at System.Windows.WeakEventManager.ListenerList`1.DeliverEvent(Object sender, EventArgs e, Type managerType)
   at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)
   at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
   at MS.Internal.Controls.InnerItemCollectionView._RemoveAt(Int32 index, Int32 indexR, Object item)
   at System.Windows.Controls.ItemCollection.Remove(Object removeItem)
Andrey Burykin
Top achievements
Rank 1
 asked on 21 Feb 2022
1 answer
510 views

Hi,

I have developer license for Telerik UI for WPF which was purchased this week. But when i try and search for specific controls i do not get the latest builds displayed.

I have attached the screenshot where it shows only version 2020.1.218 even though there is a new release in 2022.

And also why does it show only Trial and not the actual package.

Uthappa
Top achievements
Rank 1
Iron
 answered on 21 Feb 2022
1 answer
95 views

Hello Telerik Team,

I was wondering how one would implement error bars in a ScatterPointSeries that look similar to this: https://demos.telerik.com/kendo-ui/line-charts/error-bars

There is a very similar question that has been asked before (https://www.telerik.com/forums/how-to-plot-error-bar-for-standard-deviation). Unfortunately, it doesn't look like the feature request mentioned there is going to be implemented anytime soon. As a workaround it was suggested to use a RangeBarSeries with a custom PointTemplate, but that will not work for me, since it is a Cathegorical series and I need to plot the data points at any arbitrary xy coordinate, which is my reason to use the ScatterPointSeries.

I was researching further and found someone mentioning a custom renderer but it seems that is only applicable for windows forms.

I also found this site https://docs.telerik.com/devtools/wpf/controls/radchart/how-to/howto-create-scatter-errorbars-and-boxplot-series but it seems to only work for RadChart and not RadCartesianChart.

Any pointers in the right direction would be greatly appreciated.

 

Best Regards,
Robin

Martin Ivanov
Telerik team
 answered on 21 Feb 2022
1 answer
103 views

Hi,

It is possible for Popup Filtering to have the same behavior as for winforms and excel, which when typing in the textbox already filtered the list. As per attached image.

Thanks.

Martin Ivanov
Telerik team
 answered on 21 Feb 2022
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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?