Telerik Forums
UI for WPF Forum
4 answers
240 views

Hi, I am using WPF telerik RadCartesanchart and a Radlegend control which is bound to the chart's legend Items property. It is working, but I would like to have the chart in the same way but legends to be displayed in reverse order, Could someone help me on this?

Thank you,

Kannan M

Renier Pretorius
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 02 Oct 2015
8 answers
218 views

Related to a GridView but the cell is a MAskedInput, so not sure which forum it should belong.

 

I want to have a dynamic Mask. My current mask at the moment can take in a phone number or anything. May I ask how abouts do I go doing that? 

 

http://www.telerik.com/forums/dynamically-change-mask

Stefan
Telerik team
 answered on 01 Oct 2015
10 answers
1.5K+ views
We have a complaint from a customer, and aren't sure of how to deal with it.

The problem is that when we're displaying a RadDataForm with IsEnabled="False", they are unable to select the text on the form and copy it to the clipboard. Which, apparently, is a significant problem for them.

It's an easy enough problem to replicate. You can see it in your example at https://github.com/telerik/xaml-sdk/tree/master/DataForm by simply setting IsEnabledFalse="True" on the RadDataForm.

Is there another simple way of making a form readonly, that doesn't cause this problem?
Yoan
Telerik team
 answered on 01 Oct 2015
4 answers
424 views
Ok, I figure I'm missing something blindingly obvious here. I have a class, which in turn has a list of floats within it (there is more in the class including a datetime for the category binding):

public class MyClass
{
    public string aName ...
    public List<float> aList ...
    ....
}

My LineSeries's ItemsSource is bound to an observablecollection of MyClass. Then the ValueBinding is set to "aName". When I do this all is well in the world and I get exactly what I wanted. Now I want to have item in index 1 of the "aList" as a ValueBinding. If I put in "aList[1]" I get an error stating that it can't find the property.

So where am I wrong please?



Dinko | Tech Support Engineer
Telerik team
 answered on 01 Oct 2015
9 answers
578 views
The property is visible in property grid, even after setting the browsable attribute to false.Why?
public partial class Myobjects : Page
    {
        public Myobjects()
        {
            InitializeComponent();
            radPropertyGrid1.Item = new Customer();
             
        }
 
        public class Customer
        {
            [Browsable(false)]
            public int Id { get; set; }
            public string Name { get; set; }
        }
    }

Maya
Telerik team
 answered on 01 Oct 2015
8 answers
165 views
Hi All,

We have a custom field NoteNumberingField inherited from CodeBasedField, overridden CopyPropertiesFrom , CopyPropertiesFromCodeExpression and
BuildCodeOverride.

NoteNumberingField shows a number in the span and it is rendered below in the xaml. 

<t:FieldRangeStart AnnotationID="2">
<t:NoteNumberingField DateTimeFormatting="" DisplayMode="Result" GeneralFormatting="" NumericFormatting="" Text="1" xmlns:t="clr-namespace:KPMG.TMT.Trinity.Documents.TelerikWpf.Fields;assembly=KPMG.TMT.Trinity.Documents.TelerikWpf" />
</t:FieldRangeStart>
<t:Span FontFamily="Comic Sans MS" FontSize="34.67" Text="1" />
<t:FieldRangeEnd AnnotationID="2" />

When I change the font size of the text from the telerik font size dropdown, I see the overridden method CopyPropertiesFrom get fired and this copies the properties.

But when I change the font size of the same span by code, I dont see the CopyPropertiesFrom being fired as a result I lose all the properties being modified on the span.

So when I say UpdateAllFields on Richtextbox it bring back the default style of the text rather than the previous style what I changed.

In essence when I call RadDocumentEditor.UpdateAllFields, span (inside the field) properties are retained if I have changed using telerik font size drop down, 
but I lose all properties if span properties are changed by code.

Could some one help me in this issue please ? 

Thanks in Advance


Tanya
Telerik team
 answered on 30 Sep 2015
3 answers
173 views

Hello

I have a problem with recurrence pattern.

Appointments are loaded for a selected timespan (for example April 2015).

The problem is, that I don't see any ​recurrence-​appointments, when the main-​appointments ​are not in the ​selected timespan, because main-appointments are not loaded and therefore the recurrence-appoin​tments by recurrencerule are also not loaded.

