Telerik Forums
UI for WPF Forum
5 answers
146 views

Hello,

Here is My XAML. If I see it in Chart, I appear as attached file. Now, I want to join those scattered points. If we observe those clearly, they appear in "D" shape.

 I want to join all the datapoints in Line as D

 <telerik:RadCartesianChart x:Name="CartesianChart1" >
            <telerik:RadCartesianChart.HorizontalAxis >
                <telerik:LinearAxis Maximum="{Binding PMax}" Minimum="0"  />
            </telerik:RadCartesianChart.HorizontalAxis>

            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis Maximum="{Binding Max}"  Minimum="{Binding Min}" />
            </telerik:RadCartesianChart.VerticalAxis>
            
            <telerik:RadCartesianChart.Annotations>
                <telerik:CartesianGridLineAnnotation Axis="{Binding VerticalAxis, ElementName=CartesianChart1}" Value="0" ></telerik:CartesianGridLineAnnotation>
            </telerik:RadCartesianChart.Annotations>
            
            <telerik:RadCartesianChart.Series>
                <telerik:ScatterPointSeries>
                    <telerik:ScatterPointSeries.DataPoints>
                        <telerik:ScatterDataPoint XValue="250" YValue="-100"  />
                        <telerik:ScatterDataPoint XValue="250" YValue="178" />
                        <telerik:ScatterDataPoint XValue="496" YValue="-100" />
                        <telerik:ScatterDataPoint XValue="496" YValue="178" />
                        <telerik:ScatterDataPoint XValue="520" YValue="-89" />
                        <telerik:ScatterDataPoint XValue="520" YValue="90" />
                        <telerik:ScatterDataPoint XValue="528" YValue="0" />
                    </telerik:ScatterPointSeries.DataPoints>
                </telerik:ScatterPointSeries>
            </telerik:RadCartesianChart.Series>
        </telerik:RadCartesianChart>

Martin Ivanov
Telerik team
 answered on 03 Jul 2015
2 answers
154 views

Hi,

How we can apply Localized Header for AutoGeneratingColumn ?

For example like 

My xaml contains

<telerik:RadGridView  x:Name="radGridView" AutoGeneratingColumn="radGridView_AutoGeneratingColumn">
</telerik:RadGridView>

And cs file contains

LocalizationManager.Manager = new LocalizationManager() { 
                ResourceManager = StringLibrary.ResourceManager,
                Culture = new CultureInfo("es") 
            };

This is in the constructor part for selecting the the Language.
 

Auto generating event as follows

 private void radGridView_AutoGeneratingColumn(object sender, GridViewAutoGeneratingColumnEventArgs e)
        {
            Telerik.Windows.Controls.GridViewDataColumn col = e.Column as Telerik.Windows.Controls.GridViewDataColumn;

           //TODO => if column is some value then i wants to take value from Resourcekey .. This is my requirement.
        }

How we can do this ?

VIJIL
Top achievements
Rank 1
 answered on 03 Jul 2015
2 answers
257 views

We have an existing WPF application that uses a similar UI library to Telerik. We are considering moving to Telerik for many reasons but one is the MVVM support for the RadDocking control. I have been reading and creating some test code and I came across something odd.

I am setting the DataContext of my View/Window using the following XAML.

 

<Window ...>
 
    <Window.Resources>
        <vm:MainWindowViewModel x:Key="MainWindowViewModel />
    </Window.Resources>
 
    <Grid DataContext={StaticResource MainWindowViewModel}">
 
    </Grid>
 
</Window>

Inside the Grid I have a RadDocking that uses the DockingPanesFactory. When I set the DataContext in XMAL (shown above), and I put a break point in the AddPane override for the DockingPanesFactory, the radDocking.SplitItems has zero items the first time.  

If I set the DataContext in the code-behind of the View/Window using the following…

public MainWindow(){
    InitializeComponent();
    this.DataContext = new MainWindowViewModel();
}

 â€¦and now look at the AddPane override for the DockingPanesFactory then the radDociing.SplitItems does NOT contain zero items.

 So if I set the DataContext in XAML the Designer in Visual Studio shows the correct layout but at runtime it puts each RadPane in its own container but if I set the DataContext in code behind the Designer does not work at all but it looks as expected at runtime.

 Why does the DataContext of my View/Window have to be set in code-behind to get the DockingPanesFactory to work correctly at runtime?

 Thanks,

   -eric

Eric
Top achievements
Rank 1
 answered on 02 Jul 2015
1 answer
157 views

Hi All,

Is there any way in RadPdfViewer for reducing memory consumption while page navigation?

 

 

Thanks,

Divya

 

Petya
Telerik team
 answered on 02 Jul 2015
