Telerik Forums
UI for WPF Forum
1 answer
151 views
Hi,

I need some code which can render a Scatter line plot with x and y value and both the axis are logarithmic.

Thanks & Regards,
Sandeep Kumar Vidiyala
Martin Ivanov
Telerik team
 answered on 13 Nov 2014
1 answer
209 views
I am using Rad PanelBar.I want to show all item on load the page.That means need to automatically expand the items.

Here is my code

<telerik:RadPanelBar BorderBrush="#F0F0F0" Margin="-66,57,1195,-3">
          <telerik:RadPanelBarItem  DropPosition="Inside" Header="DEVICE" Background="#FF42545E" BorderBrush="#FF42545E" FontSize="14" >
              <telerik:RadPanelBarItem  Header="Add new Device" Foreground="Black" Cursor="Hand" FontSize="14" Margin="0,10,0,0" />
              <telerik:RadPanelBarItem Header="Print" Foreground="Black" Cursor="Hand" FontSize="14" Margin="0,10,0,0" />
              <telerik:RadPanelBarItem Header="De-allocate All" Foreground="Black" Cursor="Hand" FontSize="14" Margin="0,10,0,0" />
          </telerik:RadPanelBarItem>
      </telerik:RadPanelBar>
How can we do this..Can any one help?
Martin Ivanov
Telerik team
 answered on 13 Nov 2014
1 answer
82 views
Good evening. 

i'm using a BusyIndicator in a page that contain a datagrid. When the busyIndicator start( i set isBusy property = true) if i have a selectedItem != null in the datagrid it became null.
Everytime i start the busyIndicator i lose the selectedItem in the Datagrid.

Anyone had already see this problem ?

I'm using the busyIndicator in a c# wpf enviroment with Framework 4.0

thanks for your time.

Mirko
Nasko
Telerik team
 answered on 13 Nov 2014
3 answers
160 views
Hi,
we are looking for a WPF UI - package. Telerik has many good features but a very bad performance on our tablets.
I tried your demo application on an Acer W701 (Intel i5 u). Moving content with touch is slow as long as the touch lasts. After releasing the content scrolls nearly smoothly by "inertia". (DataGrid, Gantt, Chart, Diagram etc.)
Our main target is out tablet platform. I can not reproduce this behavior at your compititors and at this time it would lead against Telerik.
Nick
Telerik team
 answered on 12 Nov 2014
3 answers
62 views
I have a RadGridView that is working nicely, but I'm having trouble with the Expression Column:

1) I let the Expression Cloumn show via right mouse click. It shows and is empty
2) I click on the header of the expression column 
3) the GridView wnats to sort the empty Expression column and crashes

How do I prevent this? GridView should be stable out of the box, no matter what the user clicks.


