Telerik Forums
UI for WPF Forum
5 answers
193 views

Hi

I am trying to create a dynamic point series chart on DateTimeContinuousAxes but getting "No Series Added" message.

Here is the model classes I use:

01.public class SeriesModel{
02.        public ObservableCollection<DataPointModel> Items { get; set; }
03.}
04.public class DataPointModel {
05.        public DateTime Date { get; set; }
06.        public int NodeId { get; set; }
07.}
08. 
09.// In the MainWindow() constructor I create and populate Data collection
10.// with SeriesModel collections - one for each series.
11.ObservableCollection<SeriesModel> Data = new ObservableCollection<SeriesModel>();

 

Here is a fragment of XAML I use for creating a dynamic pointseries chart:

01.<telerik:RadCartesianChart.HorizontalAxis>
02.    <telerik:DateTimeContinuousAxis/>
03.</telerik:RadCartesianChart.HorizontalAxis>
04. 
05.<telerik:RadCartesianChart.SeriesProvider>
06.    <telerik:ChartSeriesProvider Source="{Binding Data}">
07.        <telerik:ChartSeriesProvider.SeriesDescriptors>
08.            <telerik:ChartSeriesDescriptor ItemsSourcePath="Items">
09.                <telerik:ChartSeriesDescriptor.Style>
10.                    <Style TargetType="telerik:PointSeries">
11.                        <Setter Property="CategoryBinding" Value="Date"/>
12.                        <Setter Property="ValueBinding"  Value="NodeId"/>
13.                    </Style>
14.                </telerik:ChartSeriesDescriptor.Style>
15.            </telerik:ChartSeriesDescriptor>
16.        </telerik:ChartSeriesProvider.SeriesDescriptors>
17.    </telerik:ChartSeriesProvider>
18.</telerik:RadCartesianChart.SeriesProvider>

 

Could you please help to find an error in this code?

Regards,

Vlad

Martin Ivanov
Telerik team
 answered on 21 Nov 2016
1 answer
186 views

The Grid is having two columns which are using two cell templates and not using any RowDetails template. 

While adding a new row, i need to click on "+" button and need to click again on the left end of the row to see the expanded row with loaded cell templates.

But i want to achieve with only single click "+" to add a expanded row. 

Below is the code snippet used for the grid:

 <views:RadGridView x:Name="datasource" Grid.Row="1" ItemsSource="{Binding Path=DataSource.StructuredParties}" 
                                        Margin="5" AutoGenerateColumns="False" ShowGroupPanel="False" IsFilteringAllowed="False" 
                                        CanUserSortColumns="False" VerticalAlignment="Top" ShowInsertRow="True" 
                                        SelectedItem="{Binding SelectedPartyModel}" KeyboardNavigation.TabNavigation="Continue" 
                                        CellEditEnded="FwAbstractEntityGridView_CellEditEnded" Deleting="FwAbstractEntityGridView_Deleting">
            <views:RadGridView.Columns>
                <views:RadGridViewDataColumn 
                    Header="{x:Static Resources:OcrMessages.PartyTypeColumnHeader}" 
                    DataMemberBinding="{Binding Converter={StaticResource partyNameConverter}}" 
                    CellTemplate="{StaticResource DataEditTemplate}" Width="*" />
                
                <views:RadGridViewDataColumn Header="{x:Static Resources:OcrMessages.PartySharePortionColumnHeader}" 
                    DataMemberBinding="{Binding GroupShare, Converter={StaticResource zeroNumberConverter}}" 
                    CellTemplate="{StaticResource SharePortionEditTemplate}" Width="Auto" />
            </views:RadGridView.Columns>
        </views:RadGridView>

Stefan
Telerik team
 answered on 18 Nov 2016
1 answer
616 views

Hi,

 

I have a RadGridView ( ClipboardCopyMode="Cells,Header"  SelectionMode="Multiple" SelectionUnit="FullRow"). How can I raise the Copy and Paste Event which I would like to write into the Copy Button. I want the selected row and the header of the radGridView column to copy to clipboard without using Ctrl + C.

 

Thank you

Dilyan Traykov
Telerik team
 answered on 18 Nov 2016
5 answers
183 views

Hi there,

