Telerik Forums
UI for WPF Forum
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
441 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
586 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
168 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
180 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
98 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
284 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
758 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
6 answers
345 views
I am binding a DataTable to RadGridView and AutoGenerateColumns="True",
Following are the columns I have,
dt.Columns.Add("Text", typeof(string));
dt.Columns.Add("Number", typeof(double));
dt.Columns.Add("CustomType", typeof(Custom));
Custom is a Enum as follows,
public enum Custom
    {
        One,
        Two,
        Three
    }
Now when I bind the DataTable to RadGridView it displays Data correnctly, but when I try to change the value of custom columns I am not getting dropdown to select a value from Enum instead when I enter in edit mode it displays the Id of the selected Enum.
I tried changing RadGridViewDataColumn to RadGridViewComboBoxColumn in AutoGeraratingColumns Event but not able to make it working.
Please help as its pretty urgent and important.
Attached is the screenshot for the same. 
Thanks in Advance!!!
Ivan Ivanov
Telerik team
 answered on 29 Sep 2015
1 answer
323 views

Hello,

I'm using the RadTreeView with only ONE root node. My ItemsSource is FolderData. FolderData has only one Item - the root node. I'm using

DragDropManager.AddDragOverHandler(this.FolderRadTreeView, new Telerik.Windows.DragDrop.DragEventHandler(OnDragOver), true);

​ for allowing the dropping in special nodes. 

 

How can I disable the dropping next to root node? I want to avoid to have more than one root nodes. Is it possible?

Peshito
Telerik team
 answered on 29 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
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?