bei System.Linq.Expressions.Expression.Lambda(Expression body, String name, Boolean tailCall, IEnumerable`1 parameters)
bei System.Linq.Expressions.Expression.Lambda(Expression body, ParameterExpression[] parameters)
bei Telerik.Windows.Data.Expressions.SortDescriptorCollectionExpressionBuilder.Sort()
bei Telerik.Windows.Data.QueryableExtensions.Sort(IQueryable source, IEnumerable`1 sortDescriptors)
bei Telerik.Windows.Data.QueryableExtensions.Sort(IQueryable source, SortDescriptorCollection sortDescriptors)
bei Telerik.Windows.Data.QueryableCollectionView.get_FilterAndSortQueryableSourceCollection()
bei Telerik.Windows.Controls.GridView.GridViewDataControl.CreateAggregateResults()
bei Telerik.Windows.Controls.GridView.GridViewDataControl.CalculateAggregates()
bei Telerik.Windows.Controls.GridView.GridViewDataControl.OnItemsCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
bei Telerik.Windows.Controls.DataControl.OnItemsCollectionChangedDispatch(Object sender, NotifyCollectionChangedEventArgs e)
bei System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
bei Telerik.Windows.Data.DataItemCollection.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
bei Telerik.Windows.Data.DataItemCollection.OnCollectionViewCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
bei Telerik.Windows.Data.Listener`2.ReceiveWeakEvent(Object sender, TArgs args)
bei Telerik.Windows.Data.WeakEvent.WeakListener`1.Handler(Object sender, TArgs args)
bei Telerik.Windows.Data.QueryableCollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
bei Telerik.Windows.Data.QueryableCollectionView.RefreshOverride()
bei Telerik.Windows.Data.QueryableCollectionView.RefreshInternal()
bei Telerik.Windows.Data.QueryableCollectionView.RefreshOrDefer()
bei Telerik.Windows.Data.QueryableCollectionView.InvalidatePagingAndRefresh()
bei Telerik.Windows.Data.QueryableCollectionView.OnSortDescriptorsCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
bei System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
bei System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
bei Telerik.Windows.Data.RadObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
bei Telerik.Windows.Data.ObservableItemCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
bei Telerik.Windows.Data.RadObservableCollection`1.ResumeNotifications()
bei Telerik.Windows.Data.CollectionHelper.Reset(IEnumerable source, IList target, Func`2 itemConverter)
bei Telerik.Windows.Data.CollectionHelper.Reset(IEnumerable source, IList target)
bei Telerik.Windows.Data.ObservableCollectionManager.HandleCollectionChanged(IList sender, NotifyCollectionChangedEventArgs args)
bei Telerik.Windows.Data.ObservableCollectionManager.Telerik.Windows.Data.IWeakEventListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.ReceiveWeakEvent(Object sender, NotifyCollectionChangedEventArgs args)
bei Telerik.Windows.Data.WeakEvent.WeakListener`1.Handler(Object sender, TArgs args)
bei System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
bei Telerik.Windows.Data.RadObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
bei Telerik.Windows.Data.ObservableItemCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
bei Telerik.Windows.Data.RadObservableCollection`1.ResumeNotifications()
bei Telerik.Windows.Controls.GridView.GridViewDataControl.PerformSorting(GridViewSortingEventArgs sortingArgs)
bei Telerik.Windows.Controls.GridView.GridViewDataControl.<>c__DisplayClass9b.<Sort>b__9a()
bei Telerik.Windows.Controls.CursorManager.PerformTimeConsumingOperation(FrameworkElement frameworkElement, Action action)
bei Telerik.Windows.Controls.GridView.GridViewDataControl.Sort(GridViewColumn column, Boolean appendToExisting)
bei Telerik.Windows.Controls.GridView.GridViewHeaderCell.RequestSort(Boolean appendToExisting)
bei Telerik.Windows.Controls.GridView.GridViewHeaderCell.PerformUserSort()
bei Telerik.Windows.Controls.GridView.GridViewHeaderCell.OnMouseLeftButtonUp(MouseButtonEventArgs e)
bei System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
bei System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
bei System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
bei System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
bei System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
bei System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
bei System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
bei System.Windows.Input.InputManager.ProcessStagingArea()
bei System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
bei System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
bei System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
bei System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
bei System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
bei MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
bei System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
bei System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
bei System.Windows.Threading.Dispatcher.Run()
bei System.Windows.Application.RunDispatcher(Object ignore)
bei System.Windows.Application.RunInternal(Window window)
bei System.Windows.Application.Run(Window window)
bei System.Windows.Application.Run()
bei Roka3.App.Main() in C:\RZVN\Roka3\Roka3\obj\x86\Debug\App.g.cs:Zeile 0.
bei System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bei System.Threading.ThreadHelper.ThreadStart()
Dimitrina
Telerik team
 answered on 12 Nov 2014
2 answers
191 views
Hi
I have a RadGridView bound to a collection and I am adding the columns and their bindings manually in code-behind.
One of the columns has a CellStyleSelector set which is checking the cell value for a negative value (and assigning a style to change the foreground color to red).
This is all working fine when entering values into the grid (positive values are black and negative are red).
However when the grid is initially loaded with data and the columns added, the negative numbers are black.
This is happening because when the style selector is called the first time (after the data has loaded and columns added) the GridViewCell Value property is null.
If I were to then click in a cell to make it go into edit mode and press enter, the style selector is called again - this time with a valid value - and the correct style is applied.
As a test, if I refresh the bindings (notify all properties changed) on a timer after say 1 second, then the style selector is called again with correct values etc.
So my question is: why is GridViewCell Value property null the first time and how can I overcome this?

