Telerik Forums
UI for WPF Forum
2 answers
222 views
Hi;

How can i transition with multi userControl between ?

I did try long long time but ... :(

or how can i set binding transition content with UserControls ? Please give me a sample..

And sorry my poor English..


Leex Lee
Top achievements
Rank 1
 answered on 18 May 2010
2 answers
71 views
Hello,

Does the zoom/scroll work with Multiple YAxes?

If so, could you attach a zip file example?

Thanks in advance!
Matt
Matt Tonsager
Top achievements
Rank 1
 answered on 18 May 2010
3 answers
149 views
Hello,

It seems that if I set the ValidationMode and add a RowEditEnded handler on my grid either declaratively or programmatically, the grid does not leave edit mode when the Enter key is pressed.  The only way I can get it out of edit mode it to click on another row.  If I do not add a RowEditEnded event handler, then pressing Enter works as expected.

Am I doing something wrong?  Missing something?

Update: It seems to be related to setting ValidationMode="Row".  With this setting, even if I have no RowEditEnded event handler, the cell will stay in edit mode.

Thanks,
Mark

Hristo
Telerik team
 answered on 18 May 2010
1 answer
182 views
Hello ladies and gentleman.

I have stacked bar chart, and i'm not able to change their default background colors.
See attached image, please.
I used code from: http://demos.telerik.com/wpf/ -> Chart -> 2D charts -> Stacked bar series.

Could you please help me with this?
Thank you in advance,
    Nenad Djukic

Nenad Djukic
Top achievements
Rank 1
 answered on 18 May 2010
3 answers
145 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
141 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
150 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
175 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
275 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
251 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
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?