Telerik Forums
UI for WPF Forum
4 answers
810 views

I have RadCartesianChart and i am create the AreaSeries view code behind:

RadCartesianChart chart = new RadCartesianChart();
chart.HorizontalAxis = new CategoricalAxis();
chart.VerticalAxis = new LinearAxis();
chart.HorizontalAxis.Visibility = System.Windows.Visibility.Collapsed;
chart.VerticalAxis.Visibility = System.Windows.Visibility.Collapsed;
 
// Get the style
Style smartLabelStyle = (Style)this.Resources["labelStyle"];
 
// Create new labelDefinition and set its DefaultVisualStyle property
ChartSeriesLabelDefinition labelDefinition = new ChartSeriesLabelDefinition()
            {
                DefaultVisualStyle = smartLabelStyle,
                Format = "{0:N2}",
                Margin = new Thickness(-40, 0, 0, 0)
            };
 
MyInstanse = new AreaSeries(); // this is my series
MyInstanse .ShowLabels = true;
MyInstanse .LabelDefinitions.Add(labelDefinition);
 
chart.Series.Add(MyInstanse);
 
And this is my XAML label style:
 <Style x:Key="labelStyle" TargetType="TextBlock">
   <Setter Property="Foreground" Value="Gainsboro" />
   <Setter Property="Background" Value="Transparent" />
</Style>

So all i want to add is border around my Label like in this example:

 http://docs.telerik.com/devtools/wpf/controls/radchartview/features/labels/smart-labels.html

 

Martin Ivanov
Telerik team
 answered on 21 Sep 2015
3 answers
671 views
With standard WPF TabControl it's possible changing tab using standard keyboard shortcut CTRL+TAB to move next and CTRL+SHIFT+TAB to move backward.

Is it possible to do the same with RadTabControl ?

Thanks,

Ivan
Martin Ivanov
Telerik team
 answered on 18 Sep 2015
3 answers
983 views

I've been using some usefull telerik controls for a while, at this point I'm adding some more options voor accessibility to my applications. Narrator or other screen readers are able to read AutomationProperties like Name and HelpText. But when setting these properties on the RadRichTextBox they are not reqognized by windows and the applications reading the AutomationProperties (tool to check: Inspect)

The AutomationMode of the Telerik AutomationManager is already set to FrameworkOnly. When something else is selected all my automationproperties on controls are ignored.

Here is the used xaml:

01.<telerik:RadRichTextBox HorizontalAlignment="Stretch"
02.                        VerticalAlignment="Stretch"
03.                        x:Name="radRichTextBox"
04.                        BorderThickness="0"
05.                        Margin="0,2,0,0"
06.                        DocumentInheritsDefaultStyleSettings="True"
07.                        Focusable="True"
08.                        FontSize="13"
09.                        FontFamily="Segoe UI"
10.                        AutomationProperties.Name="Message for chat">
11.    <i:Interaction.Behaviors>
12.        <behaviors:TelerikRichTextBoxOptionsBehavior />
13.        <behaviors:ChatRadTextBoxBehavior />
14.    </i:Interaction.Behaviors>
15.    <telerik:RadRichTextBox.InputBindings>
16.        <KeyBinding Modifiers="Control"
17.                    Key="Tab"
18.                    Command="{Binding Path=DataContext.NextTabCommand, RelativeSource={RelativeSource AncestorType=Window, Mode=FindAncestor}}" />
19.        <KeyBinding Modifiers="Control+Shift"
20.                    Key="Tab"
21.                    Command="{Binding Path=DataContext.PreviousTabCommand, RelativeSource={RelativeSource AncestorType=Window, Mode=FindAncestor}}" />
22.    </telerik:RadRichTextBox.InputBindings>
23.</telerik:RadRichTextBox>
24.<telerik:TxtDataProvider x:Name="TextDataProvider"
25.                         Text="{Binding PlainContent, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
26.                         RichTextBox="{Binding ElementName=radRichTextBox}"  />

Any suggestions how I can fix this or about what I'm doing wrong?

