Telerik Forums
UI for WPF Forum
1 answer
197 views

I am using RadCartesianChart(c#, wpf) for stack bar chart.
I want to implement Subcategories(and legend by subcateroy) and Categories.
Is it possible?
Plz show me the way.

- Sample Datas

 

- and... I want to like below..

Martin Ivanov
Telerik team
 answered on 29 Jul 2021
1 answer
228 views

We are currently working on an app that uses a RadGridView. It's rather large and we're finding that there's a lot of performance issues.

There is a very high CPU consumption when moving the mouse over, loading more columns into the gridview, and when scrolling up/down or side-to-side. We have tried virtualization settings, removing converters that were being used on the gridview cells, changing the scroll mode, have the widths set to a fixed value.

We've tried the recommended Tips and Tricks (https://docs.telerik.com/devtools/wpf/controls/radgridview/performance/tips-tricks) but haven't had great luck. 

Are there any additional recommendations for improving the gridview performance? Any feedback is appreciated!

Vladimir Stoyanov
Telerik team
 answered on 28 Jul 2021
1 answer
687 views

Hello.

 

I tried binding using Rad Image Editor. However, only white images are visible.

1. My provided source compares the normal BitmapSource binding and the RadBitmap binding, and you can see that the normal BitmapSource is bound and the RadBitmap is not.

What's my problem?


2. I've heard that it's not good to put RadBusyIndicator in the Loaded Event when using it. (In general, when using BusyIndicator, not telerik)

So, after Show(modeless), I used async Task to process the initial setting data.

Is this method okay for modeless limitation?


I Using Telerik Version 2021.2.719.45 XAML [No theme specified (default)]

 

Thanks.

Martin Ivanov
Telerik team
 answered on 28 Jul 2021
3 answers
124 views

 

Mornings,

When we set a "contains" filter with fieldlist we need to know which rows are excluded by it. We have seen that the FilteredGroups property exists but it is not accessible.

Is there any way to find these filtered elements? 

Are there any events that can be intercepted in the filtering action itself?

Library vVersion: 2017.1.117.45

Thanks for everything

Regards

 

Vladimir Stoyanov
Telerik team
 answered on 28 Jul 2021
4 answers
737 views
Chinese Characters become messy codes when pasting from MS word. But it displays properly from web pages or textboxes.
Tanya
Telerik team
 answered on 27 Jul 2021
2 answers
285 views

Hello,

I have a custom Style Selector to modify rows backgorund when selected or mouse over in a RadGridView. The style selector  works as expected when I select an item or do a multiple selection.

The problem comes when I perform a SelectAll() in my VM (or codeBehind). In this case the StyleSelector is not apply and is aparently  using the default style for selected items. 

Curiously it does work correctly when I select all the elements with the keyboard shortcut( ctrl + A)

Here is the style selector code:

<deltaTemplate:LastFoundInUpdateStyle x:Key="LastFoundInUpdateStyle">
            <deltaTemplate:LastFoundInUpdateStyle.GridViewRowCoreStyle>
                <Style TargetType="telerik:GridViewRow">
                    <Setter Property="Background" Value="#FFFFFFFF"/>
                    <Setter Property="SelectedBackground" Value="#FFE0E0E0"/>
                    <Setter Property="MouseOverBackground" Value="#FFF5F5F5"/>
                </Style>
            </deltaTemplate:LastFoundInUpdateStyle.GridViewRowCoreStyle>
            <deltaTemplate:LastFoundInUpdateStyle.LastFoundInUpdateGridViewRowCoreStyle>

                <Style TargetType="telerik:GridViewRow">
                    <Setter Property="Background" Value="LightGoldenrodYellow"/>
                    <Setter Property="SelectedBackground" Value="#FFF9F964"/>
                    <Setter Property="MouseOverBackground" Value="#FFF9F964"/>
                </Style>
            </deltaTemplate:LastFoundInUpdateStyle.LastFoundInUpdateGridViewRowCoreStyle>
        </deltaTemplate:LastFoundInUpdateStyle>
And the RadGridView :
 <telerik:RadGridView              
                Grid.Row="0"
                Margin="0,0,0,10"
                x:Name="JobcardGridView"
                SelectionMode="Extended"
                ItemsSource="{Binding JobcardViewItemQueryableCollection}"
                Style="{StaticResource RadGridViewJobcardRawReviewStyle}"
                LeftFrozenColumnCount="2" 
                FilterOperatorsLoading="JobcardGridView_FilterOperatorsLoading"
                FilteringDropDownStaysOpen="False"
                HeaderRowStyle="{StaticResource GridViewHeaderRowStyle}"
                AlternateRowStyleSelector="{StaticResource LastFoundInUpdateStyleAlternate}"
                RowStyleSelector="{StaticResource LastFoundInUpdateStyle}">

Any idea where the problem might be?

Thanks in advance

Javier
Top achievements
Rank 1
Iron
 answered on 23 Jul 2021
2 answers
196 views

Hi Telerik team

I would like to go through every cell in a RadGridView to get the value, foreground and background of each cell.

Do you have any solution for that?

For your information, I tried  gridView.ItemContainerGenerator.ContainerFromItem() but it work only for the current view port but I need all pages.

 

Many thanks for your support,

 

minh
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 23 Jul 2021
1 answer
189 views

Hello.

I'm working on changing from noxaml to xaml.
There was a problem while working.

The source below is imported to customize the Template of RadGridView GridViewSearchPanel.
<Style TargetType="telerik:GridViewSearchPanel">
	<Setter Property="Template">
		<Setter.Value>
			<ControlTemplate TargetType="telerik:GridViewSearchPanel">
				<Border BorderThickness="0" Background="AliceBlue" BorderBrush="Transparent">
					<Grid UseLayoutRounding="True">
						<Grid.ColumnDefinitions>
							<ColumnDefinition/>
							<ColumnDefinition Width="Auto"/>
						</Grid.ColumnDefinitions>
						<Grid>
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="Auto"/>
								<ColumnDefinition Width="Auto"/>
							</Grid.ColumnDefinitions>
							<TextBlock	telerik:LocalizationManager.ResourceKey="GridViewSearchPanelTopText"
													TextWrapping="Wrap"
													Margin="{TemplateBinding Padding}"
													HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
													VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
													IsHitTestVisible="False"/>
							<Grid Grid.Column="1" Margin="10 0" VerticalAlignment="Center">
								<TextBox x:Name="PART_SearchAsYouTypeTextBox"
													AutomationProperties.Name="search as you type textBox"
													Text="{Binding SearchText, Mode=TwoWay}"
													MinWidth="160"
													MaxWidth="200"
													Padding="5 3 15 3"
													telerik:TextBoxBehavior.UpdateTextOnEnter="True"
													IsTabStop="{TemplateBinding IsTabStop}"
													FontSize="{TemplateBinding FontSize}"
													FontFamily="{TemplateBinding FontFamily}"
													MinHeight="28"/>
								<telerik:RadButton	IsTabStop="False" Visibility="Visible"
											Style="{StaticResource ClearSearchValueButtonStyle}"
											Command="searchPanel:GridViewSearchPanelCommands.ClearSearchValue"/>
							</Grid>
						</Grid>

					</Grid>
				</Border>
			</ControlTemplate>
		</Setter.Value>
	</Setter>
</Style>

The method I know of is to take the style of noxaml as it is and redefine it.

<Style x:Key="ClearSearchValueButtonStyle" TargetType="telerik:RadButton">
        <Setter Property="Template" Value="{StaticResource ClearSearchValueButtonTemplate}"/>
        <Setter Property="Foreground" Value="{telerik1:FluentResource ResourceKey=IconBrush}"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Width" Value="28"/>
        <Setter Property="Height" Value="28"/>
        <Setter Property="HorizontalAlignment" Value="Right"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Foreground" Value="{telerik1:FluentResource ResourceKey=AccentMouseOverBrush}"/>
            </Trigger>
            <Trigger Property="IsPressed" Value="True">
                <Setter Property="Foreground" Value="{telerik1:FluentResource ResourceKey=AccentPressedBrush}"/>
            </Trigger>
        </Style.Triggers>
    </Style>

If other styles are not defined, will they be applied automatically?

The style was applied as 'Setting Application-Wide Built-in Theme in the Code-Behind'.

 

Also, Is there a way to override Style 'x:key="SearchPanel" TargetType="telerik:GridViewSearchPanel"' and apply it to <telerik:RadGridView> as a key value?

If you create and define multiple gridviews in one xaml, they are all applied. I want to apply only one.

 

Thanks.

Dilyan Traykov
Telerik team
 answered on 22 Jul 2021
5 answers
219 views

Hello,

I'm using Telerik WPF R1 2021

We discovered that PolarLineSeries are not correctly displayed when we have a PolarAxis that is too strict for the data to display.

We work a lot with graph and happen to dynamically (or from user input) resize the axis for readability

 

For example, I have a dataset in spiral


<telerik:PolarDataPoint Angle="0" Value="0"/> 
<telerik:PolarDataPoint Angle="30" Value="1"/> 
<telerik:PolarDataPoint Angle="60" Value="2"/> 
<telerik:PolarDataPoint Angle="90" Value="3"/> 
<telerik:PolarDataPoint Angle="120" Value="4"/> 
<telerik:PolarDataPoint Angle="150" Value="5"/> 
<telerik:PolarDataPoint Angle="180" Value="6"/> 
<telerik:PolarDataPoint Angle="210" Value="7"/> 
<telerik:PolarDataPoint Angle="240" Value="8"/> 
<telerik:PolarDataPoint Angle="270" Value="9"/> 
<telerik:PolarDataPoint Angle="300" Value="10"/> 
<telerik:PolarDataPoint Angle="330" Value="11"/> 

If I reduce the PolarAxis to display between 3 and 8, overflow points will be displayed outside the graph and other point will be displayed according to the difference between minvalue and the actual value of the point

 

Here a screenshot of my test projet attached

Is that normal or did I miss something to do that ?

Right now, we override the PolarLineSerie to udpate the source according to the actual min and max value of the axis

You can find my project attached to this post

 

Regards

Thomas

Thomas
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 22 Jul 2021
1 answer
233 views

Hello.

I’m trying to display a pre-generated docx document using the RadRichTextbox in my WPF app but it doesnt render the right and sometimes bottom borders around the text elements.

The word document itself is generated through the ReportProcessor using a TRDX reporting template. The template has borders around the TextBox and as you can see in the docx file they are printed to the document.

You can see the missing border in the attached picture, you can also replicate the problem using the test app.

Does anyone knows how to fix this?


Tanya
Telerik team
 answered on 22 Jul 2021
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
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?