Telerik Forums
UI for WPF Forum
4 answers
219 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
221 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
133 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
97 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
130 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
196 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
2 answers
282 views

Dear All,

I am new to Chat control. I am practicing RadChat in Chat application, such that I have list of contacts on Left side, which bounded to List of users where

public class User: Entity
{
        public ObservableCollection<MessageBase> Messages { get => messages; set { messages = value; RaisePropertyChange(); } }
}

I have bounded RadChat DataSource as SelectedUser.Messages property, where SelectedUser is public property in my viewmodel, which contains selected item object.

As I assume that RadChat need to updated Messages as datasource is changed, but instead of refreshing messages, it appends new messages to old one.

My requirement is to Clear all messages in Chat UI, as I have selected new Messages object as datasource.

 

Here I want to clarify that data in Messages are correct according to my need. I feel it is some issue in RadChat or I need further steps to acheive my target.

<telerik:RadChat Grid.Row="2" Margin="5 0 0 0" Name="ctrlChat"                                     CurrentAuthor="{Binding CurrentAuther,UpdateSourceTrigger=PropertyChanged}"
DataSource="{Binding SelectedUser.Messages, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}">
   <telerik:EventToCommandBehavior.EventBindings>
    <telerik:EventBinding EventName="SendMessage"
                         Command="{Binding SendMessageCommand}" PassEventArgsToCommand="True" />
     </telerik:EventToCommandBehavior.EventBindings> 
    </telerik:RadChat>

 

 

Stefan
Telerik team
 answered on 14 Nov 2018
3 answers
224 views

When maximizing dockable windows on a second monitor they get cut-off. See attachment. This only happens, when the second monitor has a higher resolution, than the main monitor. Maximizing on main monitor or my third monitor which is smaller it works fine.

 

You already had a similar bug, which was obviously only fixed for the main monitor resolution:

https://www.telerik.com/forums/visual-studio-example---floating-document-is-not-maximized

 

My Telerik Version: 2018.1.220.45

 

Please get this fixed.

Dinko | Tech Support Engineer
Telerik team
 answered on 14 Nov 2018
5 answers
106 views

Good morning
I have a problem that I can not solve despite having read many threads about this topic.
I have a RadGridView with binding to table where are listed a series of processing steps coming from an external microprocessor.
the running process is always on the first line.

Faced with a change in the status of some microprocessor values, which occur with a few milliseconds, refresh the values of the only cells that interest me with these instructions (for reasons of display speed):

   ((WorkPhaseInProgress) RadGridViewWorkPhaseInProgressOnDashBoard.Items [0]). QtaDone = qtaDone;
   ((WorkPhaseInProgress) RadGridViewWorkPhaseInProgressOnDashBoard.Items [0]). QtaPartialDone = qtaPartialDone;
   ((WorkPhaseInProgress) RadGridViewWorkPhaseInProgressOnDashBoard.Items [0]). QtaDoneForHour = qtaForHourNow;
   RadGridViewWorkPhaseInProgressOnDashBoard.Items.Refresh ();

where

RadGridViewWorkPhaseInProgressOnDashBoard is the name of the RadGridView

WorkPhaseInProgress class of single item

and everything works perfectly.

my question is:
how can I change the backgroud color for a few seconds to the only cells that interest me?

I can run everything in a separate thread, but my problem is how to change freely (according to my logic related to the microprocessor) the change of back color.
I hope I explained myself
thank you in advance

Vladimir Stoyanov
Telerik team
 answered on 14 Nov 2018
1 answer
132 views

The default behaviour for the StepLineSeries is that the centre of the step is over the point, is there a way to change the position of the step up/down so it corresponds with change in the horizontal axis

e.g. Imagine I have a StepLineSeries displaying the amount of money in my piggy bank on the vertical axis, and the date on a DateTimeContinuous horizontal axis, with the following amounts on dates:

1st Jan = £0

2nd Jan = £10

5th Jan = £3

Currently the first step up happens in between the horizontal axis markers for 1st and 2nd Jan, instead of on the axis marker for 2nd Jan, which is when I actually changed the value. Is there a way to adjust this behaviour?

 

Vladimir Stoyanov
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
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?