How can I detect all ​recurrence-appointments for the selected timespan without loading all the main-appointments?

 

Sincerly

A.Kasar

Nasko
Telerik team
 answered on 30 Sep 2015
1 answer
91 views

Hello,

I created a chart view with two trends, each trend has a time series data set of 30000 data points.

It is very slow to render the trends, and is also very slow to zoom in and out.

Is there a way to optimize the render for this kind of data?

 Thanks

Martin Ivanov
Telerik team
 answered on 30 Sep 2015
3 answers
275 views

Hi, dear support.

I am trying to set a custom tooltip for when the mouse is hovering over Gantt Events.

Here is fragment of my code:

...

 <Grid DataContext="{StaticResource SchedulerViewModel}">
        <controls:RadGanttView x:Name="ganttView"  

            TasksSource="{Binding Tasks}"
            MouseDoubleClick="ganttView_MouseDoubleClick" DataContext="{Binding Tasks}" SelectionChanged="ganttView_SelectionChanged">

            <controls:RadGanttView.Resources>
                <Style TargetType="{x:Type controls:EventContainer}">
                    <Setter Property="Background" Value="{Binding OriginalEvent.Background}"/>
                    <Setter Property="ToolTip" Value="{Binding OriginalEvent.TaskFullDescription}"/>
                </Style>
                
            </controls:RadGanttView.Resources>

...

The class property TaskFullDescription bound to the tooltip provides a string with all task details. The property Background provided in the same class - works and changes the Event container background, but the property TaskFullDescription has no effect and only the default tooltip is shown.

What is the proper way of customising a tooltip, when it needs to set a text provided by a method.  

 

Thank you, Sergey

Nasko
Telerik team
 answered on 30 Sep 2015
4 answers
749 views

The code is here.

                        <telerik:RadCartesianChart Zoom="10,1" MaxZoom="20,1000" PanOffset="-10000,0" x:Name="CurveCartesianChart" Palette="Flower" Margin="10" MouseRightButtonDown="CurveCartesianChart_MouseRightButtonDown">
                            <telerik:RadCartesianChart.HorizontalAxis>
                                <telerik:CategoricalAxis ShowLabels="True" LabelInterval="5"></telerik:CategoricalAxis>
                            </telerik:RadCartesianChart.HorizontalAxis>
                            <telerik:RadCartesianChart.VerticalAxis>
                                <telerik:LinearAxis ShowLabels="True"></telerik:LinearAxis>
                            </telerik:RadCartesianChart.VerticalAxis>
                            <telerik:RadCartesianChart.SeriesProvider>
                                <telerik:ChartSeriesProvider Source="{Binding CurveDataDicList}">
                                    <telerik:ChartSeriesProvider.SeriesDescriptors>
                                        <telerik:CategoricalSeriesDescriptor CategoryPath="XValue"
                                                             ValuePath="YValue"
                                                             ItemsSourcePath="Points">
                                            <telerik:CategoricalSeriesDescriptor.Style>
                                                <Style TargetType="telerik:LineSeries">
                                                    <Setter Property="StrokeThickness" Value="2"/>
                                                    <Setter Property="PointTemplate">
                                                        <Setter.Value>
                                                            <DataTemplate>
                                                                <Ellipse Height="7" Width="7" Stroke="White" Fill="{Binding LineStroke, Mode=TwoWay}"/>
                                                            </DataTemplate>
                                                        </Setter.Value>
                                                    </Setter>
                                                    <Setter Property="LegendSettings">
                                                        <Setter.Value>
                                                            <telerik:SeriesLegendSettings Title="{Binding Name}" />
                                                        </Setter.Value>
                                                    </Setter>
                                                           
                                                </Style>
                                            </telerik:CategoricalSeriesDescriptor.Style>
                                        </telerik:CategoricalSeriesDescriptor>
                                    </telerik:ChartSeriesProvider.SeriesDescriptors>                                   
                                </telerik:ChartSeriesProvider>
                               
                            </telerik:RadCartesianChart.SeriesProvider>                          
                           
                        </telerik:RadCartesianChart>

I want the LineStroke here in the pointtemplate is the line's color, but I can't get it.

Nannan
Top achievements
Rank 1
 answered on 30 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
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?