1 answer
355 views

Hi,

 

I noticed that it is impossible to use multibinding on IsReadOnlyBinding of GridViewBoundColumn.

As I have several sources for my binding I really need multibinding. Do you plan to add the functionality in the future?

Ivan Ivanov
Telerik team
 answered on 02 Jul 2015
2 answers
99 views

I have the SelectedItem of my TreeListView bound to a property.  However, if conditions aren't met that Property will throw an exception.  How do I capture that exception?  Is it a Binding error?  Is it a Data error?  How do I trap and expose it?  DataError and GiveFeedback events don't seem to give me anything to trap.

 

<telerik:RadTreeListView
    x:Name="treeListView"
    AutoGenerateColumns="False"
    HorizontalAlignment="Stretch"
    VerticalAlignment="Stretch"
    CanUserFreezeColumns="False"
    CanUserReorderColumns="False"
    SelectionMode="Single"
    Grid.Row="1"
    Margin="5"
    IsReadOnly="{Binding IsReadOnly}"
    ItemsSource="{Binding Hierarchy, Mode=TwoWay}"
    SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
    AutoExpandItems="True"
    ShowGroupPanel="False"
    IsFilteringAllowed="False"
    ShowColumnHeaders="False"
    IsExpandedBinding="{Binding IsExpanded, Mode=TwoWay}" DataError="treeListView_DataError" GiveFeedback="treeListView_GiveFeedback">
 
    <telerik:RadTreeListView.ChildTableDefinitions>
        <telerik:TreeListViewTableDefinition 
            ItemsSource="{Binding Children}"/>
    </telerik:RadTreeListView.ChildTableDefinitions>
    <telerik:RadTreeListView.Columns>
 
        <telerik:GridViewDataColumn
            DataMemberBinding="{Binding Name, Mode=TwoWay}"
            CellTemplate="{StaticResource TreeNodeTemplate}"
            IsReadOnly="False"
            Width="*"/>
 
        <telerik:GridViewComboBoxColumn
            x:Name="itemTypeColumn"
            Header="Item Type"
            DataMemberBinding="{Binding ItemTypeID, Mode=TwoWay}"
            DisplayMemberPath="Name"
            SelectedValueMemberPath="ID"
            SortMemberPath="Order"
            SortingState="Ascending"
            ItemsSource="{Binding TypeModel.Items, Mode=TwoWay}"
            IsReadOnly="True"
            Width="150"/>
 
        <telerik:GridViewDataColumn
            DataMemberBinding="{Binding IsActive, Mode=TwoWay}"
            Header="Include"/>
 
    </telerik:RadTreeListView.Columns>
</telerik:RadTreeListView>

Ivan Ivanov
Telerik team
 answered on 02 Jul 2015
1 answer
143 views

I'm using the VisualizationLayer to display PolylineData items. How can I detect if a PolylineData item has been clicked?

Andrew

Martin Ivanov
Telerik team
 answered on 02 Jul 2015
8 answers
120 views

Hi,

I'm working with two monitors/screens, and I found out a critical bug.
Steps to reproduce:

1. Run application with RadDocking control which contains 3 panes. Place the app in the screen #1.
2. Drag out one pane and drop it in screen #2.
3. Drag out another pane and drop it into the the first pane we already dragged out (So they will share equal space). In other words, drop it into the new ToolWindow from step 2.
4. Now, from this ToolWindow whice contains 2 panes, drag out the right pane.

Expected: The mouse cursor holds a new ToolWindow which created for the dragged-out pane, and its state is WindowState == Normal.
Actual Result: New ToolWindow is created, but instead of appearing under the mouse cursor, it appears in the first screen, while its height is something very short like 50, and its width is as the width of the first screen. If you leave the mouse button (DragEnd event) and try to drag this short-height ToolWindow in the direction of the second screen, you'll see that it starts to get wider until you reach the the edge of the second screen with the cursor and then it stops to get wider. 

Note: My screens showing my desktop in the mode of "Extend".

Please help to work-around this bug...
Big Thanks!!!

Kalin
Telerik team
 answered on 02 Jul 2015
1 answer
46 views

 Can someone suggest appropriate chart for 3 level parent child relationship of data, I have data in three level hierarchy how to show these data in Rad Chart.

Petar Marchev
Telerik team
 answered on 02 Jul 2015
1 answer
127 views

Hello,

I'm trying to load the last used layout at startup.  I save the last layout on window close and need to load this layout on next startup.  I tried hooking into the bootstrappers InitializeModules() override but was getting inconsistent behaviors.  

 

What is the preferred/recommended method to load a layout at startup?

Thanks!

PT

Kalin
Telerik team
 answered on 02 Jul 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?