Telerik Forums
UI for WPF Forum
12 answers
623 views
Hello,

When a property grid cell is bound to a collection object, currently the comobox for it is displayed empty.
Can I have this show the number of items the object holds?
Thanks!!
Maya
Telerik team
 answered on 26 Dec 2013
1 answer
120 views
Hi,

We currently have a problem with the RichTextBox when someone tries to type over selected text. If the text is selected and the first letter they type is a capital letter it will sometimes re-select text and any further typing will crash the program with this error. 

"inline does not belong to this document."

When typing all lowercase with selected text this doesn't seem to happen. It also appears to work properly when using delete or backspace and then typing the text.

If someone could let me know if this is a known issue or if there is a solution to this problem it would be greatly appreciated.

Thanks,
Aaron
Boby
Telerik team
 answered on 26 Dec 2013
3 answers
311 views
Hello Telerik team,

I am wondering is there a way to remove blue lines that appear inside grid of RadDiagram? I am using Windows 8 implicit theme

Thanks in advance
Nikola
Top achievements
Rank 1
 answered on 25 Dec 2013
1 answer
127 views
Hello;

I am working with telerik WPF tileview and Prism framework to generate a dashboard with different views content in large, small & normal view.
I would like to save the position of the tile view if the user reorder the different views so that this order is used in the next connexion. How to do that ? I search many posts and the given solutions are quite simples since they deal with tileview without prism framework.
Please let me know if it is possible to do this in my context  ?

Thanks
Pavel R. Pavlov
Telerik team
 answered on 25 Dec 2013
2 answers
78 views
Hello,

I'm working with a RadDataFilter and a GridView,  in the following manner:
XAML :
<telerik:RadDataFilter Grid.Row="0" x:Name ="radDataFilter_Report" Source="{Binding TaskReportsItemsSource.View }" />
<dataGrid:ThemeDataGrid  Grid.Row="1" ItemsSource ="{Binding FilteredSource, ElementName= radDataFilter_Report}">

Where as in the ViewModel:
private readonly ObservableCollection<IDerivedClass> TaskReportsItemsSource = new ObservableCollection<IDerivedClass>();

and the DerivedClass is:

public interface IDerivedClass: IBaseClass1, IBaseClass2, IEquatable<IBaseClass2>, IBaseClass3, INotifyPropertyChanged
{
ISomthing Something {get;set;}
bool IsMessageUnread {get;set;}
Enum1 ManagerDecision  {get;set;}
Enum2 Status  {get;set;}
}
In the filter fields list I can only see the fields from IDerivedClass and none of any of the base classes

How can I get all the fields ( the derived  and all base classes)?
Thanks a lot,
Liora

Liora
Top achievements
Rank 1
 answered on 25 Dec 2013
1 answer
94 views
I have a problem working with a LineSeries in a RadCartesianChart: my binding series has 10 values, but the chart only shows 1 of them.

What could be the problem in my code?

XAML:
<telerik:RadCartesianChart x:Name="chPrueba" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="972" Height="477">
 
            <telerik:RadCartesianChart.Grid>
                <telerik:CartesianChartGrid
                                    MajorLinesVisibility="XY"
                                    StripLinesVisibility="Y"
                                    MajorXLineDashArray="10, 5"
                                    MajorXLinesRenderMode="All">
                    <telerik:CartesianChartGrid.YStripeBrushes>
                        <SolidColorBrush Color="#FFDFDFDF" Opacity="0.3" />
                        <SolidColorBrush Color="Transparent" />
                    </telerik:CartesianChartGrid.YStripeBrushes>
                </telerik:CartesianChartGrid>
            </telerik:RadCartesianChart.Grid>
 
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis
                                    Minimum="0"
                                    Maximum="100"  />
            </telerik:RadCartesianChart.VerticalAxis>
 
            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:CategoricalAxis LabelOffset="0" LastLabelVisibility="Visible"
                                         LineThickness="1" MajorTickOffset="0" MajorTickInterval="1"
                                         PlotMode="BetweenTicks" TickThickness="1" ZIndex="0" LabelFitMode="Rotate"/>
            </telerik:RadCartesianChart.HorizontalAxis>
 
            <telerik:LineSeries x:Name="chLineSeries" CategoryBinding="fecha" ValueBinding="valor" AllowSelect="True" Stroke="#FF0DAE0D"/>
 
            <telerik:RadCartesianChart.Behaviors>
                <telerik:ChartTrackBallBehavior ShowIntersectionPoints="True"/>
            </telerik:RadCartesianChart.Behaviors>
 
 
        </telerik:RadCartesianChart>


Data Class:
public class vAbortos
    {
        public Double valor { get; set; }
        public String fecha {get; set;}
 
        public vAbortos()
        {
        }
    }

Creating the data and loading it to the chart:
public void WindowLoaded()
        {
            List<vAbortos> valores = new List<vAbortos> { };
 
            Random rnd = new Random();
            DateTime fc = new DateTime(2013, 12, 1);
            for (int i = 0; i <= 9; i++)
            {
                vAbortos ab = new vAbortos();
                ab.fecha = fc.AddDays(1).ToShortDateString();
                fc.AddDays(1);
                ab.valor = rnd.NextDouble() * 10;
 
                valores.Add(ab);
            }
 
            this.chPrueba.Series[0].ItemsSource = valores;
 
            (chPrueba.VerticalAxis as LinearAxis).Minimum = 0;
            (chPrueba.VerticalAxis as LinearAxis).Maximum = 15;
        }



