This is a difficult one, I think. If you look at one of the attached screenshots, some of the labels are adjacent to the axis as they should be, but some are quite distant. Sometimes they will all be correct except a few, sometimes they are all fine, and sometimes they are all wrong.
The problem seems to especially manifest when that the chart is bound to changes, and the new values on the labels are not included in the original values. For example the first screenshot has values at each 100 step, and when the data point changes from 400 to 200, the x100 values which were already on the axis are correct but the new x50 values are placed incorrectly. It isn't that straightforward of course... for example, often labels which weren't there originally are added fine.
The chart is fairly basic. It is a single fixed series bound to a list of data point objects. When we change the data we completely replace the list rather than try to use an observable collection.
<telerik:RadCartesianChart x:Name="Chart" BorderThickness="1"> <telerik:RadCartesianChart.HorizontalAxis> <telerik:CategoricalAxis PlotMode="OnTicksPadded" SmartLabelsMode="SmartStep" /> </telerik:RadCartesianChart.HorizontalAxis> <telerik:RadCartesianChart.VerticalAxis> <telerik:LinearAxis Title="{Binding VerticalLabel}" Minimum="0" SmartLabelsMode="SmartStepAndRange" LabelTemplate="{StaticResource VerticalAxisLabelTemplate}" /> </telerik:RadCartesianChart.VerticalAxis> <telerik:RadCartesianChart.Series> <telerik:BarSeries x:Name="barSeries" ItemsSource="{Binding SeriesData}" CategoryBinding="XValue" ValueBinding="YValue" > <telerik:BarSeries.DefaultVisualStyle> <Style TargetType="Border"> <!--The data context here is the data point, but we need to bind to properties of the visualizer, which is the data context of the series (presenter) which contains it --> <Setter Property="Background" Value="{Binding Presenter.DataContext.Fill}"/> <Setter Property="BorderBrush" Value="{Binding Presenter.DataContext.Color}"/> <Setter Property="BorderThickness" Value="2"/> </Style> </telerik:BarSeries.DefaultVisualStyle> </telerik:BarSeries> </telerik:RadCartesianChart.Series> </telerik:RadCartesianChart>public static List<T> Filter<T>(IList<T> items, string filter) where T : new() { var result = new List<T>(); try { var editor = new RadExpressionEditor(); editor.Item = new T(); Expression exprResult; var isSuccess = editor.TryParse(filter, out exprResult); if (isSuccess) { var expr1 = (Expression<Func<T, bool>>)exprResult; var func = expr1.Compile(); result = items.Where(func).ToList(); } } catch (Exception) { } return result; }regards,

Hi,
I recently noticed some strange behaviour when using the search panel of the GridView.
In our application the AvalonDock control (Xceed) is used for the UI. Each time the user selects a program in the menu, a UserControl is opened in a new docked document of the AvalonDock control.
Now for the strange behaviour:
Any help would be much appreciated !
Best Regards,
Hans

