Telerik Forums
UI for WPF Forum
7 answers
172 views

When I open WPF designer to preview design I always have exception "InvalidOperationException: 'RadComboBox' TargetType does not match type of element 'NumberComboBox'."

I think, we have problem with controls in the Properties window.

Dinko | Tech Support Engineer
Telerik team
 answered on 04 Jan 2019
0 answers
206 views

Hi,

I know importing HTML does not support inserting merge fields automaticaly but in simple loop we can do it in code.

As you can see, we selecting text like {MERGEFIELD NAME} and inserting new merge field. It is working fine, and highlight fields or preview results works correct. The only problem is, when I set some styles in text before merge field, save html and then loads it again, mergefield is going to inherit these styles. This situation is illustrated on screenshots. I set color for second line, then after my InsertMergeFields method inserts all fields, the second line has style from first line, and the third line has styles from second.

It looks like a default behavior from document editors, when caret is placed after red text, next letter will be also red, but can I do something with this?

 

public static void InsertMergeFields(RadDocument radDocument)
       {
           foreach (var mergeField in new DocumentTextSearch(radDocument).FindAll("{MERGEFIELD.*?}"))
           {
               mergeField.SetSelection(radDocument);
               var fieldCode = GetFieldCode(radDocument.Selection.GetSelectedText());
               radDocument.InsertField(new MergeField() { PropertyPath = fieldCode }, FieldDisplayMode.Code);
           }
       }
Jakub
Top achievements
Rank 1
Iron
 asked on 03 Jan 2019
0 answers
147 views

Hi, 

I am using RichTextBox in LayoutMode="Flow" and Padding="10". It is working when writing new content, but one of application user copied some content from another editor (maybe MSWord, I dont know) and the padding is gone. Well, it looks like a padding but when exporting this document to xaml or html, the Indent property for this spans is -97.005. Can I prevent from this situation? 

 

As you can see on screenshots, the Indent is set to minus value and richtextbox even when padding is set to 10 does not take this into account.

Jakub
Top achievements
Rank 1
Iron
 asked on 03 Jan 2019
1 answer
185 views

Hello,

If I want to use telerik's FileDialog, what references do I need to add?

What Settings are required if FileDialog also implements the Fluent theme?

When the RadOpenFileDialog is started, how do we blur the content behind it

Martin Ivanov
Telerik team
 answered on 02 Jan 2019
3 answers
1.2K+ views

Hi..

Why do I get this error?

The tag 'RadMap' does not exist in XML namespace 'http://schemas.telerik.com/2008/xaml/presentation'.

 

I have 

xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"

 

And  references to Telerik.Windows.Controls

Telerik.Windows.Controls.Data

Telerik.Windows.Data + DataVisualization

Telerik.Windows.Data

 

What am I missing?

thx

 

Dinko | Tech Support Engineer
Telerik team
 answered on 01 Jan 2019
8 answers
259 views
Hello everyone!
How do I change the layout of a specific page of my RadDocument?
Tanya
Telerik team
 answered on 31 Dec 2018
1 answer
319 views

Hello, Yoan.

Yes, as you said, the theme will affect FontSize effect. I set telerik:StyleManager.Theme=“Fluent” , its setting for FontSize is invalid.
So, how can I modify FontSize if I still use the Fluent theme?

Thanks

Yoan
Telerik team
 answered on 28 Dec 2018
2 answers
317 views
Hello,

how can i assign a ControlTemplate in an Icon Property of RadMenuItem ? I have a vectorial image with a Path and i want to put it in an RadMenuItem...

Thanks in advance.
Nuno
Ankesh
Top achievements
Rank 1
 answered on 27 Dec 2018
1 answer
132 views

Hi there,

I'm new, and I'm currently trying to understand how RadDocking works.

Is there any way that I can put RadPanes'  (which is a child inside of a RadDocumentHost) headers in another location?

 

Martin Ivanov
Telerik team
 answered on 27 Dec 2018
2 answers
1.9K+ views
I've been trying to use RadGridView to display a relatively simple list of data.  No grouping, sorting or even selecting of cells allowed.  I tried to customize it to not show any borders or grid lines and use my custom background  but I seem to be unable to get rid of a single vertical line along the left side of the grid.

I've tried to do this by turning off all borders and make all of my backgrounds use the dark background color you can see in the image.  (a static resource brush named "GsBackgroundDark")  I tried to set the default styles of all of the element types that the grid apppears to use (GridViewCell, GridViewHeaderCell, etc).  But clearly I'm missing something.

Can you tell me what else I need to do?

I have attached an image showing you what I see.  What am I missing to get rid of that line on the left?

Below is  the XAML I'm using

