Telerik Forums
UI for WPF Forum
4 answers
186 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
78 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
109 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
348 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
4 answers
182 views

I have a tree list view with the following child table definition:

 

        <telerik:RadTreeListView.ChildTableDefinitions>
            <telerik:TreeListViewTableDefinition ItemsSource="{Binding Children}" />
        </telerik:RadTreeListView.ChildTableDefinitions>

 

When an item that the tree list is bound to updates its child collection, the selected cells in the grid are lost. In our situation, the selected cell is on a row that is affected by the children changing.

 

Is there any way to prevent the selection from changing when the rows reload as a result of the structure changing? Or, failing that, any way to determine that the hierarchical structure is changing other than the row load and unload events? The grid is virtualized as well, so we can't tell how to distinguish between rows unloading because they have scrolled out of view, vs the hierarchical structure changing.

 

Dilyan Traykov
Telerik team
 answered on 16 Nov 2018
2 answers
197 views

Hi,

Is it possible to edit GridViewComboBoxColumn to display 2 textblocks in each comboboxitem and bind text value for both textboxes to some properties of a class?

I have added a screenshot to help understand the issue

 

 

 

Stefan
Telerik team
 answered on 16 Nov 2018
1 answer
112 views

Hi,

Is it possible to add 2 textblocks in each coboboxItem and bind text values of those textblocks to properties of some class?

 

To help better understand the issue i have added an image also

Stefan
Telerik team
 answered on 16 Nov 2018
1 answer
89 views

Hi Telerik team,

the forum search doesn't work!

Every keyword leads to null result

Please fix it.

 

Best regards

Markus

Dinko | Tech Support Engineer
Telerik team
 answered on 16 Nov 2018
1 answer
102 views

Hi,

I always want a tab of the same order.

 

<Window x:Class="WpfApp1.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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfApp1"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="auto" />
        </Grid.RowDefinitions>
        <DockPanel Grid.Row="0" >
            <TextBlock Text="AInput"/>
            <TextBox />
        </DockPanel>
        <telerik:RadGridView Grid.Row="1" ItemsSource="{Binding  AList}" />
        <DockPanel Grid.Row="2" >
            <TextBlock Text="BInput"/>
            <TextBox/>
        </DockPanel>
        <telerik:RadGridView Grid.Row="3" ItemsSource="{Binding  BList}" />
        <DockPanel Grid.Row="4" >
            <TextBlock Text="CInput"/>
            <TextBox/>
        </DockPanel>
    </Grid>
</Window>

Application Run -> Tab Key, Tab, Tab…..

 

# Current status

1. AInput -> A RadGrid (A1,B1, A2,B2,A3,B3) -> BInput -> B RadGrid(A1,B1, A2,B2,A3,B3)  -> CInput

2. AInput -> A RadGrid (B3) -> BInput -> B RadGrid(B3)  -> CInput            <=== Problem

3. AInput -> A RadGrid (B3) -> BInput -> B RadGrid(B3)  -> CInput            <=== Problem

....

 

#  hope
 1. AInput -> A RadGrid (A1,B1, A2,B2,A3,B3) -> BInput -> B RadGrid(A1,B1, A2,B2,A3,B3)  -> CInput
2. AInput -> A RadGrid (A1,B1, A2,B2,A3,B3) -> BInput -> B RadGrid(A1,B1, A2,B2,A3,B3)  -> CInput
 3. AInput -> A RadGrid (A1,B1, A2,B2,A3,B3) -> BInput -> B RadGrid(A1,B1, A2,B2,A3,B3)  -> CInput
....

 

Is this possible?

Stefan
Telerik team
 answered on 15 Nov 2018
1 answer
160 views

I have a dynamically generated document in a RadRichTextBox. When I print this document, the quality (graphics) is very bad.

1.PrintSettings printSettings = new PrintSettings();
2.printSettings.DocumentName = _protocol.Title + " - Protokoll";
3.printSettings.PrintScaling = PrintScaling.ShrinkToPageSize;
4.printSettings.PrintMode = PrintMode.Native;
5.this.documentViewer.Print(printSettings);


If I export the document as pdf and print the PDF document, then the print quality is fine.

How can I improve the print quality of the RadRichTextBox?


Martin
Telerik team
 answered on 14 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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?