Telerik Forums
UI for WPF Forum
1 answer
164 views

I'm not able to get Dragon select drop-down options.

 <telerik:RadComboBox Grid.Row="5" Grid.Column="1" Padding="1" Grid.ColumnSpan="3" Name="SearchComboBox"                               
                                AutomationProperties.Name="Search:"
                                MaxHeight="20"
                                MinWidth="270"
                                VerticalAlignment="Center"
                                IsEditable="True"
                                IsReadOnly="False"
                                CanAutocompleteSelectItems="False"
                                CanKeyboardNavigationSelectItems="False"
                                IsTextSearchEnabled="False"
                                StaysOpenOnEdit="False"
                                OpenDropDownOnFocus="False"
                                IsMouseWheelEnabled="True"
                                MaxDropDownHeight="200"
                                Focusable="True"
                                IsTabStop="True"
                                TabIndex="101"         
                                ItemTemplate="{StaticResource GridLikeDataTemplate}"
                                TextBoxStyle="{StaticResource CustomComboTextBoxStyle}"
                                ItemsSource="{Binding List}"
                                KeyDown="General_KeyDown"
                                ScrollViewer.ScrollChanged="SearchCombo_ScrollChanged"
                                TextBoxBase.TextChanged="SearchCombo_TextChanged"
                                SelectionChanged="SearchCombo_SelectionChanged" >
                                <!--<telerikPresentation:RadComboBox.ItemContainerStyle>
                                    <Style TargetType="{x:Type telerikPresentation:RadComboBoxItem}">
                                        <Setter Property="AutomationProperties.Name" Value="{Binding Name}"/>
                                    </Style>
                                </telerikPresentation:RadComboBox.ItemContainerStyle>-->

                            </telerik:RadComboBox>

Template:

   <DataTemplate x:Key="GridLikeDataTemplate">
                                <DockPanel DataContext="{Binding}">
                                    <TextBlock Width="150" DockPanel.Dock="Right" Foreground="Gray" Text="{Binding TypeName}" Margin="0,0,15,0" />
                                    <TextBlock Text="{Binding Name}" FontWeight="Bold" Margin="0,0,20,0" AutomationProperties.Name="{Binding Name}"/>
                                </DockPanel>
                            </DataTemplate>

 

I used Inspect.exe and verified that the "Name" property was set propertly, but Click <PROPERTY NAME> is not working.  Please let me know if there is anything I missed. Thank you in advance. 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 19 Apr 2018
4 answers
65 views

Does anybody know if the results from sibling aggregate functions can be used as input values for another function?

I would like to display the following grid:

                          Day 1                                 

                          Aggr1     Aggr2    Diff
  Shop               v1            v2         v1-v2
       Item A        p1A         p2A
       Item B        p1B         p2B

 

Is there any way to access the Aggr1 and Aggr 2 results in the Diff aggregate?

Martin Ivanov
Telerik team
 answered on 19 Apr 2018
1 answer
220 views
Here's my code in which I'm binding the command of RadRibbonRadioButton, but it is not working:

<telerik:RadRibbonGroup Header="Display X/Y in" FontSize="13">
                <telerik:RadCollapsiblePanel>
                    <telerik:RadRibbonRadioButton  x:Name="MapCoordinates"
                                                    IsChecked="{Binding MapCoordinatesChecked}"
                                                    CollapseToSmall="WhenGroupIsSmall"
                                                    CollapseToMedium="WhenGroupIsMedium"
                                                    telerik:ScreenTip.Description="Map Coordinates"
                                                    telerik:ScreenTip.Title="Map Coordinates"
                                                    Size="Large"
                                                    Text="Map Coordinates"
                                                    Command="{Binding RibbonControlRadioButtonClickedCommand}"
                                                    CommandParameter="{Binding ElementName=MapCoordinates}"
                                                    SmallImage="Resources\MapCoordinates.png"
                                                    LargeImage="Resources\MapCoordinates.png" />
 </telerik:RadCollapsiblePanel>
</telerik:RadRibbonGroup>

 

Kindly let me know, how can I bind its command in MVVM architecture.

 

Regards,

Tayyaba 

Vladimir Stoyanov
Telerik team
 answered on 19 Apr 2018
1 answer
176 views
Does anyone know how we access the Virtual Classroom as a Telerik subscriber?  I'm especially interested in the ones on WPF.  The information page says:
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've looked all through my account and haven't seen anything related to the training.  Has anyone figured out how we access it? (I have the DevCraft bundle)
Martin Ivanov
Telerik team
 answered on 19 Apr 2018
1 answer
235 views

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.DataPointInfos
06.        .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.        else
25.        {
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.}
Martin Ivanov
Telerik team
 answered on 18 Apr 2018
1 answer
60 views

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>
Stefan
Telerik team
 answered on 18 Apr 2018
1 answer
266 views

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?

Ken
Top achievements
Rank 1
 answered on 18 Apr 2018
5 answers
143 views

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.

Angelina
Top achievements
Rank 1
 answered on 18 Apr 2018
3 answers
269 views

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.

 

Martin Ivanov
Telerik team
 answered on 18 Apr 2018
1 answer
144 views

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?

Dinko | Tech Support Engineer
Telerik team
 answered on 18 Apr 2018
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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?