Telerik Forums
UI for WPF Forum
1 answer
127 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
92 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.0K+ 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
154 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
298 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
136 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
148 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
176 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
100 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
5 answers
1.5K+ views
Hello!

I encountered the problem with parent property name which not updates if I modify child properties.
I have a class which overrides ToString() to return format string of its properties. When I change one of that property I fire PropertyChanged but ToString() never calling again and I see old name of parent property on GUI.
But the name is changing and ToString() is calling on each expanding/collapsing or searching.

Is it by desing or I have to do smth extra?

Here is a sample project with Q2 2013 libs to illustrate the problem.
Hristo
Telerik team
 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
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?