Telerik Forums
UI for WPF Forum
16 answers
216 views
Hi,
I've read the self reference section in documentation but still I can not show my self referred data table in TreeView.
Step by Sptep help I need,
Thank you.
Petar Mladenov
Telerik team
 answered on 03 Sep 2020
2 answers
1.2K+ views

I want to remove the border that appears when a cell is selected in the RadGridView. When looking around for solutions on this forum all I find is solutions that include modifying the template for the GridViewCell. But this seems like such an easy thing to do by just changing some style or something. 

So my question is, is there an easier way to remove the border (that appears when a cell is selected), than to modify the whole template?

 

Martin
Top achievements
Rank 1
Veteran
 answered on 01 Sep 2020
5 answers
309 views

Hi, I have a weird issue. I’m deploying a wpf app via clickonce and have it installed on several PCs.
On one of the PC’s the Telerik input controls don’t display. It works on all the other PC’s and it’s only controls like date/num pickers & dropdowns not working. Telerik based grid views, tabs etc all work fine on all PCs.
I have attached a screenshot from the same install on two different PC’s to demo the issue.

Have you any idea why this might be and what I can check? 

Thanks,

Richard

Dilyan Traykov
Telerik team
 answered on 31 Aug 2020
5 answers
424 views

Hi,

I have tried the WPF webcam demo and I can't get it to work. Do I have to change any security settings to allow the demo program to access my webcam?

Also the application crash after a few tries taking a picture. If I try recording i crashes directly.

I use WPF Demo 2020 R1 and Telerik Ui for WPF R1 2020.

OS is Win10 Enterprise, Version 1607.

Martin Ivanov
Telerik team
 answered on 31 Aug 2020
1 answer
126 views

Hello,

I'm using this article to make a custom appointment and custom appointment dialog, but it doesn't work. It says that you're supposed to be able to access custom appointment properties, but I try to display a custom appointment property in a combobox and it doesn't work. 

This is my code, my custom appointment has a property named "FactionDef" of type "List_ShiftDTO", I bind it to selectedItem but it can't find it even if it's clearly there. The combobox shows the itemsource and all the "List_ShiftDTO" objects inside the ObservableCollection "TypeFactions".

<telerik:RadComboBox Grid.Row="2" Grid.Column="1"
SelectedItem="{Binding Occurrence.Appointment.FactionDef, Mode=TwoWay}" Margin="3"
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType=telerik:SchedulerWindow}, Path=ScheduleView.DataContext.TypeFactions}" DisplayMemberPath="Display"/>
Dilyan Traykov
Telerik team
 answered on 28 Aug 2020
1 answer
204 views

I have a RadGridView and one of the columns is called "Actions". Basically it contains a RadDropDownButton component which displays a list of actions.

The problem I have is, when I have like 50 rows in the grid, if I click on the RadDropDownButton  in the first row and then by using the mouse wheel to scroll down,

the popup window of the RadDropDownButton stays open and it loads different actions I guess for the elector the mouse wheel got focused afterwards.

 

Can somebody explain me here, what should I do?

Set the SelectedItem of the grid to the mouse wheel row that was focused or hovered?

How to get the row that is being focused or hovered with MouseWheel event?

If I set the SelectedItem to the CurrentItem will this fix my problem?

Why I see CurrentItem and no CurentRow? Because I use older version of WPF Telerid RadGridView?

Could I possibly close the popup window of the RadDropDownButton on the MouseWheel event?

 

Any other info would be useful.

Vladimir Stoyanov
Telerik team
 answered on 28 Aug 2020
1 answer
582 views

I have been trying to change the Thumb color in my RadToggleSwitchButton.

I have the following code:

