Telerik Forums
UI for WPF Forum
2 answers
212 views
Attached image shows the error displayed in the XAML designer for each and every Telerik control in the entire solution.  The error occurred after I added a new WPF Custom Control Library to the solution which I have since removed.  How do I resolve this?
rcmp-grc
Top achievements
Rank 1
 answered on 09 Oct 2018
2 answers
157 views
I use RadSpreadsheet control to display spreadsheet. I will like to find out cell number - row and column - where the user is pointing his mouse to. I will like to drag a string and drop it at this location. 
Sudhanshu
Top achievements
Rank 1
 answered on 05 Oct 2018
2 answers
205 views

I am using the very latest UI for WPF release (R3 for 2018).  The release notes said that RadMultiColumnComboBox was available for use, albeit in beta.  I wanted to try it but I cannot figure out where it is.

I tried replacing my XAML "<telerik:RadComboBox> tag with "<telerik:RadMultiColumnComboBox>" but Intellisense didn't know about it.

My current assembly references the following:

 

Telerik.Windows.Controls

Telerik.Windows.Controls.FileDialogs

Telerik.Windows.Controls.Input

Telerik.Windows.Controls.Navigation

What assembly am I missing?  I've tried searching the docs but I can't see anywhere they're telling me what assembly to reference

 

Martin Ivanov
Telerik team
 answered on 05 Oct 2018
2 answers
209 views

Hello,

I have put together a small sample application which is a cut down version of my main application, both the sample application and main app are suffering from similar inconsistent flyout pane behaviour.

If I click on the collapsed "Search" pane and then one of the grid's hyperlinks. It collapses immediately - this is a show stopper in my main application for when the search pane is collapsed.

If I mouse hover on the search and don't click - I can click then click on the grid hyperlinks correctly - this is the same behaviour I want when the user clicks the search button.

These are the main issues I'm facing - I can live with the behaviour presented by the toolbar and the datagrid context menu but ideally I want the pane to stay expanded while I interact with the context menu's

Any advice would be appreciated.

 

MainWindow.xaml:

<Window x:Class="DockHidingIssue.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:dockHidingIssue="clr-namespace:DockHidingIssue"
        WindowStartupLocation="CenterScreen"
        mc:Ignorable="d"
        Title="MainWindow" Height="768" Width="1024" d:DataContext="{d:DesignInstance dockHidingIssue:MainWindow}">
    <Window.Resources>

        <MenuItem x:Key="one" Header="First" Click="One_OnClick" />
        <MenuItem x:Key="two" Header="Second" Click="Two_OnClick" />
        <MenuItem x:Key="three" Header="Third" Click="Three_OnClick" />

        <ContextMenu x:Key="GridContextMenu">
            <MenuItem>Click me</MenuItem>
        </ContextMenu>
    </Window.Resources>
    <Grid>
        <telerik:RadDocking Background="White" x:Name="MainDock"
                            telerik:RadDocking.SerializationTag="ParentDockContainer">
            <telerik:RadDocking.DocumentHost>

                <telerik:RadSplitContainer telerik:RadDocking.SerializationTag="HomePageContainer">
                    <telerik:RadPaneGroup BorderBrush="{x:Null}" BorderThickness="0"
                                          telerik:RadDocking.SerializationTag="HomePageGroup">
                        <telerik:RadDocumentPane CanFloat="False" Visibility="Collapsed" CanUserClose="False"
                                                 telerik:RadDocking.SerializationTag="MainPane">
                            <WebBrowser x:Name="Browser" />
                        </telerik:RadDocumentPane>
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
            </telerik:RadDocking.DocumentHost>

            <telerik:RadSplitContainer InitialPosition="DockedBottom"
                                       telerik:RadDocking.SerializationTag="SearchContainer">
                <telerik:RadPaneGroup telerik:RadDocking.SerializationTag="SearchGroup">
                    <telerik:RadPane Header="Search" x:Name="SearchRadPane"
                                     telerik:RadDocking.SerializationTag="SearchPane"
                                     CanUserPin="True" IsPinned="False" MouseEnter="SearchRadPane_OnMouseEnter">


                        <TabControl TabStripPlacement="Bottom">
                            <TabItem Header="Search">
                                <StackPanel>
                                    <ToolBar x:Name="tbSelectorControl" ToolBarTray.IsLocked="True"
                                             KeyboardNavigation.TabNavigation="Continue"
                                             VerticalAlignment="Center" VerticalContentAlignment="Center">
                                        <Menu TabIndex="0" SnapsToDevicePixels="True" Background="Transparent">
                                            <Menu.Resources>
                                                <Style TargetType="MenuItem"
                                                       BasedOn="{StaticResource {x:Type MenuItem}}">
                                                    <Setter Property="Command"
                                                            Value="{Binding Path=Command, FallbackValue={x:Null}}" />
                                                </Style>
                                            </Menu.Resources>
                                            <MenuItem x:Name="mnuSelected" SubmenuOpened="MnuSelected_OnSubmenuOpened">
                                                <MenuItem.Header>
                                                    <StackPanel Orientation="Horizontal" Height="30">
                                                        <Label x:Name="txtSelectedFinder" Content="Selected Finder"
                                                               Height="30" />
                                                        <Image Height="8" Width="8"
                                                               Margin="8,0,0,0" />
                                                    </StackPanel>
                                                </MenuItem.Header>

                                                <MenuItem Header="Test" />
                                            </MenuItem>
                                        </Menu>
                                        <Separator />
                                    </ToolBar>
                                    <DataGrid ItemsSource="{Binding Data}" AutoGenerateColumns="False"
                                              ContextMenu="{StaticResource GridContextMenu}"
                                              ContextMenuOpening="FrameworkElement_OnContextMenuOpening">
                                        <DataGrid.Columns>
                                            <DataGridTextColumn Header="Name" />

                                            <DataGridHyperlinkColumn Header="Link" Binding="{Binding}" >

                                                <DataGridHyperlinkColumn.ElementStyle>
                                                    <Style>
                                                        <EventSetter Event="Hyperlink.Click" Handler="Hyperlink_Click" />
                                                    </Style>
                                                </DataGridHyperlinkColumn.ElementStyle>
                                            </DataGridHyperlinkColumn>
                                        </DataGrid.Columns>

                                    </DataGrid>
                                </StackPanel>
                            </TabItem>
                            <TabItem Header="Tasks">
                                <Grid x:Name="MyTasks" />
                            </TabItem>
                        </TabControl>
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
        </telerik:RadDocking>
    </Grid>
