Telerik Forums
UI for WPF Forum
5 answers
92 views

Telerik Team,

I have a customer who has assigned many items to their QuickAccessToolbar. So many so that there are more than can be displayed on the screen at one time. The remaining items get put into the overflow panel that is accessed by clicking the RadRibbonDropDownButton. This customer prefers to access these QuickAccessToolbar items with their keyboard, so they press left-alt to bring up the AccessText. I have figured out through code how to add AccessText to the drop down button, but I can't figure out how to then have the items in the overflow window display their access keys automatically when the overflow window is opened and be available for selection.

Here is how I am assigning the AccessKey to the drop down. I would prefer to do it in xaml if possible, but I couldn’t figure that out.

private void RadRibbonView_Loaded(object sender, RoutedEventArgs e)
{
  var ribbon = sender as RadRibbonView;
  var qat = ribbon.QuickAccessToolBar;
  var dropDownButton = qat.FindChildByType<RadRibbonDropDownButton>();
  if (dropDownButton != null)
  {
    KeyTipService.SetAccessText(dropDownButton, "00");
  }
}

We are using the 2015.3.930.40 (No XAML) version of your controls.

Any help would be appreciated.

Thanks,
Paul

Dilyan Traykov
Telerik team
 answered on 21 Nov 2018
1 answer
245 views

Hi,

I want to show the values and the pen names at the cursor location for all my lines on the RadCartesianChart.

I'm using this xaml to display my data as individual lines & I can hide & add/remove items from the bound data "PlotInfos" and it is reflected on the chart:

<telerik:RadCartesianChart.SeriesProvider>
    <telerik:ChartSeriesProvider Source="{Binding FilteredSeriesInfos}">
        <telerik:ChartSeriesProvider.SeriesDescriptors>
            <telerik:CategoricalSeriesDescriptor ItemsSourcePath="PlotInfos"
                                                 CategoryPath="XCat"
                                                 ValuePath="YVal">
                <telerik:CategoricalSeriesDescriptor.Style>
                    <Style TargetType="telerik:LineSeries">
                        <Setter Property="Stroke" Value="{Binding PenBrush}"/>
                    </Style>
                </telerik:CategoricalSeriesDescriptor.Style>
            </telerik:CategoricalSeriesDescriptor>
        </telerik:ChartSeriesProvider.SeriesDescriptors>
    </telerik:ChartSeriesProvider>
</telerik:RadCartesianChart.SeriesProvider>

 

The charted data is selectable by the user. I can't find any example of TrackBall info being displayed for SeriesProvider charts using bound data. Does anyone have an example?

More xaml here : https://pastebin.com/J32Qd9gi

Thanks in advance, Steve

Dinko | Tech Support Engineer
Telerik team
 answered on 21 Nov 2018
0 answers
143 views

I'm currently looking at a project using Telerik UI for WPF 45.2017.1.222.

We have a GridViewDataColumn, and need some extra filtering capabilities on it. However, we'd also like to retain the base functionality of the Telerik filtering control. Our extra filter would operate on a different value in our view model that is related, but not something we necessarily want to surface as a column itself.

Just as an example - say we had a column of names, and wanted to filter on the usual contains/is/is not/ etc., but also wanted to filter based on whether or not those names were or were not in a whitelist. We'd have the standard field filters but would need an extra custom one as well. 

I could go the road of creating a completely custom control, but then I would be trying to re-create a lot of that base functionality and styling to keep it consistent with other columns using the default. Would there be away around that where I could simply extend the control? 

 

Thanks!

Brian
Top achievements
Rank 1
 asked on 20 Nov 2018
1 answer
256 views

Hi,

      I'm using RadSpreadsheet recently to deal with Excel and CSV files. But I found my RadSpreadsheet control has no FormatProviders property and I could not register XlsxFormatProvider and CsvFormatProvider. Seems I've added all the references required and reset the Theme file. Is there anything I ignored? My Telerik Controls Version is Ver. 2017 Q1, is that low version a suspicious cause for the problems?

    Here's my XAML snippet:

