Telerik Forums
UI for WPF Forum
2 answers
302 views
This error is happening consistently on plotting series in "one of the user machine." Its working fine on other machines..

We are using Telerik.Windows.Controls.Charting, File version is 2013.1.220.40.
This also seems to be happening when HP Unified Function Testing tool is on.

Is this a known issue? Any help is appreciated.

Method: App.HandleException
Exception Method: Enumerable.SingleOrDefault
Message: Sequence contains more than one element


Stack Trace:    at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source)
   at Telerik.Windows.Automation.Peers.ScatterLineSeriesAutomationPeer.GetChildrenCore()
   at System.Windows.Automation.Peers.AutomationPeer.EnsureChildren()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateChildrenInternal(Int32 invalidateLimit)
   at System.Windows.Automation.Peers.AutomationPeer.UpdateChildren()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.ContextLayoutManager.fireAutomationEvents()
   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)"



Peshito
Telerik team
 answered on 20 Jan 2014
1 answer
142 views
Hi Team!

I have set this property on my masked input controls

this.SelectionOnFocus = Telerik.Windows.Controls.SelectionOnFocus.SelectAll;

And it works BUT only when I click inside the mask area....
If I click outside the mask area of say my textbox, it does nothing, makes user think he can't even type in that control

How can I make it do a selectAll even if user clicks outside the mask area of the control? Otherwise like I said they will think they can't type in the control. 
Pavel R. Pavlov
Telerik team
 answered on 20 Jan 2014
1 answer
110 views
I just want to let you know about a bug that I found and I do not really see how to report a bug (and not a feature suggestion) in the issue tracker.

I have a RadTreeListView.
I want to click on an item on the list to expand it.
So that I implemented the following:

<t:RadTreeListView x:Name="radTreeListView" AutoGenerateColumns="False" SelectionChanging="radTreeListView_SelectionChanging">
 
    <t:RadTreeListView.ChildTableDefinitions>
        <t:TreeListViewTableDefinition ItemsSource="{Binding Children}" />
    </t:RadTreeListView.ChildTableDefinitions>
 
    <t:RadTreeListView.Columns>
        <t:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name" IsReadOnly="True" >
            <t:GridViewDataColumn.CellTemplate>
                <DataTemplate>
                    <Label Content="{Binding Name}"></Label>
                </DataTemplate>
            </t:GridViewDataColumn.CellTemplate>
        </t:GridViewDataColumn>
    </t:RadTreeListView.Columns>
 
</t:RadTreeListView>

and a handler:

private void radTreeListView_SelectionChanging(object sender, SelectionChangingEventArgs e)
{
    var selectedItem = e.AddedItems.FirstOrDefault();
 
    e.Cancel = true;
 
    this.radTreeListView.ExpandHierarchyItem(selectedItem);
}

This causes an exception when I start the application (basically, when the selection is changing).

Removing e.Cancel = true line solves the issue, but well... if I want to cancel this event, then the app crashes.
Vera
Telerik team
 answered on 20 Jan 2014
2 answers
1.1K+ views
Hi everyone,

I am developing a WPF application in my company.
I use RadControls for WPF Q3 2013 trial version.

I have written a sample project made up of a MainWindow and a UserControl.
The MainWindow contains a Button and I have written an handler to the Button's Click event.

Here is the MainWindow's code-behind :

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Telerik.Windows.Controls;
 
namespace MessageBoxAutoClosed
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }
 
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            UserControl1 l_userControl = new UserControl1();
 
            RadWindow l_hostWindow = new RadWindow()
            {
                Owner = System.Windows.Application.Current.MainWindow,
                WindowStartupLocation = WindowStartupLocation.CenterOwner
            };
 
            ScrollViewer l_scrollViewer = new ScrollViewer();
            l_scrollViewer.VerticalScrollBarVisibility = ScrollBarVisibility.Auto;
            l_scrollViewer.HorizontalScrollBarVisibility = ScrollBarVisibility.Auto;
            l_scrollViewer.Content = l_userControl;
            l_hostWindow.Content = l_scrollViewer;
 
            l_hostWindow.Show();
            //l_hostWindow.Close();
 
            MessageBox.Show("MessageBox", "MessageBox", MessageBoxButton.OK, MessageBoxImage.Information, MessageBoxResult.OK);
        }
    }
}

I do not have to click the OK button in the MessageBox to close it because the MessageBox is automatically closed.
Why ?

The MessageBox is not automatically closed when the following line is missing : l_hostWindow.Close();

Thank you in advance for your help
Kalin
Telerik team
 answered on 20 Jan 2014
1 answer
171 views
Hi,

Currently I have a candlestick chart as a usercontrol imbedded in a dock control. everytime I resize my min window, the chart resizes as well, causing it to become more and more compressed.

Instead, I would much prefer if my chart does not automatically resize with the main window, but instead, is clipped. In this case, the user would have to use the scroll bar to view the clipped part of the chart.

Can anyone suggest a way that this may be done, or point me in the direction of a WPF example? 

Thanks in advance.
Peshito
Telerik team
 answered on 20 Jan 2014
2 answers
310 views
Hi buddy, 
I  have a question about Spreadsheet with mvvm ,because i use mvvm pattern so i need to know how to apply spreadsheet  with dynamic data on mvvm pattern 
Seycan
Top achievements
Rank 1
 answered on 20 Jan 2014
0 answers
152 views
I have telerik RadGridView with columns "status", "Name" and a RadButton with name "Update", when the grid is loaded the rows will have different status like "pending" "unread" and "cleared". When user selects a row with status pending and clicks on button "update" the status will change from pending to cleared. The issue is when we set a filter on status column with "pending" only rows with pending status are shown, here when user selects a row and click on update the status changes to "cleared", as the filter is already set, the row with the cleared status also shown. As we update the row it is not removed from the grid.
Gani
Top achievements
Rank 1
 asked on 17 Jan 2014
2 answers
158 views

Hello

I would like to use the RadDataForm as interface for a invoice manager.

Here I would like to use the RadGridView to enter a list of products. If the user clicks the escape or enter keyboard button inside the RadGridView, the the commit or cancel action gets executed of the RadDataForm. How can we prevent this?

Thank you!

Ivan Ivanov
Telerik team
 answered on 17 Jan 2014
2 answers
193 views
I would like to be able to Load (and Save) a diagram by initiating the operation in the ViewModel.

Currently, I need to inherit from RadDiagram and override the OnOpenCommandExecuted method to have custom Load behaviour. This is fine, except that I would like to Clear the diagram before Loading the saved XML. I can't use the RadDiagram.Clear() method when using GraphSource, however.

Short of implementing my own Serialize/Deserialize in ViewModels, is there a nice way to achieve this currently?

Thanks
Terry
Top achievements
Rank 1
 answered on 17 Jan 2014
1 answer
108 views
I've got an empty WPF app with only a RadRichTextBox in there.So my XAML looks like:

<Grid>
    <t:RadRichTextBox />
</Grid>

1. I run the application.
2. I type "bug" to the rich text box.
3. I double click on the word "bug" to select the whole word (double click it with mouse, do not select with keyboard)
4. I press Shift and I keep it pressed.
5. I start to type "BUG"

After "U" is typed I get an InvalidOperationException.

Do you have the same problem? Do you know is it a known bug? Is there any fix expected to it?
My build version is: 2013.3.1204.45
Missing User
 answered on 17 Jan 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
InlineAIAssistant
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?