Thanks,
Mike.

Mike
Top achievements
Rank 1
 answered on 12 Nov 2014
2 answers
375 views
Hi Techies,

I do not have any run time issue but when i load the screen, i am getting the Below error message in Custom Validation part.

System.Windows.Data Error: 17 : Cannot get 'Item[]' value (type 'ValidationError') from '(Validation.Errors)' (type 'ReadOnlyObservableCollection`1'). BindingExpression:Path=(0)[0].ErrorContent; DataItem='RadDatePicker' (Name='EventStartDateTimePicker'); target element is 'RadDatePicker' (Name='EventStartDateTimePicker'); target property is 'ToolTip' (type 'Object') ArgumentOutOfRangeException:'System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.

I have to resolve this issue. Why this above error is displaying? Below i have given the Xaml Part. This is what i am using

<tk:RadDatePicker Grid.Row="3" Grid.Column="0" TabIndex="2" Padding="3,2,0,0" 
Width="85" Height="25" DateTimeWatermarkContent=" " FontSize="11.5" 
x:Name="EventEndDateTimePicker" FontFamily="MyriadPro-Regular" 
IsTooltipEnabled="False" SelectedValue="{Binding RelativeSource={RelativeSource 
FindAncestor, AncestorType={x:Type UserControl}}, 
Path=DataContext.ViewData.EventDetail.EndDate,UpdateSourceTrigger=PropertyChanged
Mode=TwoWay,NotifyOnSourceUpdated=True,ValidatesOnDataErrors=True}" 
self:RadDatePickerHelper.IsFreeTextAllowed="True" 
self:RadDatePickerHelper.ShortDateFormat="MM/dd/yyyy" 
lib:Event.Binding="SelectionChanged.[DateChangeValidation]" 
compass:RadDateTimePickerHelper.EnableCustomFeatures="True" 
compass:RadDateTimePickerHelper.EnableIsCurrentDateRequiredOnDoubleClick="False" 
AllowDrop="False"><BR><tk:RadDatePicker.Style><BR><Style 
TargetType="{x:Type tk:RadDatePicker}" BasedOn="{StaticResource 
DatePickerStyle}"><BR><Style.Triggers><BR><Trigger 
Property="Validation.HasError" Value="True"><BR><Setter Property="ToolTip" 
Value="{Binding RelativeSource={RelativeSource Self}, 
Path=(Validation.Errors)[0].ErrorContent}" 
/><BR></Trigger><BR></Style.Triggers><BR></Style><BR></tk:RadDatePicker.Style><BR></tk:RadDatePicker><BR><BR>

​
Please help me to get ride of this binding error on loading the screen.

regards
Thiruppathi V
Thiru
Top achievements
Rank 1
 answered on 12 Nov 2014
3 answers
87 views
Hi, I'm having troubles with Annotations zindex and VisualStudio2013 theme.
With Zindex=50 the alternate row appear in front of annotation as shown in the image attached.

The sample show the second last sample in your documentation: http://www.telerik.com/help/wpf/radtimeline-features-annotations.html
Tsvetie
Telerik team
 answered on 12 Nov 2014
2 answers
124 views
What does PreviewEditorKeyDown do?

The documentation says nothing.
BTW: Telerik ducumentation is autogeneratedn and in many cases you do not find the infos you need. Not good.
Maurizio
Top achievements
Rank 2
 answered on 12 Nov 2014
4 answers
251 views
Hello, 18 months ago I inquired about placing a custom control in a cell here:(http://www.telerik.com/forums/custom-control-in-cell), and you indicated it was not yet implemented but is a high priority here(http://www.telerik.com/forums/replace-cell-editor). Is this possible yet, or is it still being worked on?

Thanks,
Scott
Nikolay Demirev
Telerik team
 answered on 12 Nov 2014
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?