Telerik Forums
UI for WPF Forum
3 answers
200 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
83 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
239 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
435 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
112 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
185 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
297 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
5 answers
241 views
Hello, I am trying to color the CandleSticks within a RadCartesianChart but the code does not seem to be working. This is the code:

<telerik:RadCartesianChart.Series>

    <telerik:CandlestickSeries ItemsSource="{Binding currentDataSource}"
           OpenBinding="Open"
           HighBinding="High"
           LowBinding="Low"
           CloseBinding="Close" 
           CategoryBinding="FromDate"
           TrackBallInfoTemplate="{StaticResource trackBallInfoTemplate}">

        <telerik:CandlestickSeries.DefaultVisualStyle>
            <Style TargetType="telerik:Candlestick">
                <Setter Property="StrokeThickness" Value="2" />
                <Setter Property="UpStroke" Value="Yellow" />
                <Setter Property="DownStroke" Value="Cyan" />
                <Setter Property="UpFill" Value="Green" />
                <Setter Property="DownFill" Value="Red"/>
            </Style>
        </telerik:CandlestickSeries.DefaultVisualStyle>
    </telerik:CandlestickSeries>

</telerik:RadCartesianChart.Series>

Also, is it possible to have different color for some of the candlesticks according to a custom logic? For example, if the value == 200, the candlesticks should be green, otherwise red. Thanks

Peshito
Telerik team
 answered on 12 Nov 2014
4 answers
135 views
Hello,

I'am on edge of exasperation. XAML-DSK don't work. Demos don't work. Copy+Paste from web+forum don't work.

Isn't there a simple AND complete example working solution with Northwind sql database and any (preferably GridView)?

I simply want to 1. UNZIP, 2. Open in VS and 3. Adjust SQL connection sting in app.config and 4. RUN!

Thank you!
SailorChris
Top achievements
Rank 1
 answered on 11 Nov 2014
4 answers
711 views
Hi,

In the RadRichTextBox I'm working with, I am listening to the SelectionChanged event when the user selects a piece of a string. I need to determine, within the span.Text in which the string is located, what is the position (index) within the Span.Text of the selected string.

So, for example, if the span.Text contains "This is a piece of text"

and the user selects "piece"

I want to write code that returns "10", which is the index of "piece" within "This is a piece of text"

I have tried various properties that I hoped would get me this number - eg

var range = t.Document.Selection.Ranges.First;
if (range != null)
{

       string curSpanText = t.Document.CaretPosition.GetCurrentSpanBox().AssociatedSpan.Text;
       string s = t.Document.Selection.GetSelectedText();
       int start = range.StartPosition.GetCurrentPositionInSpan();
       int end = range.EndPosition.GetCurrentPositionInSpan();
}

I hoped that "start" above would give me what I needed but it doesn't.

s gets me the string I had selected. curSpanText is the entire span's Text property. How do I find the position of s within curSpanText?

Thanks
  
Elizabeth
Top achievements
Rank 1
 answered on 11 Nov 2014
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?