Telerik Forums
UI for WPF Forum
3 answers
157 views
Hi,

I'm currently evaluating the Telerik chart control and am so far very impressed, however, I have found one limitation which is presenting me with problems.

I would like to plot multiple series of data with a common x-axis on the same chart with each series having its own y-axis - at a basic level this works fine. However, when I now implement zooming and scrolling, I notice that each Y-axis is tied to the same range. i.e. If I change the zoom on one y-axis scroll-bar, all the others change too, whereas I'd like them to work independently. This seems a limitation on the implementation of zooming/scrolling since it's a property of the chart area and not a series or axis. Is there some convenient way around this so that each axis/series can be zoomed independently? Ideally, I'd like it so that if the user drags a box in the chart area then all axes/series are zoomed simultaneous, but if they use the scroll-bar on one axis, then only that axis/series is zoomed.

Many thanks in advance,
Mark
Ves
Telerik team
 answered on 18 May 2010
4 answers
160 views
I am having problem with getting the chart series to auto-update when data binding to nested collections is used. Following the example in the documentation, I created a list of ObservableCollections:

public List<ObservableCollection<ChartData>> _dataPointsCollection = new List<ObservableCollection<ChartData>>(); 

ChartData is just a simple class:

public class ChartData  
{  
        public DateTime XValue { getset; }  
 
        public double YValue { getset; }  
 
        public ChartData()  
        {  
            XValue = DateTime.Now;  
        }  
 
