Telerik Forums
UI for WPF Forum
1 answer
119 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
305 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
175 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
92 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
119 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
78 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
115 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
78 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
2 answers
104 views
Hi,
I'm using TreeView with the checkbox enabled

<telerik:RadTreeView MinWidth="150"  
                                     IsLineEnabled="True"  
                                     ItemsOptionListType="CheckList"  
                                     x:Name="leftTree"  
                                     IsTriStateMode="True"  
                                     IsOptionElementsEnabled="True"  
                                     ItemTemplate="{StaticResource dataTemplate}"/> 

So the basic usage:
The treeview has no checked items to begin with and is collapsed. The user should be able to check the top item.

So the problem is that I cannot iterate through the checked item collection when the tree is collapsed because the items do not exist.
Is there any way to have the items created so I can iterate through them without expending the tree.

Best regards
Kristján.
Valentin.Stoychev
Telerik team
 answered on 15 Jun 2010
4 answers
139 views
Hello,
When I use RadAlert in windows7 I found that it can not show correctly except some fonts, just like the visibility property is set to hidden, is there any way to solve this problem?
thank you!
Miroslav Nedyalkov
Telerik team
 answered on 15 Jun 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
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
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?