Telerik Forums
UI for WPF Forum
7 answers
125 views
Hi,

We have an application using dock groups and the radpane control.

Whenever we change the tab in the dockgroup all the datacontexts for the controls in the radpane are being changed to a datacontext of one of the other tabs, so all the data is corrupted.

None of our code is changing the datacontext but the RadTabcontrol appears to be doing this. Only the datacontext for the controls is getting changed but not the radpanes datacontext!!!!

Below is the call stack? Any ideas why this is happening?

  PresentationFramework.dll!System.Windows.FrameworkElement.DataContext.set(object value) + 0x24 bytes
  Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.RadTabControl.UpdateSelectedElementDataContext() + 0xc5 bytes
  Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.RadTabControl.UpdateSelectedContainer(bool shouldFocus, Telerik.Windows.Controls.RadTabItem selectedItemContainer) + 0x5a bytes
  Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.RadTabControl.UpdateSelectedContent(int newIndex) + 0x13b bytes
  Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.RadTabControl.OnSelectedIndexChanged(int oldIndex, int newIndex) + 0x25a bytes
  Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.RadTabControl.OnSelectedIndexChanged(System.Windows.DependencyObject sender, System.Windows.DependencyPropertyChangedEventArgs e) + 0x98 bytes
  WindowsBase.dll!System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs e) + 0x4c bytes
  PresentationFramework.dll!System.Windows.FrameworkElement.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs e) + 0x50 bytes
  WindowsBase.dll!System.Windows.DependencyObject.NotifyPropertyChange(System.Windows.DependencyPropertyChangedEventArgs args) + 0x3c bytes
  WindowsBase.dll!System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.EntryIndex entryIndex, System.Windows.DependencyProperty dp, System.Windows.PropertyMetadata metadata, System.Windows.EffectiveValueEntry oldEntry, ref System.Windows.EffectiveValueEntry newEntry, bool coerceWithDeferredReference, bool coerceWithCurrentValue, System.Windows.OperationType operationType) + 0x723 bytes
  WindowsBase.dll!System.Windows.DependencyObject.SetValueCommon(System.Windows.DependencyProperty dp, object value, System.Windows.PropertyMetadata metadata, bool coerceWithDeferredReference, bool coerceWithCurrentValue, System.Windows.OperationType operationType, bool isInternal) + 0x2eb bytes
  WindowsBase.dll!System.Windows.DependencyObject.SetValue(System.Windows.DependencyProperty dp, object value) + 0x35 bytes
  Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.RadTabControl.SelectedIndex.set(int value) + 0x4d bytes
  Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.RadTabControl.NotifyChildIsSelectedChanged(Telerik.Windows.Controls.RadTabItem child) + 0x7c bytes
  Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.RadTabItem.OnIsSelectedChanged(bool oldValue, bool newValue) + 0x46 bytes
  Telerik.Windows.Controls.Navigation.dll!Telerik.Windows.Controls.RadTabItem.OnIsSelectedChanged(System.Windows.DependencyObject sender, System.Windows.DependencyPropertyChangedEventArgs e) + 0x9b bytes



Tina Stancheva
Telerik team
 answered on 16 Jun 2010
2 answers
131 views
We use the dll's from 28.05.2010, version 2010.1.0528.35.

It seems like the e.NewData in the CellEditEnded always is null. 
Rieni De Rijke
Top achievements
Rank 1
 answered on 16 Jun 2010
1 answer
112 views
I'm trying to style my Y-Axis striplines (eventually to be bound), but I can't seem to do so correctly. Declaritvely, I can set a single chart's ChartArea.AxisY.StripLinesVisibility to Collapsed, but everything I have tried makes it seem as if these guys were impervious to styles. So basically: how to:
  * Declare the style correctly in XAML
  * Set the style correctly in C#, at the time of Chart creation (I must do it like this, as the charts are created at run time)

Currently, I have in my XAML:
<UserControl.Resources> 
    <Style TargetType="Rectangle" x:Key="StripLinesYStyle
      <Setter Property="Visibility" Value="Collapsed" /> 
    </Style> 