        public ChartData(DateTime pTime, double pValue)  
        {  
            XValue = pTime;  
            YValue = pValue;  
        }  

In the constructon of the class, after InitializeComponent() call, I am setting the itemSource as follows:

radChart1.ItemsSource = _dataPointsCollection; 

And finally here is the code snippet that adds a new series to the chart:

ObservableCollection<ChartData> DataPoints = new ObservableCollection<ChartData>();  
_dataPointsCollection.Add(DataPoints);  
 
int currentIndex = _dataPointsCollection.Count - 1;  
 
SeriesMapping seriesMapping = new SeriesMapping();  
seriesMapping.SeriesDefinition = new SplineSeriesDefinition();  
seriesMapping.CollectionIndex = currentIndex;  
seriesMapping.SeriesDefinition.ShowItemLabels = false;  
seriesMapping.LegendLabel = chartDataProvider.LegendLabel;  
seriesMapping.ItemMappings.Add(new ItemMapping("XValue", DataPointMember.XValue));  
seriesMapping.ItemMappings.Add(new ItemMapping("YValue", DataPointMember.YValue));  
radChart1.SeriesMappings.Add(seriesMapping); 

The problem I am having is that the chart control only shows data points that are already in the ObservableCollection at the time the window that has the chart is displayed; any data that gets added after the window is displayed do not get displayed in the chart at all.

What am I doing wrong? Any help would be greatly appreciated.
Thanks

-Ambar
Ambar Kulkarni
Top achievements
Rank 1
 answered on 18 May 2010
7 answers
160 views
Hello,

I Just upgraded to version 2010.1.422.35. Our screens are all contained inside of a ViewBox with Stretch="Fill". The Docking control works as expected but when the size changes the compass size doesn't change at all. I was wondering if you had any ideas on how i could change the compass size?

Thanks Much,
~Boots
Miroslav Nedyalkov
Telerik team
 answered on 18 May 2010
6 answers
188 views
I`m using Rad TabControl Q3 sp1 and in VS 2008 I can`t open other tabitems than first one. I can`t see other items content. Even in the your example project.
Vladislav
Telerik team
 answered on 18 May 2010
7 answers
290 views
I have a grid, where all the columns are of type: GridViewDataColumn.

One column (Modulation) in edit mode consists of a combo box and a button. Another grid is a TextBox.
The problem is that when I am changing the selection of the Combo box, and then move to another column (Fading Doppler), the "Modulation" column remains in edit, it doesn't loose focus.

Essentially what I have observed is that, since the fact that the another column is a TextBox, this problem happens. If the control is something else, the problem doesn't happen.

Here is the declaration of the columns:

                <!-- Modulation selection column -->
                <telerik:GridViewDataColumn Header="Modulation" Width="150" DataMemberBinding="{Binding Modulation, Mode=TwoWay}" TextAlignment="Center" >
                        <telerik:GridViewDataColumn.CellTemplate>
                            <DataTemplate>
                            <TextBlock Text="{Binding Modulation}" Foreground="{Binding Path, Converter={StaticResource colorConverter}}"/>
                            </DataTemplate>
                        </telerik:GridViewDataColumn.CellTemplate>
                        <telerik:GridViewDataColumn.CellEditTemplate >
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                <ComboBox Loaded="Editor_Loaded" Width="100" Margin="5, 0, 0, 0" Foreground="{Binding Path, Converter={StaticResource colorConverter}}" Text="{Binding Modulation, Mode=TwoWay}" Background="White"  SelectionChanged="modulationChanged">
                                        <ComboBoxItem>Static</ComboBoxItem>
                                        <ComboBoxItem>Rayleigh</ComboBoxItem>
                                        <ComboBoxItem>Rician</ComboBoxItem>
                                </ComboBox>
                                <Button Content="More..." Foreground="{Binding Path, Converter={StaticResource colorConverter}}"/>
                                </StackPanel>
                            </DataTemplate>
                        </telerik:GridViewDataColumn.CellEditTemplate>
                    </telerik:GridViewDataColumn>

                <!-- Fading Doppler -->
                <telerik:GridViewDataColumn Width="110" DataMemberBinding="{Binding fDFreq, Mode=TwoWay}" >
                    <telerik:GridViewDataColumn.Header>
                        <TextBlock Text="Fading Doppler (Hz)" TextAlignment="Center" TextWrapping="Wrap" />
                    </telerik:GridViewDataColumn.Header>
                    <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate>
                            <TextBox Text="{Binding fDFreq}" Foreground="{Binding Path, Converter={StaticResource colorConverter}}" IsReadOnly="True" IsEnabled="{Binding Modulation, Converter={StaticResource isModulationOtherThanStatic}}"/>
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
                    <telerik:GridViewDataColumn.CellEditTemplate>
                        <DataTemplate>
                            <TextBox Text="{Binding fDFreq, Mode=TwoWay}" Foreground="{Binding Path, Converter={StaticResource colorConverter}}" IsEnabled="{Binding Modulation, Converter={StaticResource isModulationOtherThanStatic}}"/>
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellEditTemplate>
                </telerik:GridViewDataColumn>

Ujjwal Lahoti
Top achievements
Rank 1
 answered on 17 May 2010
7 answers
259 views
Hi,I'm trying to add Items to a RadCarouselPanel through Code, But I'm having trouble...

This is my code:

...
           
            <telerik:RadCarouselPanel Name="imgPicker"  ItemsMovementAnimationDuration="0:0:0.5"
                    ItemsPerPage="11" PathPadding="70,50,70,50" IsOpacityEnabled="True"
                    IsScalingEnabled="True" IsSkewAngleYEnabled="True" Height="100" MinHeight="100" >
                <telerik:RadCarouselPanel.Path>
                    <Path HorizontalAlignment="Center" VerticalAlignment="Center" Stretch="Fill" Data="M 0,300 C0,300 500,300 500,300 " />
                </telerik:RadCarouselPanel.Path>
                <telerik:RadCarouselPanel.SkewAngleYStops>
                    <telerik:PathStopCollection>
                        <telerik:PathStop PathFraction="0.15" Value="-15" />
                        <telerik:PathStop PathFraction="0.45" Value="-15" />
                        <telerik:PathStop PathFraction="0.5" Value="0" />
                        <telerik:PathStop PathFraction="0.55" Value="15" />
                        <telerik:PathStop PathFraction="0.85" Value="15" />
                    </telerik:PathStopCollection>
                </telerik:RadCarouselPanel.SkewAngleYStops>
                <telerik:RadCarouselPanel.ScaleStops>
                    <telerik:PathStopCollection>
                        <telerik:PathStop PathFraction="0.4" Value="1.0" />
                        <telerik:PathStop PathFraction="0.5" Value="1.5" />
                        <telerik:PathStop PathFraction="0.6" Value="1.0" />
                    </telerik:PathStopCollection>
                </telerik:RadCarouselPanel.ScaleStops>
                <telerik:RadCarouselPanel.OpacityStops>
                    <telerik:PathStopCollection>
                        <telerik:PathStop PathFraction="0.0" Value="0.0" />
                        <telerik:PathStop PathFraction="0.1" Value="1.0" />
                        <telerik:PathStop PathFraction="0.9" Value="1.0" />
                        <telerik:PathStop PathFraction="1.0" Value="0.0" />
                    </telerik:PathStopCollection>
                </telerik:RadCarouselPanel.OpacityStops>
            </telerik:RadCarouselPanel>           
...

And my CodeBehind:

public MainWindow ()
        {
            InitializeComponent();
           
            imageList = new List<BitmapImage>();

            BitmapImage bi = new BitmapImage();
            bi.BeginInit();
            bi.UriSource = new Uri(@"Imgs/OCR1.TIF", UriKind.RelativeOrAbsolute);
            bi.EndInit();
           
            imageList.Add(bi);

            bi = new BitmapImage();
            bi.BeginInit();
            bi.UriSource = new Uri(@"Imgs/OCR2.TIF", UriKind.RelativeOrAbsolute);
            bi.EndInit();

            imageList.Add(bi);

            bi = new BitmapImage();
            bi.BeginInit();
            bi.UriSource = new Uri(@"Imgs/OCR3.TIF", UriKind.RelativeOrAbsolute);
            bi.EndInit();

            imageList.Add(bi);

            imgPicker.DataContext = imageList;

         
        }

Is this the right way to do this?

My panel is not showing anything =/
Maya
Telerik team
 answered on 17 May 2010
1 answer
132 views
Hi, i'm trying to do somethiing and didn't see anything like this on the samples, or useful events for this.

What do I want to do:

Let's say that I have a RadCarousel styled as a coverflow, with 4 images on this order A-B-C-D

I want to drag D to position 2, with the mouse, so the new order would be A-B-D-C

Any clue?

Thanks a lot!
Milan
Telerik team
 answered on 17 May 2010
8 answers
334 views
When a user selected a current Item or an Item comes into view. How can I call an event to populate a gridview.

For example.. If a Item for John Doe becomes into view or is the selected Caroisel Item - I'd like to make a DB call to grab a dataset of his addresses.

How can I wire up an event to the selected Carousel Item and bind the dataset to the RadGridView.

Thanks again for all your help!!
Milan
Telerik team
 answered on 17 May 2010
4 answers
234 views
I need to create a portal style WPF application much in the style of that shown in your My Portal demo at http://mono.telerik.com/Dock/Examples/MyPortal/DefaultCS.aspx

However, this control appears to be for ASP.NET whereas I need to put this together in a WPF windows application. So, I have been looking into the RadDocking control but this appears to be more along the lines of Visual Studio type docking. I simply want to have a couple of columns where I can add, remove and arrange widgets. Is this possible using the RadDocking control without complicating things with the extra functionality? If so, do you have a sample?

Thanks
Matt
Top achievements
Rank 1
 answered on 17 May 2010
3 answers
313 views
I created library with my custom theme for RadWindow, but after applying (using StyleManager) and click on header Close button application chashes.

I use this code for close button:

<telerik:RadButton x:Name="PART_CloseButton" Command="telerik:WindowCommands.Close" Style="{StaticResource WindowButtonStyle}">
                                        <Path Fill="{StaticResource WindowButtonIconFill}" Stroke="{StaticResource WindowButtonIconStroke}" Width="14" Height="14" Data="M1.5,3.5 L2.5,2.5 4.5,2.5 6.5,4.5 8.5,2.5 10.5,2.5 11.5,3.5 8.5,6.5 8.5,7.5 11.5,10.5 10.5,11.5 8.5,11.5 6.5,9.5 4.5,11.5 2.5,11.5 1.5,10.5 4.5,7.5 4.5,6.5 z" />
                                    </telerik:RadButton>

Also is use alternate of Command="telerik:WindowCommands.Close":
 
<Button.Command>
    <RoutedUICommand
    Text="Close" />
 </Button.Command>
than button not work.

Help me to resolve this problem.

Thanks
Miroslav Nedyalkov
Telerik team
 answered on 17 May 2010
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
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?