Good day.
National characters in RadPasswordBox are displayed as a
question mark, if the password is inserted through the clipboard.
This behavior is not observed in either RadWatermarkTextBox or PasswordBox.
Please tell me how to solve this problem.
Below is a link to the project and files.
https://drive.google.com/open?id=1fnNaE2Gs0SLVfnf2jvBHpyL4pJLhlF9i
Regards,
Denis
Hello
I'm using RadGridView and try to handle the MouseDoubleClick-Event. My problem is to get the RadGridCell the user has double-clicked on.
Can you help me with this?
Thanks!
Best regards
Tobias
Hey. I use RadTileView and this is a great solution. Could you tell me how I can adjust the vertical Tiles distribution instead of the horizontal one? And how can I set margin=0 for Tiles?
01.<telerik:RadTileView x:Name="tile" RowHeight="*" ColumnWidth="*" ItemsSource="{Binding Path=PictureCollection}" SelectedItem="{Binding Path=SelectedPicture}" Grid.Column="2" Grid.RowSpan="3" IsAutoScrollingEnabled="True" >02. 03. <telerik:RadTileView.Style>04. <Style TargetType="{x:Type telerik:RadTileView}">05. <Setter Property="Margin"06. Value="0"/>07. </Style>08. </telerik:RadTileView.Style>09. 10. <telerik:RadTileView.ItemContainerStyle>11. <Style TargetType="{x:Type telerik:RadTileViewItem}">12. <Setter Property="Margin"13. Value="0"/>14. </Style>15. </telerik:RadTileView.ItemContainerStyle>16. 17. 18. <telerik:RadTileView.ItemTemplate>19. <DataTemplate>20. <TextBlock Text="{Binding Path=Name}" FontSize="14" FontWeight="Bold"/>21. </DataTemplate>22. </telerik:RadTileView.ItemTemplate>23. 24. <telerik:RadTileView.ContentTemplate>25. <DataTemplate>26. <Grid Margin="0">27. <Grid.RowDefinitions>28. <RowDefinition Height="4*" x:Name="Row1"/>29. <RowDefinition Height="*" x:Name="Row2"/>30. </Grid.RowDefinitions>31. 32. <Border Background="Black" Margin="0" Grid.Row="0" >33. <Grid>34. <local2:ZoomBorder ClipToBounds="True" x:Name="BorderName">35. <Grid>36. <Image x:Name="ImageTop" Source="{Binding Path=Image}" />37. <Button Command="{Binding RelativeSource={RelativeSource AncestorType=Controls:MetroWindow, Mode=FindAncestor}, Path=DataContext.FullScreenCommand}" CommandParameter="{Binding Path=Name}" HorizontalAlignment="Right" VerticalAlignment="Top" Width="50" Height="50" Style="{DynamicResource MetroCircleButtonStyle}" Background="{DynamicResource AccentColorBrush}" ToolTip="{x:Static res:Resources.FullScreen}" Opacity="0.7" Margin="0,20,20,0">38. <Rectangle Fill="{DynamicResource BlackColorBrush}" Width="20" Height="20">39. <Rectangle.OpacityMask>40. <VisualBrush Visual="{StaticResource appbar_vector_group}" Stretch="Fill"/>41. </Rectangle.OpacityMask>42. </Rectangle>43. </Button>44. </Grid>45. </local2:ZoomBorder>46. </Grid>47. </Border>48. <Controls:Tile Margin="0" Content="{x:Static res:Resources.Capture_Image}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Command="{Binding RelativeSource={RelativeSource AncestorType=Controls:MetroWindow, Mode=FindAncestor}, Path=DataContext.WebCamCaptureCommand}" CommandParameter="{Binding Path=Name}" Grid.Row="1" Height="{Binding ElementName=Row1, Path=Height}" Width="{Binding ElementName=BorderName, Path=Width}" FontWeight="Bold" FontSize="14"/>49. </Grid>50. 51. </DataTemplate>52. </telerik:RadTileView.ContentTemplate>53. </telerik:RadTileView>
I have a column which has read mode or edit mode. Read mode means that column display text in a textblock. Edit mode means that the column display a textbox or combobox so the use can input the value in the control. So I want to customize the datetemplate.
<telerik:GridViewDataColumn DataMemberBinding="{Binding Salary}"> <telerik:GridViewDataColumn.CellTemplate> <DataTemplate> <StackPanel> <TextBlock Text="{Binding Salary}" Visibility="{Binding ReadOrEdit, Convert={StackResources BooleanToOpacityConverter}}" Validation.ErrorTemplate="{StackResources myTemplate}"/> <TextBox Text="{Binding Salary}" Visibility="{Binding ReadOrEdit, Convert={StackResources InvertedBooleanToVisibilityConverter}}" Validation.ErrorTemplate="{StackResources myTemplate}"/> </StackPanel> </DataTemplate> </telerik:GridViewDataColumn.CellTemplate> </telerik:GridViewDataColumn>The validation template likes
<ControlTemplate x:Key="myTemplate"> <DockPanel> <Border BorderBrush="Red" BorderThickness="1"> <AdornedElementPlaceholder x:Name="controlWithError"/> </Border> <TextBlock Foreground="Red" FontSize="20" FontFamily="Segoe UI" Margin="3,0,0,0" MouseDown="Exclamation_MouseDown" Tag="{Binding AdornedElement.(Validation.Errors)[0].ErrorContent, ElementName=controlWithError}">!</TextBlock> </DockPanel></ControlTemplate>I am not sure it is the right way. Should I put the textbox in CellEditingTemplate because of it is for editing? The reason is when we validate the textbox I found besides the textbox also inside the textbox there was a red border around the text. It means there are two adorners.
Thanks
This is a bit hard to describe, but I have a RadGridView that I'm exporting to Excel.
The date and time fields register as "General" (under Right Click --> "Format Cells") when I need them to be either "Date" or "Time" based on what they are. The Excel sorting of DateTime fields doesn't work property otherwise - it seems to sorts on the textual representation as opposed to proper dates.
The attached picture clearly shows what I have in mind.
How do I get Excel to see them (checkboxed) as either "Date" (for date columns/cells) or "Time" (for time columns/cells)...instead of "General" ?
Barry
