I'm using a GridViewImageColumn to display images that are smaller than the cell.
How do I change Horizontal Orientation or Vertical Orientation in XAML to let the image appear e.g. on top or on bottom of the cell?
I have a problem with the Telerik Grouping. I can reproduce the error like this (Q3 2015):
This behaviour is not as the user expect, because only the selected group should expand, not the one containing the selected item.
Maybe some one has a solution,
Thank you!
How can I binding header and content of items?
<
telerik:RadTileView
ItemsSource
=
"{Binding BankAccounts}"
IsVirtualizing
=
"True"
/>
My goal is show my entities (for ex. Bank Account).
To show account's name on header livetimeitem and to list several properties of entities (for ex. Balance Amount, last ledger entry etc.) into content.
Hi,
My users need to be able to select cells in a RadGridView by clicking the column header. What is the recommended way of accomplishing this, in a RadGridView (WPF). Thanks in advance for any help.
// Tomas
I'm using the ribbon with MVVM, like in the sample. In my implementation I've got tabs with a lot of buttons on them. When I select a tab, it can take a couple of seconds to switch to it and display the contents. Also, sometimes when the lag is noticeable and you can see the layout change as the buttons are added to the visual tree.
I've looked into implementing the solution described here, but I can't find the RadTabControl in the visual tree to set the IsContentPreserved property. So I'm at a loss at this point on how to make it better.
Is there a way to improve the performance when switching between tabs?
Thanks for any help!
Hello everyone,
I'm new with Telerik test studio and really need your advises on thing below, please help...
I have a WPF app that alows many users work at the same time (each user will work on a difference workstation and currently i have 16 users with 16 workstation), and now i want to using automation test to replicate the scenario that 16users working at the same time.
So is impossible to do it? and how can i do it?
Currently i only create a testing with a user (on a workstation) and for 15 others, i create 15 virtual machines to run my testing. But seems it is a bad thinking..
Hope to get all your helps.
Many many thanks...
I'm getting an "Ambiguous match found" exception when loading a control with the RadGridView on it. The error is only happening on a few user's PCs and is fine on all the others and there's nothing obviously different about these PCs or the setup.
Are there any known issues that might cause this?
The stack trace is below and you'll see there's none of my code in there - it's purely Windows forms loading and I think formatting rows in the control. The affected PCs are based in Ireland and we are using regional formats on some of the data. There's a DataCellTemplateSelector that determines whether to format a row using one of the following string formats: {}{0:#,#.}, {}{0:C2}, {}{0:C0} or {}{0:#,#.%}
Thanks
Stack Trace:
AmbiguousMatchException
at System.RuntimeType.GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)
at System.Type.GetProperty(String name, BindingFlags bindingAttr)
at System.Windows.PropertyPath.GetPropertyHelper(Type ownerType, String propertyName)
at System.Windows.PropertyPath.ResolvePropertyName(String name, Object item, Type ownerType, Object context, Boolean throwOnError)
at MS.Internal.Data.PropertyPathWorker.GetInfo(Int32 k, Object item, SourceValueState& svs)
at MS.Internal.Data.PropertyPathWorker.ReplaceItem(Int32 k, Object newO, Object parent)
at MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(Int32 k, ICollectionView collectionView, Object newValue, Boolean isASubPropertyChange)
at MS.Internal.Data.ClrBindingWorker.AttachDataItem()
at System.Windows.Data.BindingExpression.Activate(Object item)
at System.Windows.Data.BindingExpression.AttachToContext(AttachAttempt attempt)
at System.Windows.Data.BindingExpression.AttachOverride(DependencyObject target, DependencyProperty dp)
at System.Windows.Data.BindingExpressionBase.Attach(DependencyObject target, DependencyProperty dp)
at System.Windows.Data.BindingExpressionBase.OnAttach(DependencyObject d, DependencyProperty dp)
at System.Windows.StyleHelper.GetInstanceValue(UncommonField`1 dataField, DependencyObject container, FrameworkElement feChild, FrameworkContentElement fceChild, Int32 childIndex, DependencyProperty dp, Int32 i, EffectiveValueEntry& entry)
at System.Windows.StyleHelper.GetChildValueHelper(UncommonField`1 dataField, ItemStructList`1& valueLookupList, DependencyProperty dp, DependencyObject container, FrameworkObject child, Int32 childIndex, Boolean styleLookup, EffectiveValueEntry& entry, ValueLookupType& sourceType, FrameworkElementFactory templateRoot)
at System.Windows.StyleHelper.GetChildValue(UncommonField`1 dataField, DependencyObject container, Int32 childIndex, FrameworkObject child, DependencyProperty dp, FrugalStructList`1& childRecordFromChildIndex, EffectiveValueEntry& entry, ValueLookupType& sourceType, FrameworkElementFactory templateRoot)
at System.Windows.StyleHelper.GetValueFromStyleOrTemplate(FrameworkObject fo, DependencyProperty dp, EffectiveValueEntry& entry)
at System.Windows.StyleHelper.ApplyStyleOrTemplateValue(FrameworkObject fo, DependencyProperty dp)
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.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at Telerik.Windows.Controls.GridView.GridViewDataControl.ApplyRowStyle(GridViewRow row, Boolean& isExpandablePropertyCleared)
at Telerik.Windows.Controls.GridView.GridViewDataControl.PrepareContainerForItemOverride(DependencyObject element, Object item)
at Telerik.Windows.Controls.GridView.BaseItemsControl.Telerik.Windows.Controls.GridView.IGeneratorHost.PrepareItemContainer(DependencyObject container, Object item)
at Telerik.Windows.Controls.GridView.GridViewItemContainerGenerator.System.Windows.Controls.Primitives.IItemContainerGenerator.PrepareItemContainer(DependencyObject container)
at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.NestedLayoutStrategy.InsertContainer(Int32 childIndex, UIElement container, Boolean isRecycled)
at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.NestedLayoutStrategy.AddContainerFromGenerator(Int32 childIndex, UIElement child, Boolean newlyRealized)
at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.NestedLayoutStrategy.GenerateNextChild(IItemContainerGenerator generator, Int32 childIndex)
at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.NestedLayoutStrategy.MeasureOverride(Size constraint)
at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MeasureOverride(Size availableSize)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.ContextLayoutManager.UpdateLayout()
at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
I have a User Control with this RadChart defined in xaml:
<
telerik:RadChart
Grid.Row
=
"1"
HorizontalAlignment
=
"Center"
Margin
=
"0,0,0,0"
VerticalAlignment
=
"Center"
Name
=
"radChart"
>
<
telerik:RadChart.SeriesMappings
>
<
telerik:SeriesMapping
LegendLabel
=
"Fin"
>
<
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:SplineSeriesDefinition
ShowItemToolTips
=
"True"
ShowItemLabels
=
"False"
ShowPointMarks
=
"False"
></
telerik:SplineSeriesDefinition
>
</
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:SeriesMapping.ItemMappings
>
<
telerik:ItemMapping
DataPointMember
=
"XValue"
FieldName
=
"XValue"
/>
<
telerik:ItemMapping
DataPointMember
=
"YValue"
FieldName
=
"YValue1"
/>
</
telerik:SeriesMapping.ItemMappings
>
</
telerik:SeriesMapping
>
<
telerik:SeriesMapping
LegendLabel
=
"Avv"
>
<
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:SplineSeriesDefinition
ShowItemToolTips
=
"True"
ShowItemLabels
=
"False"
ShowPointMarks
=
"False"
></
telerik:SplineSeriesDefinition
>
</
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:SeriesMapping.ItemMappings
>
<
telerik:ItemMapping
DataPointMember
=
"XValue"
FieldName
=
"XValue"
/>
<
telerik:ItemMapping
DataPointMember
=
"YValue"
FieldName
=
"YValue2"
/>
</
telerik:SeriesMapping.ItemMappings
>
</
telerik:SeriesMapping
>
<
telerik:SeriesMapping
LegendLabel
=
"Avv"
>
<
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:SplineSeriesDefinition
ShowItemToolTips
=
"True"
ShowItemLabels
=
"False"
ShowPointMarks
=
"False"
></
telerik:SplineSeriesDefinition
>
</
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:SeriesMapping.ItemMappings
>
<
telerik:ItemMapping
DataPointMember
=
"XValue"
FieldName
=
"XValue"
/>
<
telerik:ItemMapping
DataPointMember
=
"YValue"
FieldName
=
"YValue3"
/>
</
telerik:SeriesMapping.ItemMappings
>
</
telerik:SeriesMapping
>
</
telerik:RadChart.SeriesMappings
>
<
telerik:RadChart.DefaultView
>
<
telerik:ChartDefaultView
>
<
telerik:ChartDefaultView.ChartArea
>
<
telerik:ChartArea
PaletteBrushesRepeat
=
"False"
x:Name
=
"chartArea"
>
<
telerik:ChartArea.PaletteBrushes
>
<
SolidColorBrush
Color
=
"Red"
/>
<
SolidColorBrush
Color
=
"Blue"
/>
<
SolidColorBrush
Color
=
"Green"
/>
</
telerik:ChartArea.PaletteBrushes
>
</
telerik:ChartArea
>
</
telerik:ChartDefaultView.ChartArea
>
<
telerik:ChartDefaultView.ChartLegend
>
<
telerik:ChartLegend
Visibility
=
"Hidden"
Width
=
"0"
/>
</
telerik:ChartDefaultView.ChartLegend
>
</
telerik:ChartDefaultView
>
</
telerik:RadChart.DefaultView
>
</
telerik:RadChart
>
In code behind of this User Control I have this property:
public
object
SignalsItemsSource
{
get
{
return
radChart.ItemsSource; }
set
{ radChart.ItemsSource = value; }
}
I set this property with 700 points that start on x from 0:
Dictionary<
int
,
double
> _dicY1 =
new
Dictionary<
int
,
double
>();
Dictionary<
int
,
double
> _dicY2 =
new
Dictionary<
int
,
double
>();
Dictionary<
int
,
double
> _dicY3 =
new
Dictionary<
int
,
double
>();
for
(
int
_ii = 0; _ii < 700; _ii++)
{
Random _random =
new
Random(DateTime.Now.Millisecond);
_dicY1[_ii] = _random.NextDouble();
_dicY2[_ii] = _random.NextDouble();
_dicY3[_ii] = _random.NextDouble();
}
_itemSource = _dicY1.Keys.Select(_k =>
new
{ XValue = _k, YValue1 = _dicY1[_k], YValue2 = _dicY2[_k], YValue3 = _dicY3[_k] }).OrderBy(_v => _v.XValue);
_userControl.SignalsItemsSource = _itemSource;
I have the X-Axis start from negative value, it is possibile configure RadChart to start from 0 or min value of X-Axis?
Greetings,
Paolo