Telerik Forums
UI for WPF Forum
1 answer
78 views

I have a wpf radtreeview, now I can use left click to select item,

but i want to the selection behavior to be changed to double click, how could I achieve that?

Martin Ivanov
Telerik team
 answered on 16 Apr 2024
1 answer
85 views

Can you please help me to createing the diagram layout algoritham to set diagram, because we cannot set static position of all nodes.

We want these types of layouts to be in the image.

Martin Ivanov
Telerik team
 answered on 16 Apr 2024
1 answer
95 views
Hi
I'm using RadDocking.LoadLayout to save and restore the positions of docked panels.
My application is localized and every string in xaml is set in this form (for instance...):

Header="{DynamicResource ResourceKey={x:Static r:ResourcesKeys.key}}"
Where r:ResourcesKey.key is an index in the language dictionary selected in the application.

When I change the localization with  an existing xml for layout, the headers of panels are read from the xml and are in the previous language.
Ho can I force to rewrite the strings in the right language (without delete the layout xml file)?

Thank you
Luigi

Martin Ivanov
Telerik team
 answered on 16 Apr 2024
0 answers
105 views

Hi Telerik Team,
I'm using the below telerik version 2023.2.718.45

The default style is extracted through Office2016 theme.

For the RadGridView footers, the below are the styles used.

<Style x:Key="DefaultGridViewFooterRowStyle" TargetType="telerik:GridViewFooterRow">
                <Setter Property="Height" Value="35" />
                <Setter Property="BorderThickness" Value="0" />
            </Style>

            <Style x:Key="DefaultGridViewFooterCellStyle" TargetType="telerik:GridViewFooterCell">
                <Setter Property="Background" Value="#F1F1F1F1" />
                <Setter Property="BorderThickness" Value="0" />
                <Setter Property="HorizontalAlignment" Value="Stretch" />
                <Setter Property="HorizontalContentAlignment" Value="Stretch" />
                <Setter Property="FontWeight" Value="Normal" />
                <Setter Property="FontSize" Value="10" />
                <Setter Property="Padding" Value="0" />
            </Style>


But, from where the vertical lines are coming in the footer (Please refer the attachment).
Also, if I perform Column resizing, then the vertical line is not showing for some time and showing for some other time (Please refer 2nd attachment).
Also, sometimes the border which I used to display the sum in the footer having display issue, means the right border is hiding sometimes when I perform column resizing and sometimes without column resizing the same issue occurs.
It looks like resolution issue.
Please let us know any solution to avoid this line and right border hiding issue. It looks weird.

Premkumar
Top achievements
Rank 1
Iron
Iron
 asked on 16 Apr 2024
1 answer
122 views
Hello. How I can styling WatermarkContent in RadAutoCompleteBox?
For example DateTimeWatermarkTemplateProperty in RadDateTimePicker is simple to set. 
Martin Ivanov
Telerik team
 answered on 15 Apr 2024
2 answers
86 views

Hello,

I am new to Telerik, in my application we are using RadGridView and load the data dynamically.

when data is large, and I copy pasted from excel then my cells are not highlighted. data is pasted correctly but highlighted cell is not working.

If I edit it manually then it's working fine and I handled this highlighted cell in "CellEditEnd" event.

I walk through multiple forums but none of them are working for me.

I tried to raise ClipboardPaste event but that is not available my RadGridView control.

Also I manually created below function but "MyRadGrid.ChildrenOfType<GridViewRow>()" is not giving me all the index of my radgridview it gives 10 or 15 according to the screen size because of virtualization

private void HighlightUpdateCell(int rowIndex, int columnIndex)
        {           
            int rowNumber = 0;
            foreach (GridViewRow gr in MyRadGrid.ChildrenOfType<GridViewRow>())
            {
                if (rowNumber == rowIndex)
                {
                    gr.Cells[columnIndex].Background = Brushes.Yellow;
                    break;
                }
                rowNumber++;
            }
        }

Another approach was to create a property and set it in style but that is also not working. as cells are not showing in edited mode after pasting data.

I also tried using CellStyleSelector but the is applying changes only on load after that this method is not call itself.

 

I tried for ClipboardPaste event but unable to find that in my application.

I am using latest Telerik libraries from 2024

 

Can you please help to highlight the cells of RadGridView after paste is completed.

 

 

Meera
Top achievements
Rank 1
Iron
 answered on 12 Apr 2024
0 answers
63 views

Which controls can be used for the tool shown in the image.

[ I have circled the red color inside the image control ]

Parth
Top achievements
Rank 1
Iron
Iron
 asked on 10 Apr 2024
0 answers
75 views

I have an ImageInline in xaml file. And loading this image file is relatively slow. So I think it is the main reason throw that exception. Has anyone had this problem? Please help me answer this question.
Many thanks.

Telerik.Windows.Documents (Version: 2021.1.223.45) 

Telerik.Windows.Documents.FormatProviders.Xaml (Version: 2021.1.223.45)

Telerik.Windows.Documents.FormatProviders.Html(Version: 2021.1.223.45)

Tran
Top achievements
Rank 1
 asked on 10 Apr 2024
1 answer
93 views

Hello,

we currently use a HeatMap for our C# WPF (.NET Core) project to visualize data with a custom HeatMapDefinition.
Now we want the HeatMap to show a selection border for the selected cell, but this is not working for us as no selection border is shown.

The problem is easily reproducible in the xaml-sdk (with the CustomHeatMapSourceAndDefiniton project).
Just change in the MainWindow.xaml the RadHeatMap like this:
        <telerik:RadHeatMap x:Name="heatmap"
                            SelectionMode="SingleDataItem"
                            SelectedCellBorderColor="Magenta"
                            SelectedCellBorderThickness="5">
...

And limit the GetData parameters in MainWindow.xaml.cs to something like:
CustomHeatMapItem[,] data = this.GetData(20, 30);

According to the documentation, setting SelectionMode, SelectedCellBorderColor and SelectedCellBorderThickness like this should be sufficient, but in our test no border was drawn.

We tested in our project with a CategoricalDefinition and there the selection does work.

Looking into the source code of the HeatMap, the HeatMapColorGrid should be responsible to draw the selection border in different combinations (with and without hover, etc).
In the method RedrawAllCells() for example:
this.DrawSelectedCell(rowIndex, columnIndex, intColor);

However those calls all seem gated by if-checks with a call to this.Definition.IsCellSelected(rowIndex, columnIndex).

Which calls the method IsCellSelected from the current definition casted as HeatMapDefinition.
This method in the HeatMapDefinition always returns false and is internal, so we cannot override it within our derived custom HeatMapDefinition (as opposed to e.g. CategoricalDefinition, which overrides it).

So the question is, how do we get the HeatMap to draw the selection border, if we cannot tell it that the cell is selected?
Or did we miss something?

Martin Ivanov
Telerik team
 answered on 09 Apr 2024
1 answer
72 views

Hello,

I have a floating RadPane, I need to identify when the user stops dragging it. It can be still floating and and not docked.

Stenly
Telerik team
 answered on 08 Apr 2024
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
TimeBar
Styling
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
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?