</UserControl.Resources> 

and where I'm creating the chart I have

var stripLineStyle = this.Resources["StripLinesYStyle"as Style; 
myChart.DefaultView.ChartArea.AxisY.AxisStyles.StripLineStyle = stripLineStyle; 



Sia
Telerik team
 answered on 16 Jun 2010
2 answers
286 views

Hello,

I have a window with a RadToolbar and a button in this toolbar :

        <telerik:RadToolBar Height="32" HorizontalAlignment="Left" VerticalAlignment="Top" Width="388">  
            <Button Height="23" HorizontalAlignment="Left" VerticalAlignment="Top" Width="75" Name="button1">  
                Test  
            </Button>  
        </telerik:RadToolBar>  
 

All works fine, my button looks like a toolbar button (no border, no background).

But if I put a style on my button (even if the style is empty) :

        <telerik:RadToolBar Height="32" HorizontalAlignment="Left" VerticalAlignment="Top" Width="388">  
            <Button Height="23" HorizontalAlignment="Left" VerticalAlignment="Top" Width="75" Name="button1">  
                Test  
                <Button.Style>  
                    <Style TargetType="Button">  
                    </Style>  
                </Button.Style>  
            </Button>  
        </telerik:RadToolBar>  
 

my button looks like a normal button (with border and background).

Is there a workaround for this issue ?

Thank you.

Patrick VADEL
Top achievements
Rank 1
 answered on 16 Jun 2010
1 answer
155 views
Hi,
I am binding a list of objects to an InformationLayer and trying to display:
- some text
- some shape, tied to current location and zoom level.
XAML looks like that:
            <map:InformationLayer ItemsSource="{Binding Sales}"
                <map:InformationLayer.ItemTemplate> 
                    <DataTemplate> 
                        <Canvas map:MapLayer.Location="{Binding Location}"
                            <TextBlock Text="Hi world"/> 
                            <map:MapRectangle  
                                Location="{Binding Location}" 
                                Width="1" 
                                Height="1" 
                                RadiusX="0.1" 
                                RadiusY="0.1" 
                                Fill="#7FFFFF00" 
                                Stroke="Red" 
                                StrokeThickness="2" /> 
                        </Canvas> 
                    </DataTemplate> 
                </map:InformationLayer.ItemTemplate> 
            </map:InformationLayer> 

I can see the TextBlock (at the right location) but not the MapRectangle (beside, I have to use a custom attached property to bind the location!).
It seems that MapRectangle (or any drawable) can only be added as direct childs to the InformationLayer class.
Am I correct?
And if so, I see little use in the map shape classes!

Regards
Frederic
Andrey
Telerik team
 answered on 16 Jun 2010
3 answers
84 views
Hi!

I filter data in Radgridview and then change this data dynamically. But when I want to clear filter (changed data) nothing clears. 
What is solution? Can you help?
Vlad
Telerik team
 answered on 16 Jun 2010
1 answer
106 views
We are experiencing serious performance issues using the RadChart as the number of series increases.  At times we receive a Stack Overflow exception from with the charting code.  The problem appears to be related to using a Categorical X-Axis.  For a Categorical X-Axis it appears that the chart loading time increases exponentially as the # of series increases.  Using a Numerical  X-Axis does not cause a problem and the load time increases linearly as the # of series is increases.

I created a simple example application that charts a bar series.  With only 3 Points per series the load times were as follows:

100 Series (300 total points): 3.4 sec
200 Series (600 total points): 13.9 sec
400 Series (1200 total points): 57.5 sec
800 Series (2400 total points):  Stack Overflow exception

As the series count doubles the load time increases 4X.  As a comparison, 1200 points in 400 series takes 57.5 sec, but the same number of points in only 1 series (1200 points) plot  < 1 sec.

Using a numerical X-Axis the 400 Series x 3 points plots in 10 sec.

I have turned animations off, and data sampling will not help since the problem occurs with very few points per series.

Looking at the call stack during the exception the problem appears to be causes during processing of the categories for the X-Axis.  For the above examples the were only a total of 3 categories on the X-Axis.

I am also submitting a support ticket with a sample application.
Ves
Telerik team
 answered on 16 Jun 2010
3 answers
76 views
*Edit* Please fix title to say "Hierarchical Objects from Serialized XML"

I have decided to go away from xml databinding and instead use object databinding because of the advantages you get using OnPropertyChanged.  The easiest way to get this done is to create a xsd of your xml and then use a program called Xsd2Code to have all your properties contain OnPropertyChanged.

I have created the xsd and generated file with no problems, but I can not get the treeview to display the serialized data.

I am having problems going more than 1 layer deep.  I am including my sample program to keep this post shorter and easier for everyone.  It can be found here

Thanks in advance
Mark




Miro Miroslavov
Telerik team
 answered on 16 Jun 2010
1 answer
105 views
Hi guys,

I have found this article http://www.telerik.com/help/silverlight/gridview-how-to-create-external-filtering.html
which explains how to do nice external custom search on all the columns of the grid.

In that example it is convenient that all of the columns are strings which makes the problem a little bit easier.

In my code most of the columns are strings but I also have some that are DateTime, enums (status fields), and integers.

I know how to exclude these columns from participating in the search but that is not acceptable solution. I need to be able to search all the columns regardless of the input.

Is there a way to set all of the columns to be of type:String for filtering function (but for sorting they need to be of the correct type DateTime, int, etc)?
Any suggestion on how to solve my problem are helpful.


Thanks,







Veselin Vasilev
Telerik team
 answered on 15 Jun 2010
1 answer
75 views
Hi.
I'm using the latest (I believe it's 2010.1.603.35) version, and found if I put TickLineStyle on Y Axis (I just changed the color) the ticks of X Axis all go funny - They lean horizontally.