Pavel R. Pavlov
Telerik team
 answered on 24 Dec 2013
1 answer
95 views

 Hi,
  
We are using RadMaskedTextBox in our application. We have faced Round Off issues with RadMaskedTextBox.

 Below are the issues :-

1)When we are entering values into RadMaskedTextBox , we can only enter the number of decimals in the Mask and it does not round, if we continue to type numbers, the last digit will keep changing to whatever we are typing.

2)
When we copy and paste values from say Excel or Notepad that contain more digits after the decimal than what we set in the mask. , the value is not rounded, instead, the last digit in the number being pasted is the last digit displayed. i.e. if we  paste the value 1.10003 and we have selected 2 decimal places in 1.2.2, the value will be displayed as 1.13, not 1.10 which is the rounded value.

Please help us  to figure out this issues.

Thanks.
Wayne
Pavel R. Pavlov
Telerik team
 answered on 24 Dec 2013
1 answer
112 views

Greetings!  I have been in SQL world for the last few years,  When I last worked with on a Windows project, I used WInForms with Grids, DataSources, DataAdapters, etc.  Working with a grid was easy - there was a design-time "wizard" interface to select columns from the data source, set the size, styles, and other attributes and upon exiting the design interface it emitted the code on the form. 


Now, I am in VS2012, with a WPF project.  I have RadControls for WPF v2013.3.1204.45.  The data is SQL CE 4.0 and I have created an EF model for it.  On my first window, I added a RadGridView and cannot figure out how to connect it to my data at design time.  I can go into the code-behind and set ItemsSource to a LINQ query - so at runt-time I get a grid (with all columns, not well styled).



1. Is there such a design-time interface in RadControls for WPF (specifically the GridView)?  I can't believe everyone is really doing all of this by hand (either in designer or code-behind) - there are so many attributes that can be set (who wants to memorize all the row style properties)?



2. How do I bind the data source so I can see the schema (and maybe sample data?!) at design time?  I tried a RadEntityFrameworkDataSource but just couldn't figure out the syntax (yes, I looked at the demos - they assume a lot of knowledge).  I know have a lot to learn with EF, but I thought I would have an easy time with the controls...



Best,

Scott



Yoan
Telerik team
 answered on 24 Dec 2013
5 answers
187 views

I have a RadCartesianChart and want to register for ContextMenuOpening. When I do it in XAML my event handler gets called. If I do in code (e.g. MainWindow_Loaded: Chart.ContextMenuOpening += Chart_ContextMenuOpening) it is not called.


I got a small repro too.



Markus

Petar Marchev
Telerik team
 answered on 24 Dec 2013
1 answer
144 views
Here i have mentioned implementation of code. i created a custom control 'VSRadCartesianChart' and implemented some dependency control in  it and generate the X,Y axis and line series are dynamically.

i applied Zoom&Par bar visible to both axis and applied style that that it only visible when zoom & par when applied.(other wise in normal case, it does it show).

Also , I have implemented 'CartesianGrid' in it and applied Y axis line visibility.


problem which are facing:
1. setting which applied in cartesian grid is not shown. it doesn't apply any style in it. (see the attached image)
2. Y-axis zoombar is not shown. 
3. TargetType="chartView:PanZoomBar" style setting is not applied (controlling the visiblity of panzoombar based in property in viewmodel)


could you please give your feedback. it is urgent requirement.





<local:VSRadCartesianChart x:Name="Chart1"    Zoom="{Binding Zoom }" PanOffset="{Binding PanOffset}"  local:ChartViewDragDropBehaviour.IsEnabled="True" AllowDrop="True"   >
                               
 <local:VSRadCartesianChart.Resources>
                                    <Style TargetType="chartView:PanZoomBar">
                                        <Setter Property="Visibility" Value="{Binding Path=IsZoomBarVisible Converter={StaticResource BoolToCollapsedConverter} }" />
                                    </Style>

<Style x:Key="BorderStyle" TargetType="Border">
                                        <Setter Property="Background" Value="#1B9DDE" />
                                    </Style>
  </local:VSRadCartesianChart.Resources>
---
---
---
<local:VSRadCartesianChart.Grid >
                                    <telerik:CartesianChartGrid MajorLinesVisibility="Y" StripLinesVisibility="Y" >
                                        <telerik:CartesianChartGrid.YStripeBrushes>
                                        <SolidColorBrush Color="#FFD7D7D7"  Opacity="0.3" />
                                        <SolidColorBrush Color="Transparent" />
                                        </telerik:CartesianChartGrid.YStripeBrushes>
                                    </telerik:CartesianChartGrid>
                                </local:VSRadCartesianChart.Grid>

                                <local:VSRadCartesianChart.LinearSeriesSource>
                                        <Binding Path="ChartList" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged"  />
                                </local:VSRadCartesianChart.LinearSeriesSource>
                                 <local:VSRadCartesianChart.Behaviors >
                                    <telerik:ChartPanAndZoomBehavior ZoomMode="Both" PanMode="Both" >
                                    </telerik:ChartPanAndZoomBehavior>
                                </local:VSRadCartesianChart.Behaviors>
       </local:VSRadCartesianChart>
Peshito
Telerik team
 answered on 23 Dec 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?