The recorded on-demand training videos will be available in Your Account shortly after the corresponding live training is complete and all training sessions will be refreshed after each major release.
I created a test application that works like I want it to. However now that I am trying to implement it the same way into an existing application, the opacity value I am setting is being ignored. This complexity of this custom control (using a RadCartesianChart) is pretty crazy. I just can't find out what is causing it to ignore what I am setting.
Attached is what the chart looks like without and with mouse-overing a LineSeries. The idea is to highlight the LineSeries the trackball is describing.
Below is how I am setting the opacity in a custom behavior. I have even tried
- setting the opacity of each series on the RadCartesianChart itself
- setting the opacity on the style being used for the LineSeries
- setting up a style trigger to set the opacity value when the IsSelected property is modified in the behavior
Does anyone have an ideas?
01.private static void ChartTrackBallBehavior_TrackInfoUpdated(object sender, TrackBallInfoEventArgs e)02.{03. ChartDataContext context = e.Context;04. 05. DataPointInfo closestDataPointInfo = context.DataPointInfos06. .OrderBy(x => Math.Abs(e.Context.TouchLocation.Y - x.DataPoint.LayoutSlot.Y)).FirstOrDefault();07. 08. foreach (DataPointInfo dataPointInfo in context.DataPointInfos)09. {10. if (dataPointInfo == closestDataPointInfo)11. {12. if (dataPointInfo?.DataPoint.DataItem is ChartItem chartItem)13. {14. ChildChartViewModel childChartViewModel = dataPointInfo.Series.Chart.DataContext as ChildChartViewModel;15. 16. string time = chartItem.XValue.ToString(childChartViewModel?.LabelFormat ?? string.Empty);17. string value = chartItem.YValue.ToString(childChartViewModel?.VerticalAxis.DataFormatString ?? string.Empty);18. 19. dataPointInfo.DisplayContent = $"({time}, {value})";20. dataPointInfo.Series.Opacity = 1;21. dataPointInfo.Series.Tag = "Add";22. }23. }24. else25. {26. dataPointInfo.Series.Opacity = 0.33;27. dataPointInfo.Series.Tag = "Remove";28. }29. }30. 31. e.Context.DataPointInfos.RemoveAll(x => x.Series.Tag.ToString() == "Remove");32.}
I have the following radgridview. In the alert column the filter takes out a 0 or a 1, which is the data that is collected from the database.
How could I change 0 for no alert and 1 for alert?
Thank you very much
<telerik:RadGridView Name="rgvExplorador" GridLinesVisibility="Both" GroupPanelBackground="LightGray" GroupPanelForeground="Black" ShowSearchPanel="True" ShowGroupPanel="False" d:LayoutOverrides="Height" Grid.Row="1" FontSize="10.667" CanUserResizeColumns="False" CanUserFreezeColumns="False" AutoGenerateColumns="False" SelectionMode="Single" ItemsSource="{Binding}" RowIndicatorVisibility="Collapsed" > <telerik:RadGridView.GroupDescriptors> <telerik:GroupDescriptor Member="areaTexto" SortDirection="Ascending" /> <telerik:GroupDescriptor Member="clasificacionTexto" SortDirection="Ascending" /> </telerik:RadGridView.GroupDescriptors> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn Header="Área" DataMemberBinding="{Binding areaTexto}" Width="70" IsReadOnly="True" IsGroupable="True" IsVisible="False"/> <telerik:GridViewDataColumn Header="Clasificación" DataMemberBinding="{Binding clasificacionTexto}" Width="140" IsReadOnly="True" IsGroupable="True" IsVisible="False"/> <telerik:GridViewDataColumn Header="Título" DataMemberBinding="{Binding descripcion}" IsReadOnly="True" TextWrapping="Wrap" Width="300"> <telerik:GridViewColumn.ToolTipTemplate> <DataTemplate> <StackPanel Orientation="Vertical" Width="300" MinHeight="80" Background="White"> <TextBlock Text="Descripción:" FontWeight="Bold"/> <TextBlock Text="{Binding Objetivo}" TextWrapping="Wrap"/> </StackPanel> </DataTemplate> </telerik:GridViewColumn.ToolTipTemplate> </telerik:GridViewDataColumn> <telerik:GridViewDataColumn Header="Nº" DataMemberBinding="{Binding IdAlerta}" IsReadOnly="True" Width="auto" IsGroupable="True"/> <telerik:GridViewDataColumn x:Name="colHV" Header="Info dimensional" DataMemberBinding="{Binding HvInfoDesc}" IsReadOnly="True" /> <telerik:GridViewDataColumn x:Name="colPatron" Header="Patrón" DataMemberBinding="{Binding HF_Referencia}" IsReadOnly="True" /> <telerik:GridViewDataColumn Header="Período" DataMemberBinding="{Binding FechaDatos}" DataFormatString="{}{0:MMM/yyyy}" Width="70" IsReadOnly="True"/> <telerik:GridViewDataColumn Header="Entidad" DataMemberBinding="{Binding Entidad}" IsReadOnly="True" Width="70" /> <telerik:GridViewDataColumn IsReadOnly="True" Width="30" DataMemberBinding="{Binding EsAlerta}" IsGroupable="True" ShowDistinctFilters="True" > <telerik:GridViewDataColumn.CellTemplate> <DataTemplate> <Image> <Image.Style> <Style TargetType="{x:Type Image}"> <Setter Property="Source" Value="/Mercvrio.Style;component/Images/Blank.png" /> <Style.Triggers> <DataTrigger Value="1" Binding="{Binding EsAlerta}"> <Setter Property="Source" Value="/Mercvrio.Style;component/Images/WarningRed.png"/> </DataTrigger> <DataTrigger Value="1" Binding="{Binding AlertaPositiva}"> <Setter Property="Source" Value="/Mercvrio.Style;component/Images/Warning.png"/> </DataTrigger> <DataTrigger Value="0" Binding="{Binding EsAlerta}"> <Setter Property="Source" Value="/Mercvrio.Style;component/Images/Blank.png"/> </DataTrigger> </Style.Triggers> </Style> </Image.Style> </Image> </DataTemplate> </telerik:GridViewDataColumn.CellTemplate> </telerik:GridViewDataColumn>I'm currently using the demo version of UI WPF to evaluate the controls, and have placed a RadComboBox into my application by declaring a UserControl of that type in xaml (see attached file).
In the codeback, I then try to get the PART_EditableTextBox, so that I can set some event handlers for it. This works using the Microsoft ComboBox, but with the RadComboBox, during execution the call to get the TextBox fails, leaving my variable with a value of null. See attached file. As you can see, the referenced delegates are defined. textBox is defined at class level as in the other screenshot.
Why is this happening?
Hi,
I have a RadDropDownButton which has as a dropdowncontent a user control which contains a radgridview.
If you try to select any row from the grid when you are using a tablet, the row is not selected.
If the same user control is put in a normal window, and not inside the dropdowncontent of the button, it works fine with the touchscreen.
Can you please let me know if there is a solution to this issue? I have been struggling for days to find a solution with no success.
Thank you.
In the attached very simple project, the main window has a single RadExpander containing a single RadNumericUpDown control. The Viewmodel adds a validation rule which always sets the only property (MyValue) as failed. (I tried to attach files but your system no longer lets me!)
When the RadExpander.IsExpanded property is set to false (as in the attached code), and you then expand it, you'll see the RadNumericUpDown appears normally, without any validation error adornment.
If you change RadExpander.IsExpanded property in the xaml to true and you run, you'll see the RadNumericUpDown has the validation error adornment and shows the error tooltip.
Why? If you use either Snoop or the VS tools, you'll see that the RadNumericUpDown has the error in both cases.
I'm using 2017.3.1018.45 on Win 10 x64.
Thanks.
-John.