</Window>

 

Code behind:

 

using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
 
namespace DockHidingIssue
{
    /// <summary>
    ///     Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window, INotifyPropertyChanged
    {
        private IEnumerable<string> _data;
 
        public MainWindow()
        {
            InitializeComponent();
 
            DataContext = this;
 
            Data = new List<string>
            {
                @"http://www.google.com",
                @"http://www.telerik.com"
            };
        }
 
 
        public IEnumerable<string> Data
        {
            get { return _data; }
            set
            {
                _data = value;
                OnPropertyChanged();
            }
        }
 
        public event PropertyChangedEventHandler PropertyChanged;
 
        private void FrameworkElement_OnContextMenuOpening(object sender, ContextMenuEventArgs e)
        {
            (sender as FrameworkElement).Focus();
        }
 
        private void One_OnClick(object sender, RoutedEventArgs e)
        {
            Data = new List<string>
            {
                @"http://www.reddit.com",
                @"http://www.yahoo.com"
            };
        }
 
        private void Two_OnClick(object sender, RoutedEventArgs e)
        {
            Data = new List<string>
            {
                @"http://www.cnn.com",
                @"http://www.facebook.com"
            };
        }
 
        private void Three_OnClick(object sender, RoutedEventArgs e)
        {
            Data = new List<string>
            {
                @"http://www.rt.com",
                @"http://www.bbc.com"
            };
        }
 
        protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }
 
        private void MnuSelected_OnSubmenuOpened(object sender, RoutedEventArgs e)
        {
            mnuSelected.Items.Clear();
            mnuSelected.Items.Add(Resources["one"] as MenuItem);
            mnuSelected.Items.Add(Resources["two"] as MenuItem);
            mnuSelected.Items.Add(Resources["three"] as MenuItem);
        }
 
        private void SearchRadPane_OnMouseEnter(object sender, MouseEventArgs e)
        {
            SearchRadPane.Focus();
        }
 
        private void Hyperlink_Click(object sender, RoutedEventArgs e)
        {
            var link = e.OriginalSource as Hyperlink;
 
            if (link != null)
                Browser.Navigate(link.NavigateUri.OriginalString);
        }
    }
}

 

Thanks,

 

Alex

Alex
Top achievements
Rank 1
 answered on 05 Oct 2018
0 answers
259 views