Boby
Telerik team
 answered on 18 Sep 2015
3 answers
252 views
I am trying to use ItemTemplateSelector for RadOutlookBar because I want the selected Item to ​look different from the non selected. Using ItemTemplate works fine but when I use an ItemTemplateSelector the constructor for ​​that custom DataTemplateSelector is called but method SelectTemplate is never called. I am using Version 2013.3.1316.45.
Peshito
Telerik team
 answered on 18 Sep 2015
1 answer
117 views

Hello,

Does the GanttView control have a provision for undo/redo functionality? If no, is it in the pipeline?

 

Cheers,

Charles

Polya
Telerik team
 answered on 18 Sep 2015
8 answers
196 views
I am trying to check whether Telerik chart Is the best chart for me.
I wrote a small application which shows 1000 line graphs with around 1000 points on each graph.
My performance is really lousy.
Did anyone ever tried to this ?

My Mapping is done like this:
            RadChart1.DefaultView.ChartArea.EnableAnimations = false;
            RadChart1.DefaultView.ChartArea.EnableTransitionAnimations = false;
            RadChart1.DefaultView.ChartArea.AxisY.MaxValue = 100;
           
            
            RadChart1.DefaultView.ChartLegend.MaxWidth = 100;
            LineSeriesDefinition lineSeriesDefinition = new LineSeriesDefinition();
            lineSeriesDefinition.ShowItemLabels = false;
            lineSeriesDefinition.ShowPointMarks = false;
            lineSeriesDefinition.ShowItemToolTips = false;
            ItemMapping itemMappingX = new ItemMapping();
            itemMappingX.DataPointMember = DataPointMember.XValue;
            itemMappingX.FieldName = "DoubleData";
            ItemMapping itemMappingY = new ItemMapping();
            itemMappingY.DataPointMember = DataPointMember.YValue;
            itemMappingY.FieldName = "DoubleData2";
            
            for (int i = 0; i < multiObservableCollection.Count; i++)
            {
                SeriesMapping seriesMapping = new SeriesMapping();
                seriesMapping.CollectionIndex = i;
                seriesMapping.SeriesDefinition = lineSeriesDefinition;
                seriesMapping.ItemMappings.Add(itemMappingX);
                seriesMapping.ItemMappings.Add(itemMappingY);

                this.RadChart1.SeriesMappings.Add(seriesMapping);
                Console.WriteLine(String.Format("Adding series {0}", i+1));
                
            }
Stef
Telerik team
 answered on 18 Sep 2015
4 answers
216 views
I Think there is a Bug in RadNumericUpDown

I have an ErrorTemplate that shows an Info popup when the Control is focused, it dont works with the RadNumericUpDown.

IsFocused is always false.
Kalin
Telerik team
 answered on 18 Sep 2015
1 answer
98 views

I'm trying to set an appointment's default value for TimeMarkerID for new appointments.  When I add code in either the SqlAppointment's constructor or ViewModels' OnAppointmentsCollectionChanged and then hit the save button on the appointment it appears to try and save the appointment twice.  The second appointment has all values blank except for the timemarker default value.  I then get an exception of 'The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value.' because the start/end times are 1/1/0001.

Note: Neither appointment actually saves to SQL.

Is there a way to set the default value of TimeMarkerID?

Thanks,

Brandon

 

Rosi
Telerik team
 answered on 18 Sep 2015
2 answers
131 views

Hi,

I have an AutoCompleteBox where the selection mode is set to single, I wish to set focus on the next control when the enter key is selected when the AutoCompleteBox has a value selected.  Is this possible?

Regards,

Joe

Joe Bohen
Top achievements
Rank 1
 answered on 18 Sep 2015
1 answer
139 views

Hi,

 

I'm using actually a behavior to block the resize feature of an appointment but when I try to resize an appointment, the resize cursor become visible even if the resize feature was blocked!!!

 

Thank's

Alain

Rosi
Telerik team
 answered on 18 Sep 2015
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Missing User
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Missing User
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?