Telerik Forums
UI for WPF Forum
6 answers
491 views

Hello

 

how can I set custom color to the HeaderBackground property of the RadLayoutControl (LayoutControlExpanderGroup)?

I tried similar way for setting implicit styles mechanism like setting the HeaderBackground of RadLayoutControl, but this not work:

<Style TargetType="telerik:RadLayoutControl" BasedOn="{StaticResource RadLayoutControlStyle}">
    <Setter Property="HeaderBackground" Value="Yellow" />
</Style>

 

It can not be difficult, but I do not find anything in the documentation.

Thanks for any help.

Birgit

Dinko | Tech Support Engineer
Telerik team
 answered on 22 Nov 2018
3 answers
223 views

Hi, right now I'm using the WPF GridView, and have the filter row turned on. I've turned off the filtering panel and instead selected a default filter for the user to make it simple. But my problem is that if a user has their cursor in the first filtering textbox and they hit the "tab" button, it selects the next filtering cell, rather than the next filtering textbox. They're essentially having to press tab twice to move from filter textbox to filter textbox.

 

I saw the "TabStopMode="Skip"" but that seems to only apply to the actual cells of the gridview, not the filter row. So how do I prevent having to double tab in the filter row?

Vladimir Stoyanov
Telerik team
 answered on 22 Nov 2018
5 answers
109 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
273 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
162 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
287 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
218 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
119 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
232 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
104 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
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?