<telerik:RadGridView    Grid.Row="1"
                                        AutoGenerateColumns="False"
                                            IsFilteringAllowed="False" CanUserResizeColumns="False" ShowGroupPanel="False"
                                                RowIndicatorVisibility="Collapsed"
                                                    SelectionMode="Single" SelectionUnit="FullRow"
                                                        telerik:StyleManager.Theme="Windows8Touch"
                                                            ItemsSource="{Binding Rückstellproben_RadGridView}"
                                                                SelectedItem="{Binding Rückstellproben_RadGridView_SelectedItem, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">

    <telerik:GridViewDataColumn
                                                    Header="Freigabe"
                                                        HeaderTextAlignment="Center"
                                                            MinWidth="120">

                        <telerik:GridViewDataColumn.CellTemplate>

                            <DataTemplate>

                                <telerik:RadButton  Content="Bestätigen"
                                                        IsEnabled="False"
                                                            Margin="3, 0, 3, 0"/>

                            </DataTemplate>

                        </telerik:GridViewDataColumn.CellTemplate>

                        <telerik:GridViewDataColumn.CellEditTemplate>

                            <DataTemplate>

                                <telerik:RadButton  Content="Bestätigen"
                                                        x:Name="rb_Stellplatzfreigabe_der_dritten_Rückstellprobe"
                                                            Margin="3, 0, 3, 0">

                                    <telerik:RadButton.Style>

                                        <Style TargetType="telerik:RadButton">

 

                                        <Style.Triggers>

                                            <DataTrigger Binding="{Binding Rückstellproben_RadGridView_Kryobox_Position_dritte_Probe_ID}" Value="{x:Null}">

                                                <Setter Property="IsEnabled" Value="True"/>

                                            </DataTrigger>
                                            
                                        </Style.Triggers>

                                        </Style>

                                   </telerik:RadButton.Style/>

                                </telerik:RadButton>

 

                            </DataTemplate>

 

                       </telerik:GridViewDataColumn.CellEditTemplate>

</telerik:GridViewDataColumn/>

</telerik:RadGridView>

(Left Picture - CellTemplate / Right Picture - CellEditTemplate with DataTrigger / Bottom - if i try to change the Height)

Greets

Thomas
Top achievements
Rank 1
 asked on 05 Oct 2018
2 answers
390 views

My undo menu item is defined like this:  

<telerik:RadMenuItem
      Header="Undo"
   InputGestureText="Ctrl-Z"
   Command="{Binding UndoCommand}"
   IsEnabled="{Binding SelectedProjectCanUndo}"/>

 

SelectedProjectCanUndo is a bool property on the DataContext for the main window containing the menu. I call PropertyChanged on the correct property name, and I can see that SelectedProjectCanUndo is called immediately after, on behalf of the binding. And yet the menu item does not refresh consistently. Sometimes it does, and sometimes it doesn't. I created a small similar "sandbox" application, but everything works fine there. Any ideas?


Georg
Top achievements
Rank 1
Veteran
 answered on 04 Oct 2018
1 answer
70 views
Hello everyone
Last two days I have been recording tests on Web types and Wpf types separately
Seems like 'random name generator' is working fine in Web Type test. But is it possible to use random  â€˜DataBindVariableName’ from Web types test to Wpf Type test?
Thanks.
Nikolai
Telerik team
 answered on 04 Oct 2018
3 answers
99 views

I want to change the look of Radar Series. The default Style is not the best when there are more then 5 Series.

I want my Radar Chart to look more like the one attached in the image below. I tried to Change the PointTemplate but then I am left only with the points.

Can someone point me to the right direction ?

 

 

private RadarAreaSeries CreateRadarSeries(KeyValuePair<ChartSerie, List<ChartDataPoint>> chartSeries, ChartLegendSettings legendSettings,
                                                  int                                            colorPaletteIndex)
        {
            var radarSeries = new RadarAreaSeries
            {
                LegendSettings = (SeriesLegendSettings)legendSettings,
                PointTemplate = new DataTemplate()
                {
                    VisualTree = AddPointsToSeries(chartSeries, colorPaletteIndex),
                },
                TooltipTemplate = new DataTemplate()
                {
                    VisualTree = CustomTooltip(chartSeries, colorPaletteIndex),
                },
                Opacity = 0.7,
                LabelDefinitions =
                {
                    // set the clarion format for the labels
                    new ChartSeriesLabelDefinition()
                    {
                        Template = new DataTemplate()
                        {
                            VisualTree = GetSeriesFormat(chartSeries),
                        }
                    }
                },
            };
 
            foreach (ChartDataPoint serie in chartSeries.Value)
            {
                radarSeries.DataPoints.Add(new CategoricalDataPoint()
                {
                    Category = serie.XPoint.Label,
                    Value    = (double?)serie.Value,
                });
            }
 
            return radarSeries;
        }

 

Martin Ivanov
Telerik team
 answered on 04 Oct 2018
2 answers
185 views

Hello,

I've got a RadGridView with data successfully bound to it. I need to be able to click on an individual cell and have it read by a screen reader (Job Access With Speech JAWS). When I test the screen reader it successfully reads the cell, but reads it twice. Does anyone have any idea what could be causing this. Thus far this is a problem unique to my RadGridView section and nothing else.

 

Thanks

Martin Ivanov
Telerik team
 answered on 04 Oct 2018
1 answer
73 views
Is it possible to use StyleSelector with RadDiagramContainerShape? When I try to add container shape I get an exception that the TargetType does not match RadDiagramShape. How can I go around this? 
Martin Ivanov
Telerik team
 answered on 04 Oct 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?