Telerik Forums
UI for WPF Forum
1 answer
151 views

Hi There, I've a tricky question about connector and connection.

I need to develop a GUI where I can let the user define a connector based upon a polyline (or directly a polyline) by 3 points : A-start, C-end and a third one (B) to adapt the resulting curve to a set of points (to match the more it can the shape see the attached file).

In fact, the main problem is to determine how to retrieve parameters setup by the user when moving the connector.

Once done, how can I access polyline parameters between A and B, B and C. The main goal is to retrieve the equation between the three points. I know it can be done through an equation system solving, but do the TELERIK object is providing any useful attributes or methods?

I mean by example : tension value between points for the spline, factors of the cubic equation, ...

 
Let me know please

Petar Mladenov
Telerik team
 answered on 03 Jul 2015
5 answers
152 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
161 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
265 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
163 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
370 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
104 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
154 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
129 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
49 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
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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?