Hi,
I have a button outside the RadGridView. What I want is to click the button to insert new record to the RadGridView. The problem is that I have a DataPager. It seems to prevent me to insert a new record because I have page size set up.
Or maybe I have to go to last page once I click this button? How to do it?

Hello!
I'm troubled, by export to image RadCartesianChart3D, don't display labels, is this a common problem?

In the attached very simple project, the main window has a single RadExpander containing a single RadNumericUpDown control. The Viewmodel adds a validation rule which always sets the only property (MyValue) as failed. (I tried to attach files but your system no longer lets me!)
When the RadExpander.IsExpanded property is set to false (as in the attached code), and you then expand it, you'll see the RadNumericUpDown appears normally, without any validation error adornment.
If you change RadExpander.IsExpanded property in the xaml to true and you run, you'll see the RadNumericUpDown has the validation error adornment and shows the error tooltip.
Why? If you use either Snoop or the VS tools, you'll see that the RadNumericUpDown has the error in both cases.
I'm using 2017.3.1018.45 on Win 10 x64.
Thanks.
-John.

In the attached very simple project, the main window has a single RadExpander containing a single RadNumericUpDown control. The Viewmodel adds a validation rule which always sets the only property (MyValue) as failed. (I tried to attach files but your system no longer lets me!)
When the RadExpander.IsExpanded property is set to false (as in the attached code), and you then expand it, you'll see the RadNumericUpDown appears normally, without any validation error adornment.
If you change RadExpander.IsExpanded property in the xaml to true and you run, you'll see the RadNumericUpDown has the validation error adornment and shows the error tooltip.
Why? If you use either Snoop or the VS tools, you'll see that the RadNumericUpDown has the error in both cases.
I'm using 2017.3.1018.45 on Win 10 x64.
Thanks.
-John.
