Telerik Forums
UI for WPF Forum
2 answers
428 views

Hello,

Could you, please, help me to make RadRichTextBox's caret visible?

I've tried to use solution with custom CaretFactory from this post... No results, unfortunately

Is it possible to make caret visible?

 

Here is some code examples of RadRichTextBox usage (my telerik version: 2018.3.911.45):

<telerik:RadRichTextBox x:Name="descriptionRichBox" 
            Grid.Row="0" Grid.Column="1" Margin="0,2,0,5"  MinHeight="70"      
 BorderThickness="{Binding IsReadOnly, Converter={localConverters:BoolToBorderThicknessConverter}}"
            FontSize="{Binding Source={StaticResource MediumNormal}, Path=Size}"
            FontFamily="{Binding Source={StaticResource MediumNormal}, Path=Family}"
            IsReadOnly="{Binding IsReadOnly}" GotFocus="RichTextBox_GotFocus"
            DocumentInheritsDefaultStyleSettings="True" IsSpellCheckingEnabled="False"
                                />
<telerik:HtmlDataProvider RichTextBox="{Binding ElementName=descriptionRichBox}"
    Html="{Binding EditableObject.Description, Mode=TwoWay}"       
                                  />
<Style TargetType="telerik:Caret">
  <Setter Property="Template">
        <Setter.Value>
            <ControlTemplate TargetType="telerik:Caret" >
                <Grid x:Name="RootElement"  >
                    <ScrollViewer   x:Name="ContentElement" BorderThickness="0" Padding="0" />
                            <Rectangle x:Name="Rectangle" />
                </Grid>
            </ControlTemplate>
        </Setter.Value>
    </Setter>
    <Setter Property="HorizontalAlignment" Value="Left" />
    <Setter Property="VerticalAlignment" Value="Top" />
    <Setter Property="AcceptsReturn" Value="True" />
    <Setter  Property="CaretBrush" Value="Black"/>
    <Setter Property="Padding" Value="0" />
    <Setter Property="Foreground" Value="Transparent" />
</Style>
public class DescriptionCaretFactory : ICaretFactory
    {
        public Caret CreateCaret()
        {
            return new Caret { Width = 2, MinWidth = 2, Height=5,
                IsBlinking = true, IsEnabled = true,
                Visibility = System.Windows.Visibility.Visible,
                ToolTip = "test caret",
                CaretBrush = System.Windows.Media.Brushes.Black, };
        }
    }

 

Best regards,

Ivan.

Ivan
Top achievements
Rank 1
 answered on 07 Dec 2018
1 answer
411 views

I have created a Telerik.Windows.Documents.Spreadsheet.Model.Workbook (with a single Worksheet) programmatically. I can export it to Excel no problem.

How can I print it?

I have found the following article: https://docs.telerik.com/devtools/wpf/controls/radspreadsheet/features/ui-printing#How_to_print_RadSpreadsheet

...but this would force me to work with the UI Control, which I don't want to do. Is it possible to print the Worksheet without the use of the UI control. I still want all the printing options, such as setting a header and footer, forcing the first row to be repeated on every page, control over portrait vs. landscape printing, etc.

Is there any way to do this?

Thanks in advance,

Bartek

Martin
Telerik team
 answered on 06 Dec 2018
2 answers
81 views

There was an old post about this but I've never been able to find it. At high zoom levels (20 and 21), the Aerial mode usually doesn't show images. Other modes show a zoomed-in version of the previous images, including AerialOnDemand. There doesn't seem to be a way not show labels with AerialOnDemand, unfortunately. Can Aerial be changed so that it also shows the zoomed-in previous images?

Bing documentation says: "Note: Some imagery may not be available at all zoom levels for all locations. If imagery is not available at a location, a message is returned in the ErrorDetails collection of the response."
Vladimir Stoyanov
Telerik team
 answered on 06 Dec 2018
1 answer
150 views
Hi. 
I have a program that in some cases need to show 20+ charts, each with 20 000+ data points, and the charts can be manipulated with pan and zoom so that every chart changes simultaneously. It also needs to have dynamic sampling so that the charts are simplified when displaying many points, but show detail when zoomed in. It works fine when panning, all the charts update smoothly. However when I zoom in or out, I need to change the chartdatasource sampling threshold to adjust the detail, and this is very slow. It takes several seconds for the operation to complete and all charts to update. Why does this take so long and is there any way to speed up the operation?
Dinko | Tech Support Engineer
Telerik team
 answered on 06 Dec 2018
1 answer
354 views

Why isn't it possible to set the background to transparent?

It always shows it white or another color you set but not transparent

Dilyan Traykov
Telerik team
 answered on 06 Dec 2018
