Telerik Forums
UI for WPF Forum
2 answers
509 views
Hello,

I´m using a RadComboBox with grouping, like it works with the default ComboBox. So far so good, but the initial value is set to the first Item of the lcv. No difference when commenting out the binding for SelectedValue.

Without Grouping the initial value is null and the box is empty. Is there a way achive this behavior without adding an empty item to the collection? Because I want to use the ClearSelectionButton feature.

 
<telerik:RadComboBox ItemsSource="{Binding ArtenLcv}" SelectedValuePath="Wert" DisplayMemberPath="Text" SelectedValue="{Binding ArtSelected}"
                                             ClearSelectionButtonVisibility="{Binding SelectedValue, RelativeSource={RelativeSource Self}, Converter={StaticResource objectVisibilityConverter}}" ClearSelectionButtonContent="Clear">
    <telerik:RadComboBox.GroupStyle>
        <GroupStyle>
            <GroupStyle.HeaderTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Name}" Margin="2" IsEnabled="False" />
                </DataTemplate>
            </GroupStyle.HeaderTemplate>
        </GroupStyle>
    </telerik:RadComboBox.GroupStyle>
</telerik:RadComboBox>

 

Regards

Carsten
Top achievements
Rank 1
Veteran
 answered on 04 Sep 2020
1 answer
80 views

Hello,

I've got an issue with this function. I am using RadGrid together with a timebar, where I limit the time of the entries.
Data is from sql server using entity framework. Set Loadsize to 50

Now if I change timebar, sometimes it freezes and I see using sql profiler that it makes queries all the time every second.

 OFFSET 11000 ROWS FETCH NEXT 50 ROWS ONLY 

last one I checked
OFFSET 25200 ROWS FETCH NEXT 50 ROWS ONLY 

The user didn't interact because gui is frozen, but the queries still go on.

Seems to be a bug.

User1564
Top achievements
Rank 1
Veteran
 answered on 03 Sep 2020
4 answers
284 views

Hello!

I'm trying to convert a little .aspx page to a WPF window.

In the .aspx page I have a simple .NET RadEditor that allows me to edit a small text, adding and removing html tag very easily.

As said, I'd like to reproduce the same behaviuor inside a WPFwindow.

Following the official documentation provided, the best solution I found is a combination of a RadRichTextBox and a RadRichTextBoxUIRibbon.

I've spent many hours trying to get the same result, but I couldn't figure it out.

For example, if I write the word "This is a test" in the RadEditor, then select the whole sentence, and press on the "B" button (B for Bold), the result that I achieve when I read the textbox inside the editor is "<strong>This is a Test</strong>". This is perfect!

But if I try to do the same thing inside the RadRichTextBox, using the "B" Button in the RadRichTextBoxRibbonUI, when I export the content of the Document using the provided HtmlFormatProvider the result I get is very different, as I get something like a whole HTML page:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled</title><style type="text/css">
p { margin-top: 0px;margin-bottom: 12px;line-height: 1.15; } 
body { font-family: 'Verdana';font-style: Normal;font-weight: normal;font-size: 16px; } 
.Normal { telerik-style-type: paragraph;telerik-style-name: Normal;border-collapse: collapse; } 
.TableNormal { telerik-style-type: table;telerik-style-name: TableNormal;border-collapse: collapse; } 
.s_6C8EFA9D { telerik-style-type: local;font-weight: bold; } </style></head><body><p class="Normal "><span class="s_6C8EFA9D">This is a Test</span></p></body></html>

Am I wrong with the configuration? If any other solution exists, I'll be glad to implement it, even if it means to change the whole page logic.

Thank you!

Damiano

 

Damiano
Top achievements
Rank 1
 answered on 03 Sep 2020
16 answers
206 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
300 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
420 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
122 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
203 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
570 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
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
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
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
Bronze
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
Bronze
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?