Telerik Forums
UI for WPF Forum
1 answer
142 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
91 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
119 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
118 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
141 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
223 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
163 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
4 answers
195 views
Hi,

i have a performance problem with "Special Slots" in "schedule view". In my case I have n Groups, created dynamically out of a database. To see a special slot on grouping, I have to create each special slot for each group! In my case I have 960 Slots. Now the performance is not good on changing to moth view and on loading the application.

Is it possible to load the Slot once and use it for each group?

Thanks
Best Regards
Rene
Tim
Top achievements
Rank 1
 answered on 23 Dec 2013
1 answer
139 views
Hi,

I need a "red line" that symbolise where my draged row will insert. The "Before / After" tooltip is hard to read in a grid with lots of rows/cells.

Any good C# examples for this?

/Ken
Kennet
Top achievements
Rank 2
 answered on 23 Dec 2013
1 answer
88 views
Scenario:  I have a RadGridView with "Click here to add new item" enabled.

If I click on a row and then hit 'Enter', the selection navigates to the next row as expected.

If I click on "Click here to add new item" then a new row is created and focus is given to the first cell, as expected.  If I enter some data and press 'Enter' the data is committed but then it appears that the keyboard event is passed along to the parent control.  In my case, it dismisses the dialog.



Maya
Telerik team
 answered on 23 Dec 2013
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?