<UserControl x:Class="ProgLogMgnt.Views.ExcelView"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:models="clr-namespace:ProgLogMgnt.Models"
             xmlns:controls="clr-namespace:Mango.Controls;assembly=Mango.Wpf"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:converters="clr-namespace:Mango.Converters;assembly=Mango.Wpf"
             xmlns:mango="clr-namespace:Mango;assembly=Mango.Wpf"
             xmlns:xlsx="clr-namespace:Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml.Xlsx;assembly=Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:local="clr-namespace:ProgLogMgnt.Views"
             mc:Ignorable="d"
             d:DesignHeight="450" d:DesignWidth="800">
    <Grid>
        <telerik:RadSpreadsheet x:Name="Excelsheet">
             !--No FormatProviders property intelliSensed here and could not continue--!
            <telerik:RadSpreadsheet.FormatProviders> </telerik:RadSpreadsheet.FormatProviders>
        </telerik:RadSpreadsheet>
    </Grid>
</UserControl>

Here is my Theme file:

<ResourceDictionary.MergedDictionaries>
    <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/System.Windows.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Data.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Input.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Navigation.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.DataVisualization.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Chart.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Diagrams.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Diagrams.Extensions.xaml/>
    <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Docking.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Expressions.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.GanttView.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.GridView.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.ImageEditor.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.RibbonView.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.RichTextBoxUI.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.ScheduleView.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Spreadsheet.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Documents.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Documents.Proofing.xaml" />
    <ResourceDictionary Source="Themes/FrameworkTheme.xaml" />
</ResourceDictionary.MergedDictionaries>

 

 

Tanya
Telerik team
 answered on 19 Nov 2018
6 answers
185 views

I'm getting spurious exceptions when opening this dialog.

var dialog = new Telerik.Windows.Controls.RadOpenFolderDialog
                {
                    Header = "Import Fonts",
                    FileName = Environment.GetFolderPath(Environment.SpecialFolder.Desktop),
                    RestoreDirectory = true,
                    InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Desktop),
                    Multiselect = true
                };
                if (dialog.ShowDialog() ?? false)
                {
                    eventAggregator.GetEvent<ImportEvent>().Publish(dialog.FileNames);
                }

 

2018-10-30 16:26:23,708 [1] ERROR FontAgent.App System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at System.Windows.Controls.ItemContainerGenerator.RealizedItemBlock.ContainerAt(Int32 index)
   at System.Windows.Controls.ItemContainerGenerator.ContainerFromIndex(Int32 index)
   at Telerik.Windows.Controls.FileDialogs.HistoryNavigationPaneControl.UpdateSelectedHistoryDirectory(Boolean navigateToCurrentDir)
   at Telerik.Windows.Controls.FileDialogs.HistoryNavigationPaneControl.FileSystemInfoWrapperFactory_ChildFileDeleted(Object sender, ChildFileDeletedEventArgs e)
   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   at Telerik.Windows.Controls.FileDialogs.FileSystemInfoWrapperFactoryBase.OnChildFileDeleted(String filePath, DirectoryInfoWrapper parentFolderPath, Boolean isRename)
   at Telerik.Windows.Controls.FileDialogs.FileSystemInfoWrapperFactory.CleanupPath(String filePath, DirectoryInfoWrapper parentWrapper, Boolean isRename)
   at Telerik.Windows.Controls.FileDialogs.DirectoryInfoWrapper.<>c__DisplayClass3.<OnFileChanged>b__2()
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Any idea what's going on?  Thanks.

Vladimir Stoyanov
Telerik team
 answered on 19 Nov 2018
9 answers
91 views

