Telerik Forums
UI for WPF Forum
1 answer
423 views

This is a pretty minor issue but the #FF808080 gray appears twice in the default color picker (once at the bottom of first column and once at top of 2nd column) which can lead to a little strangeness.

If you start the color picker with this color selected, it will show both boxes as selected.


The other strangeness I was able to duplicate in the WPF demos (R1 2022SP1) is if I have the 2nd column box gray selected and close the color picker, then when I reopen it the gray at the bottom of the 1st column will be selected.

So start with this:

Click gray at bottom of 1st column, then reopen the screen. The box at the top of the 2nd color will remain selected.

There is a little bit of strangeness too when you have that shade of gray selected and then you click down into one of the "standard colors", it appears to leave the selected border around the original gray color (but does correctly put the selected border around the standard color).


Am I misinterpreting this or is this a bug?

Stenly
Telerik team
 answered on 15 Mar 2022
2 answers
106 views

Hello everyone,

I read the most topics with a similiar problem but nothing had worked for me.

I use WPF with MVVM and have a RadGridView. The binding from my Xaml code is with a button and a CommandParameter that passes the RadGridView to my method.

The Code looks like this

private void LoadData(object obj)
{
    RadGridView rad = obj as RadGridView;
    
    GridViewDataColumn col = new GridViewDataColumn();
    col.DataMemberBinding = new System.Windows.Data.Binding("Name");
    col.Header = "Name";

    rad.Columns.Add(col);

    //How to add now a new row to this?
}

How can I add now a new Raw with code? Something like rad.Rows.Add() does not exist.

Hope anybody can help me :-)

Guarana91
Top achievements
Rank 1
Iron
Iron
 answered on 14 Mar 2022
0 answers
171 views

Hi Team

We are facing frequent more bottom margin issue in RadTreeView with TreeVirtualizationMode="Hierarchical".

There is two level of grouping like parent, child and grandchild. With Hierarchical mode it is happening frequently. But with Recyling and Standard mode it is not happening but the performace is not good. So it is not helping right now.

Tried to adjuest the padding, margins of TreeViewPanel. Nothing helpped. And the number of grand child count is dynamic so cannot assign Height as well.

Need some suggestion. Thanks in advance!

Eg.

Parent A (Expander)

     Child A (Expander)

          Grandchild A (Content)

          Grandchild B (Content)

-----------------------------

----More Blank Space----

------------------------------

Parent B (Expander)

 

Code


<telerik:RadTreeView x:Name="SearchResultTreeView"
                                     BorderThickness="0"
                                     PreviewKeyDown="SearchResultTreeView_PreviewKeyDown"
                                     telerik:RadTreeViewItem.Selected="SearchResultTreeView_Selected"
                                     ScrollViewer.HorizontalScrollBarVisibility="Disabled"
                                     IsVirtualizing="True" 
                                     telerik:TreeViewPanel.TreeVirtualizationMode="Hierarchical"
                                     PreviewMouseLeftButtonDown="SearchResultTreeView_PreviewMouseLeftButtonDown" 
                                     Margin="0,-1,-1,0" ItemsSource="{Binding MyDummyCollectionView}"
                                     Background="{x:Null}" 
                                     BorderBrush="{x:Null}">

Uma
Top achievements
Rank 1
 asked on 11 Mar 2022
2 answers
124 views

Hello,

I am using the CardView-Control. Is there an event when the user expands/collapses a card?

regards

Tobias

Stenly
Telerik team
 answered on 10 Mar 2022
1 answer
207 views

Hello,

I'm using a custom SettingsPane based on the one you developped (Telerik\UI for WPF R2 2017\Themes.Implicit\WPF40\Windows7\Themes). This pane is used to customize all of the shapes (basic RadShapes and custom shapes) in a RadDiagram.

In this pane, there is a tab (it content is a UserControl) which allows the user to add values (from a RadGridView) to a serie in a RadChart (ScatterChart). The RadGridView allows the copy/paste functionnality to paste some values from Excel (for example).

However, I have a strange behavior about the focus: if I open the pane and the dedicated tab, I go to Excel to copy the data, click on the RadGridView before paste the data, then the main window and the pane don't take the focus. On the contrary, if I copy the data before opening the pane and the tab, there aren't any problems with the focus, the pasting is correctly done.

When the problem occurs, we can see that the main window header is light grey, to indicate that it doesn't have the focus.

Do you know something about this behavior? Do you have any solution? 

 

Many thanks.

Valentin.

Valentin
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 09 Mar 2022
1 answer
250 views

Hello,

I would like to know if there is a way to customize (or alter) the RadGridView-Row Indicator to function more like the row indicator in Excel that supports Selection of rows and Automatic Row Numeration?

Or perhaps any way to set a Custom Row Indicator in a Custom RadGridView?

 

thank you,

Patrick

 

Dilyan Traykov
Telerik team
 answered on 09 Mar 2022
1 answer
178 views

I want to be able to restrict the user to entering only hex values in RadGridView rows.

Also, ideally the control creates a single space between hex values.

Any ideas?

Thank you in advance.

 

Example : 41 78 FF FD

 

Martin Ivanov
Telerik team
 answered on 09 Mar 2022
0 answers
140 views
How can I add StackPanel on the Row?

Would appreciate help

 

<telerik:RadGridView
                    AutoGenerateColumns="False"
                    CanUserFreezeColumns="False"
                    CanUserResizeColumns="False"
                    CanUserSortColumns="True"
                    CanUserSortGroups="False"
                    GroupRenderMode="Flat"
                    IsReadOnly="True"
                    RowIndicatorVisibility="Collapsed"
                    ShouldCloseFilteringPopupOnKeyboardFocusChanged="True"
                    ShowColumnSortIndexes="True"
                    ItemsSource="{Binding Tasks}">
                    <telerik:RadGridView.Columns>
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name" />
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding Phone}" Header="Phone" />
                    </telerik:RadGridView.Columns>

  </telerik:RadGridView>

Ohad
Top achievements
Rank 3
Bronze
Iron
Iron
 asked on 09 Mar 2022
1 answer
378 views

Hello,

I'm developing an application that is based on fluent theme but should not use the ripple effect.

Therefore I followed instuctions in Fluent Theme article and placed in resouces of my MainWindow.xaml

<Window.Resources>
        <Style TargetType="mat:FluentControl" >
            <Setter Property="IsRippleEnabled" Value="False" />
        </Style>
</Window.Resources>

Basically this is working fine. On controls like Buttons or NavigationView the effect disappears. Unfortunately I noticed, that in RadListBox the ripple effect is still active when mouse is over an item of the list.

I attached a small example. It contains just a listbox and a button. Fluent theme is set and ripple should be disabled. For button it works fine. Listbox items still showing the effect.

 

How can I disable the ripple effect also for listbox items?

 

Thanks and regards

Philipp

Stenly
Telerik team
 answered on 09 Mar 2022
2 answers
231 views

Hi there,

I am looking for a way to programmatically deselect the current selected row by clicking on it. I do not wish to use the ToggleRowDetailsColumn. 

Here is the logic I wish to implement:

if (clickedItem == this.gridView.SelectedItem)
{
    this.gridView.SelectedItems.Clear();
}
else
{
    this.gridView.SelectedItem = clickedItem;
}

Thanks

Martin Ivanov
Telerik team
 updated answer on 09 Mar 2022
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?