I need to make the axis lines and tick lines white.
Is there a way to fix this problem or any other way to make them white rather than using the styles?

        <Style x:Key="Chart_GridLine" TargetType="{x:Type Line}"
            <Setter Property="Stroke" Value="White"/> 
        </Style> 
        <Style x:Key="Chart_TickLine" TargetType="{x:Type Line}"
            <Setter Property="Stroke" Value="White"/> 
            <Setter Property="StrokeThickness" Value="1"/> 
        </Style> 
        <Style x:Key="Chart_AxisLine" TargetType="{x:Type Line}"
            <Setter Property="Stroke" Value="White"/> 
            <Setter Property="StrokeThickness" Value="2"/> 
        </Style> 



<telerik:ChartDefaultView.ChartArea> 
                            <telerik:ChartArea> 
                                <telerik:ChartArea.AxisX> 
                                    <telerik:AxisX StripLinesVisibility="Visible" MajorGridLinesVisibility="Visible"
                                        <telerik:AxisX.AxisStyles> 
                                            <telerik:AxisStyles  
                                                AxisLineStyle="{StaticResource Chart_AxisLine}" 
                                                GridLineStyle="{StaticResource Chart_GridLine}" 
                                                TickLineStyle="{StaticResource Chart_TickLine}"/>            
                                        </telerik:AxisX.AxisStyles>          
                                    </telerik:AxisX> 
                                </telerik:ChartArea.AxisX> 
                                <telerik:ChartArea.AxisY> 
                                    <telerik:AxisY MinorTicksVisibility="Collapsed"
                                        <telerik:AxisY.AxisStyles> 
                                            <telerik:AxisStyles  
                                                AxisLineStyle="{StaticResource Chart_AxisLine}" 
                                                TickLineStyle="{StaticResource Chart_TickLine}"/>            
                                        </telerik:AxisY.AxisStyles>          
                                    </telerik:AxisY> 
                                </telerik:ChartArea.AxisY> 
                            </telerik:ChartArea> 
                        </telerik:ChartDefaultView.ChartArea> 
Velin
Telerik team
 answered on 15 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?