<Window x:Class="TestApp.MainWindow"
        mc:Ignorable="d"
        xmlns:sys="clr-namespace:System;assembly=mscorlib"
        xmlns:gl="clr-namespace:TestApp"
        xmlns:net="http://schemas.gelsight.com/mobile/net"
        Title="MainWindow"
        >
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Colors.xaml"/>
            </ResourceDictionary.MergedDictionaries>
 
            <gl:MainWindowVm x:Key="ViewModel"/>
 
 
            <Style TargetType="{x:Type tk:GridViewCell}">
                <Setter Property="Background" Value="{StaticResource GsBackgroundDark}"/>
                <Setter Property="BorderBrush" Value="Transparent"/>
                <Setter Property="SelectedBackground" Value="{StaticResource GsBackgroundDark2}"/>
                <Setter Property="BorderThickness" Value="0"/>
            </Style>
            <Style TargetType="{x:Type tk:GridViewHeaderCell}">
                <Setter Property="Background" Value="{StaticResource GsBackgroundDark}"/>
                <Setter Property="BorderBrush" Value="Transparent"/>
                <Setter Property="BorderThickness" Value="0"/>
            </Style>
            <Style TargetType="{x:Type tk:GridViewSearchPanel}">
                <Setter Property="Background" Value="{StaticResource GsBackgroundDark}"/>
                <Setter Property="BorderBrush" Value="Transparent"/>
                <Setter Property="BorderThickness" Value="0"/>
            </Style>
            <Style TargetType="{x:Type tk:GridViewGroupPanel}">
                <Setter Property="Background" Value="{StaticResource GsBackgroundDark}"/>
                <Setter Property="BorderBrush" Value="Transparent"/>
                <Setter Property="BorderThickness" Value="0"/>
            </Style>
            <Style TargetType="{x:Type tk:GridViewScrollViewer}">
                <Setter Property="Background" Value="{StaticResource GsBackgroundDark}"/>
                <Setter Property="BorderBrush" Value="Transparent"/>
                <Setter Property="BorderThickness" Value="0"/>
            </Style>
        </ResourceDictionary>
    </Window.Resources>
    <Grid DataContext="{StaticResource ViewModel}">
     
        <tk:RadGridView      ItemsSource="{Binding Licenses}"
                        CanUserGroupColumns="False"
                        CanUserSearch="False"
                        Background="{StaticResource GsBackgroundDark}"
                        Foreground="{StaticResource GsForegroundLight}"
                        ColumnsSelectionButtonVisibility="Collapsed"
                        BorderThickness="0"
                        BorderBrush="{StaticResource GsBackgroundDark}"
                        ShowGroupPanel="False"
                        ShowColumnSortIndexes="False"
                        ShowSearchPanel="False"
                        ShowColumnFooters="False"
                        ShowGroupFooters="False"
                        CanUserSelectColumns="False"
                        Padding="0"
                        CanUserResizeColumns="False"
                        CanUserSearchInHiddenColumns="False"
                        DataLoadMode="Asynchronous"
                        Focusable="False"
                        GridLinesVisibility="None"
                        IsFilteringAllowed="False"
                        RowIndicatorVisibility="Collapsed"
                        CanUserSortColumns="False"
                        CanUserReorderColumns="False"
                        AutoGenerateColumns="False"
                        IsHitTestVisible="False"
                        CanUserSelect="False"
                        MaxWidth="500" Style="{DynamicResource RadGridViewStyle1}"  
                        SearchPanelForeground="{StaticResource GsForegroundLight}"
                        SearchPanelBackground="{StaticResource GsBackgroundDark}"
                        ColumnBackground="{StaticResource GsBackgroundDark}"
                        GroupPanelBackground="{StaticResource GsBackgroundDark}"
                        GroupPanelForeground="{StaticResource GsForegroundLight}"
                        AlternateRowBackground="{StaticResource GsBackgroundDark}"
                        >
            <tk:RadGridView.HeaderRowStyle>
                <Style TargetType="{x:Type tk:GridViewHeaderRow}">
                    <Setter Property="Background" Value="{StaticResource GsBackgroundDark}"/>
                    <Setter Property="BorderBrush" Value="Transparent"/>
                    <Setter Property="Foreground" Value="{StaticResource GsForegroundLight}"/>
                    <Setter Property="BorderThickness" Value="0"/>
                    <Setter Property="FontSize" Value="20"/>
                    <Setter Property="FontWeight" Value="Bold"/>
                </Style>
            </tk:RadGridView.HeaderRowStyle>
            <tk:RadGridView.Columns>
                <tk:GridViewDataColumn Header="Feature" Width="Auto" DataMemberBinding="{Binding Feature}" />
                <tk:GridViewDataColumn Header="Version" Width="Auto" DataMemberBinding="{Binding Version}"/>
                <tk:GridViewDataColumn Header="Expires" Width="1*" DataMemberBinding="{Binding Expires}"/>
            </tk:RadGridView.Columns>
        </tk:RadGridView>
    </Grid>
</Window>

Yoan
Telerik team
 answered on 27 Dec 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
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?