<telerik:RadToggleSwitchButton
                Grid.Row="15"
                Margin="0,0,0,0"
                Padding="0"
                ContentPosition="Both"
                Foreground="White"
                IsChecked="{Binding IsRadToggleSwitchButtonChecked}">
                <telerik:StyleManager.Theme>
                    <telerik:MaterialTheme />
                </telerik:StyleManager.Theme>
 
                <ToggleButton.LayoutTransform>
                    <RotateTransform Angle="90" />
                </ToggleButton.LayoutTransform>
                <telerik:RadToggleSwitchButton.UncheckedContent>
                    <Border>
                        <TextBlock
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center"
                            FontSize="10"
                            FontWeight="Bold"
                            Foreground="White"
                            TextAlignment="Center">
                            <TextBlock.LayoutTransform>
                                <RotateTransform Angle="-90" />
                            </TextBlock.LayoutTransform>
                            T1<LineBreak />
                            t1</TextBlock>
                    </Border>
                </telerik:RadToggleSwitchButton.UncheckedContent>
 
                <telerik:RadToggleSwitchButton.CheckedContent>
                    <Border>
                        <TextBlock
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center"
                            FontSize="10"
                            FontWeight="Bold"
                            Foreground="White"
                            TextAlignment="Center">
                            <TextBlock.LayoutTransform>
                                <RotateTransform Angle="-90" />
                            </TextBlock.LayoutTransform>
                            T2<LineBreak />
                            t2</TextBlock>
                    </Border>
                </telerik:RadToggleSwitchButton.CheckedContent>
            </telerik:RadToggleSwitchButton>

 

I want to change these orange/white colors in the image attached.

 

Dinko | Tech Support Engineer
Telerik team
 answered on 27 Aug 2020
1 answer
308 views

Hi,

I have a RadGridView which is bind on the Items property from my ViewModel :

<telerik:RadGridView x:Name="gridView" 
                             Grid.Row="1" 
                             ItemsSource="{Binding Items}"
                             >

On many column, user can Filter, Sort, ...

<telerik:GridViewDataColumn Header="Nom" 
                                        IsGroupable="False" IsSortable="True" IsFilterable="True"
DataMemberBinding="{Binding Utilisateur.Nom, Mode=OneTime}"
                                        Width="150" MinWidth="10" />

Unfortunately, the filters are reset each time the Items property is modified (if the user reloads the data, modifies his search, ...).

Is there a way to prevent this reset of the filters on the columns?

Thx,

Vladimir Stoyanov
Telerik team
 answered on 27 Aug 2020
1 answer
378 views

Hi, I'm new to Telerik and have the following problem.
I am currently using the LayoutControlSplitter.

The problem is that if I move the splitter right to the end of the window it goes outside the window.

Code:

 <Grid>    
<telerik:RadLayoutControl>   
<telerik:LayoutControlExpanderGroup Header="Expander group" />           
<telerik:LayoutControlSplitter />            
<Button Content="Button" />        
</telerik:RadLayoutControl>
</Grid>

How can I fix the problem? Thank you very much!

Vladimir Stoyanov
Telerik team
 answered on 26 Aug 2020
1 answer
320 views

Hi,

We have a series of views consisting of a search box, search options and then a results RadGridView. Since the functionality & bindings is the same on each, we have a UserControl that holds the search box & search options functionality. The only difference between each view is the Columns in RadGridView, so we are trying to put the RadGridView inside the UserControl and allow the columns to be specified by the implementing view.

Do you know how we could achieve this?

Roughly what we're trying to do:

 <UserControl x:Class="UserControls.BaseSearch" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
    Height="Auto"  Width="Auto"> 
<Grid> 
<telerik:RadGridView Margin="0" Name="radGridView1" ItemsSource="{Binding SearchResults}" /> 
</Grid> 
</UserControl> 

<UserControl x:Class="Views.CustomerSearch" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
    xmlns:userControls="http://schemas.telerik.com/2008/xaml/presentation" 

    Height="Auto"  Width="Auto"> 
    <Grid> 
<userControls:BaseSearch>
<telerik:RadGridView.Columns>

<telerik:GridViewDataColumn Header="Reference"
Name="Reference"
DataMemberBinding="{Binding Reference}" Width="100">
</telerik:GridViewDataColumn>

<telerik:GridViewDataColumn Header="Description"
DataMemberBinding="{Binding Description}"
Width="200" />

<telerik:GridViewDataColumn Header="Start Date"
DataMemberBinding="{Binding StartDate, StringFormat=d}"
ShowDistinctFilters="False"
Width="130" />

</telerik:RadGridView.Columns>
</userControls:BaseSearch>
    </Grid> 
</UserControl> 

 

 

 

Vladimir Stoyanov
Telerik team
 answered on 26 Aug 2020
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
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
Licensing
WebCam
CardView
DataBar
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
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?