just a quick question: I'm trying to implement dragging items from one RadGridView to another. I basically sticked to the example from the Telerik docs (http://docs.telerik.com/devtools/wpf/controls/dragdropmanager/how-to/howto-draganddrop-within-radgridview). And it works! Only once, though. First time I drag an item, I can see the visual as expected and I can drop it on the other grid. When I try to drag the next item, no visual appears. Same thing with the following tries. If I restart the view, again, only the first drag operation shows the visual. Interestingly, the drag/drop operation works all the time. Only the visual vanishes after showing up once...

Seems to me like something is not properly cleaned up and kind of re-initialized in some wrong way the second time.

Does someone have an idea?

Marcel

Ivan Ivanov
Telerik team
 answered on 18 Nov 2016
1 answer
164 views

Is there a way to select a default folder for a PropertyGrid File Editor?  

I'm currently adding this attribute to my properties which handles everything.

[Editor(typeof (Xceed.Wpf.Toolkit.PropertyGrid.Editors.FileEditor), typeof (Xceed.Wpf.Toolkit.PropertyGrid.Editors.FileEditor))]

 

Thanks in advance.

Darren
Top achievements
Rank 1
 answered on 18 Nov 2016
1 answer
178 views

Hi,

I use a polar chart as a compass and I want to show East, North, South, West labels.

Using a slider user can rotate chart, labels must rotate also.

Exists an annotation strategy, or other, that allo me to add this labels?

In the attatched image, North is, at this moment, approx at 145°

Thanks,

marcello.

Martin Ivanov
Telerik team
 answered on 18 Nov 2016
3 answers
352 views

This is driving me crazy. I've seen numerous threads on this and none of the solutions seem to work for hiding the week number..

When I try to bring up the window shown below the dropdown calendar does not display at all. If I remove the InputMode="DatePicker" I can drop down the calendar but all I get is a list of times! No dates. What am I missing. Seems to me this having the week numbers not displaying should be the default. At the very least it should be an easily settable property instead of having to go through all these machinations.

Sorry, but this is very frustrating.

Ed

 

<Window x:Class="Calms2.Views.Test1"         
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"         
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"         
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"         
    xmlns:local="clr-namespace:Calms2"         
    Title="MainWindow" Height="350" Width="525" HorizontalAlignment="Left" >     
<Window.Resources>         
<Style x:Key="calendarStyle" TargetType="telerik:RadCalendar">             
    <Setter Property="AreWeekNumbersVisible" Value="False" />         
</Style>     
</Window.Resources>     

<StackPanel>         
    <telerik:RadDateTimePicker Width="500" HorizontalAlignment="Left"
                                     CalendarStyle="{StaticResource calendarStyle}"                                    
                                     InputMode="DatePicker"                                     
                                     VerticalAlignment="Center"/>     
</StackPanel>
</Window>

Nasko
Telerik team
 answered on 18 Nov 2016
8 answers
664 views

Hi,

    How do I enable scroll bars when multiple lines are displayed in the control?

Thanks,
Chad
Top achievements
Rank 1
 answered on 17 Nov 2016
5 answers
322 views
Hi There,
I am using the RadPane(I created some styles for it) in my application, when i right click on it's header a context menu is appearing which has the options like "Floating, Dockable, etc..." 
I dont want this feature in my application, so can you please tell me how i can remove this from from my styles so that it will appears common in all modules.
I have attached a image please check once.

Thanks in advance,
Srinivas.
Swamy
Top achievements
Rank 1
 answered on 17 Nov 2016
1 answer
48 views

Hi all, I write to report a problem about floating images placed beyond the end of the text elements.
You can download a test document from here:

http://download2.anastasis.it/software/fabrizio/test.xaml

It's been created using your WPF demos app (RichTextBox item), then I just copied and pasted one of the images already in the document.
The copied image has beed dragged down to the last page, beyond last text element position.

Then, I switched to DocumentLayoutMode.Flow using the button near the percentage zoom value in the footer bar. Doing so, the copied image is not in the editor view anymore.

The only ways to make it reappear are:
1. Placing the cursor after last document word then pressing the "Enter" key repeatedly.
2. Going back to Page mode.

It seems that the document measure method doesn't keep in count floating images, but only text elements.

Thanks in advance.
Fabrizio

Mihail
Telerik team
 answered on 17 Nov 2016
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
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?