I've got a map that's initialized to a certain area by a call to SetView, and the zoom-level ends up at 4. I've also got a bunch of predefined areas to jump to, and we do this by calling SetView with a LocationRect. I've noticed that when the SetView-call ends up zooming in to level 19, 20 or 21, no map tiles are loaded and the view is empty. I have to zoom out to level 18 until they are loaded. The MiniMap looks right though. Any idea what could cause this behaviour? Once i have zoomed out to level 18 I can jump to level 19-21 with map-tiles showing.

I'm using the suggested HttpsOpenStreetProvider from this thread: https://www.telerik.com/forums/openstreetmapprovider-through-https

Petar Mladenov
Telerik team
 answered on 19 Nov 2018
4 answers
207 views
When the cursor position is at the start of a paragraph, the tab/shift-tab keys are used to increase/decrease the indent.  If an annotation, such as a bookmark, is placed at the start of the paragraph, this behavior changes and a tab is inserted instead.

We use annotations to mark areas of our documents and this causes inconsistent behavior.  What's the best way to resolve this?

Here is an example of some XAML that has 2 lines that work and 1 line that fails because it has a bookmark at the start of the paragraph:
<t:Paragraph LeftIndent="0">
  <t:Span Text="This paragraph can be indented using the tab key." />
</t:Paragraph>
<t:Paragraph LeftIndent="0">
  <t:BookmarkRangeStart AnnotationID="1" Name="MyBookmark" />
  <t:BookmarkRangeEnd AnnotationID="1" />
  <t:Span Text="This paragraph cannot be indented using the tab key." />
</t:Paragraph>
<t:Paragraph>
  <t:Span Text="This paragraph can be indented using the tab key." />
</t:Paragraph>
<t:Paragraph />

Thank You
Bilisim
Top achievements
Rank 1
 answered on 19 Nov 2018
0 answers
85 views
Is it possible to replicate some of the  RadTreeListView behavior for columns in a GanttView. There are two things I am interested in: styling of the tree expander  button ( HierarchyExpandButtonStyle="{StaticResource ExpanderToggleButtonStyle}") and edit triggering on click without row selection (like EditTriggers="CellClick" in a GridViewDataColumn definition)
Philipp
Top achievements
Rank 1
 asked on 19 Nov 2018
2 answers
121 views

Hello,

      I.m using GanttView to display my MS Project and I wish to highlight a critical task by setting the corresponding item's background color to Yellow. I've looked up the documentation and tried the RowHighlightContainer, but that seems only changes the behavior when MouseOver and not working with the highlighted items. By the way, I've already  the critical tasks to HighlightItemSource Property. Any suggestions?

Here's a snippet of my code:

<Style TargetType="telerik:RowHighlightContainer">
    <Setter Property="Background" Value="Yellow" />
</Style>
...
<telerik:RadGanttView x:Name="GanttView" TasksSource="{Binding Tasks}"
                      BorderThickness="1" SelectedItem="{Binding SelectedTask, Mode=TwoWay}"
                      InitialExpandBehavior="{StaticResource InitialExpandBehavior}"
                      HighlightedItemsSource="{Binding HighlightedTasks}" MouseDown="UIElement_OnMouseDown"
                      Margin="0 6 0 0" PixelLength="{Binding PixelLength}" VisibleRange="{Binding VisibleRange}"/>
yi
Top achievements
Rank 1
 answered on 17 Nov 2018
3 answers
390 views

Dear Team,

I am facing issue with Chat Control. When I tried to change datasource of control, Messages in Chat UI does not reflect.

I have List of User in listbox. Each User has Observable collection of TextMessages. When User selection changed, I bind datasource to selected user messages. I assume that Chat control will update its UI by selected User messaged. But it is not working.

I tried to clear MessageListItems on selection change, and re-bind datasource to selected user's messages. In this case Chat UI does not show any messages.

 

For reference I have uploaded my sample project on Google drive.

Messenger App

@Admin: I had already shared the same issue few days ago, but i did not receive any solution.

 

Stefan
Telerik team
 answered on 16 Nov 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?