5 answers
158 views
When using the Today-button to select todays date, the selected value also includes the current time. Not what I would expect for the DatePicker. We solve it easy at our end, but I thought you might want to now.
Magnus
Top achievements
Rank 1
 answered on 06 Dec 2018
6 answers
356 views

I am trying to draw a phasor diagram similar to http://www.texample.net/media/tikz/examples/PDF/phasor-diagram.pdf. Basically a polar chart with vectors radiating from the origin based on the magnitude and phase angle between 2 or more signals. A PolarPointSeries is really close but I basically need a drop line to draw the line from the point back to the origin. Changing the symbol at the point to an arrow with the correct orientation would be a nice touch as well.

 

Dinko | Tech Support Engineer
Telerik team
 answered on 05 Dec 2018
5 answers
347 views

Hi there,

I have a RadContextMenu on a TreeListView and I've successfully hooked up the context menu to a command in my MVVM view model like this...

... 

          <telerik:RadContextMenu.ItemContainerStyle>
            <Style TargetType="telerik:RadMenuItem" BasedOn="{StaticResource RadMenuItemStyle}" d:DataContext="{d:DesignInstance data:IContextMenuItem}">
              <Setter Property="Command" Value="{Binding Command}"/>

This gets fired on both left clicks on the menu item as well as right clicks on the menu item.  Is it possible to handle right clicks separately?

Thanks

Russell

Dilyan Traykov
Telerik team
 answered on 04 Dec 2018
2 answers
183 views

Hello. I'm new to using Telerik and I'm experiencing strange behavior when editing data in the RadGridView control. I have a GridViewMaskedInputColumn and I lose the first character if I start editing the content of the cell by pressing 2 or more keys in quick succession. I've searched and searched these forums (as well as Telerik's guides and Google), but I could not find anything that helped. Please forgive me if I overlooked something.

My project currently using version 2018.1.122.45 of Telerik's WPF suite. 

Here's a snippet of my XAML, please let me know if more detail is needed. 

<telerik:RadGridView Name="MainGridView"
                   AutoGenerateColumns="False"
                   CanUserDeleteRows="False"
                   CanUserInsertRows="False"
                   CanUserReorderColumns="True"
                   CellValidating="MainGridView_CellValidating"
                   IsBusy="{Binding IsGridRefreshing}"
                   IsFilteringAllowed="False"
                   IsSynchronizedWithCurrentItem="True"
                   EditTriggers="TextInput"
                   RowIndicatorVisibility="Collapsed"
                   SelectionMode="Single"
                   SelectionUnit="FullRow"
                   ShowGroupPanel="False"
                   ShowSearchPanel="True"
                   ItemsSource="{Binding Path=DetailGridVM.TblDetailGrid}"
                   SelectedItem="{Binding Path=DetailGridVM.SelectedDetail, Mode=TwoWay}">
     
        <telerik:GridViewMaskedInputColumn Header="Vendor Number"
                                          Mask=">a6"
                                          MaskType="Standard"
                                          Name="GV_Column_VendorNumber"
                                          Width="65"
                                          DataMemberBinding="{Binding VendorNumber, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
 
            <telerik:GridViewMaskedInputColumn.HeaderCellStyle>
                <Style TargetType="telerik:GridViewHeaderCell">
                    <Setter Property="TextAlignment" Value="Center"/>
                    <Setter Property="TextWrapping" Value="Wrap"/>
                    <Setter Property="Background" Value="#FF9AE1B4"/>
                    <Setter Property="Foreground" Value="Black"/>
                </Style>
            </telerik:GridViewMaskedInputColumn.HeaderCellStyle>
             
            <telerik:GridViewMaskedInputColumn.EditorStyle>
                <Style TargetType="telerik:RadMaskedTextInput">
                    <Setter Property="SelectionOnFocus" Value="SelectAll"/>
                </Style>
            </telerik:GridViewMaskedInputColumn.EditorStyle>
        </telerik:GridViewMaskedInputColumn>
     
</telerik:RadGridView>

 

Please note that the "Mask" property for the column object doesn't actually contain the ">" sign. It uses the correct notation as demonstrated in Telerik's guide, I just can't figure out how to escape it in this forum. 

Thank you for any assistance. 

 

Alex
Top achievements
Rank 1
 answered on 04 Dec 2018
0 answers
120 views

Hello, my task is show visible links between appoinments (example in the attachment).

Can you explain me how i can recieve the coordinates of each AppointmentItem?

I can recieve it by VisualTreeHelper, but using this approach i recieve only AppointmentItems which are prepared for drawing (due virtualization).  

Maybe i can use more simple way to recieve the coordinates? Or maybe i can disable virtualization for the RadScheduleView?

Иван
Top achievements
Rank 1
 asked on 04 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
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?