Telerik Forums
UI for WPF Forum
1 answer
323 views

Hello,

Is any way to set default width for new tables, which are creating via RichTextBox UI?

I tried to set OnLoad the following, but unsuccessfully:

Editor.Document.Style.TableProperties.PreferredWidth = new TableWidthUnit(TableWidthUnitType.Percent, 100);

StyleDefinition normalWebStyle = Editor.Document.StyleRepository.GetValueOrNull(RadDocumentDefaultStyles.NormalWebStyleName, true);

normalWebStyle.TableProperties.PreferredWidth = new TableWidthUnit(TableWidthUnitType.Percent, 100);

Tanya
Telerik team
 answered on 09 Aug 2021
2 answers
140 views

Hello,

I'd like to have two levels of X-Axis labelling in order to have a main category and subcategories clustered. 

I found this topic  https://www.telerik.com/forums/clustered-bar-chart---dual-x-axis-labels-is-this-possible-0866e299cb79  that asks for the same feature but the last reply is very old. It´s possible to achieve this behaviour nowadays?

Thanks !

Javier
Top achievements
Rank 1
Iron
 answered on 05 Aug 2021
3 answers
253 views

I'm getting a crash:

System.ArgumentNullException
  HResult=0x80004003
  Message=Value cannot be null.
Parameter name: dataObject
  Source=Telerik.Windows.Controls.Diagrams
  StackTrace:
    at Telerik.Windows.Controls.Diagrams.DataTransferService.HandleDiagramElementDrop(DataObject dataObject)

looking up the stack I can see:

Telerik.Windows.Controls!Telerik.Windows.DragDrop.DragDropManager.DoDragDrop(System.Windows.DependencyObject dragSource, object data, System.Windows.DragDropEffects allowedEffects, System.Windows.DragDropKeyStates initialKeyState, object dragVisual, System.Windows.Point relativeStartPoint, System.Windows.Point dragVisualOffset)

However, I didn't do a drag and drop, I did a double click on a combo box. Plus the RadDiagram has AllowDrop="False". What's going on here?

I did try to put together a sample to see if I can reproduce this but can't seem to get RadDiagram to appear (see link)

Stenly
Telerik team
 answered on 05 Aug 2021
1 answer
192 views

Hi

I am using RadAutoCompleteBox. During suggestion I want to show multiple property in single row. For this I modified the data template and created 3 column grid. Now the issue is that how do I add header to it. Header should come once.

Vladimir Stoyanov
Telerik team
 answered on 05 Aug 2021
2 answers
211 views

Hi Telerik Team,

I am facing two issues in RadgridView,

1. I am getting  "Not Responding" message when I drag and drop the column header to do grouping . this issue is occurring when we have more than 15,000 records in RadgridView.

2. After grouping when I click any grouped row , the row visibility is getting collapsed.

Please kindly help me on this issues.

 

 

Stenly
Telerik team
 answered on 04 Aug 2021
2 answers
455 views

This XAML provides the following image.
<telerik:RadBusyIndicator IsBusy="True" BusyContent="This is all I want to see">

However I actually have my own content to see here. I don't want anything baked in. So I override the BusyContentTemplate:
<telerik:RadBusyIndicator.BusyContentTemplate>
   <DataTemplate>
      <Border Background="Red">
         <TextBlock Text="This is all I want to see" />
      </Border>
   </DataTemplate>
</telerik:RadBusyIndicator.BusyContentTemplate>

Swing and a miss. All I want is my text. Technically a lot of content that I don't need to replicate here. Ok, now let's override the progress bar.
<telerik:RadBusyIndicator.ProgressBarStyle>
   <Style TargetType="telerik:RadProgressBar">
      <Setter Property="Visibility" Value="Collapsed" />
   </Style>
</telerik:RadBusyIndicator.ProgressBarStyle>

Closer but Telerik still has some content around mine. One more try:
<telerik:RadBusyIndicator.OverlayStyle>
   <Style TargetType="Rectangle">
      <Setter Property="Visibility" Value="Collapsed" />
   </Style>
</telerik:RadBusyIndicator.OverlayStyle>

No changes at all from this. How can I simply make my own busy indicator?

Martin Ivanov
Telerik team
 answered on 03 Aug 2021
1 answer
889 views

Hello.

I would like to ask about the Check All function in using listbox.
I usually leave Check All aside.
But when I looked at the sample of ASP.NET (Teleik), I saw that they were tied together.

Is this even possible in WPF? What conditions are required for that?

 

Thanks.

Dilyan Traykov
Telerik team
 answered on 03 Aug 2021
1 answer
192 views

My app uses the XAML binaries and the theme manager to set the application wide theme to Windows8Touch.  I also set custom palette colors at the same time. 

But whenever I want to customize a Telerik style, it seems I have to copy all of the relevant Theme XAML out of the Telerik Theme folder, replicate it in my app, and then base my styles off of that.  That's the only way that seems to work.

Because whenever  I try to base my custom style off just the type default, like this:

    <Style TargetType="{x:Type tk:RadPathButton}" BasedOn="{StaticResource {x:Type tk:RadPathButton}}">

I get weird results.  Colors don't match my the ones I set at application start times and it looks like the XAML comes from a different theme sometimes.

Is the rule that I must copy Telerik XAML in this situation or am I doing something else wrong?

Psyduck
Top achievements
Rank 5
Bronze
Bronze
Bronze
 answered on 03 Aug 2021
1 answer
592 views

In my current WPF/MVVM project, which uses package Telerik.Windows.Controls.Spreadsheet.for.Wpf.Xaml for a view, I would like to keep the ViewModel in a netstandard2.0 project. The ViewModel project references package Telerik.Documents.Spreadsheet and exposes a property of type Telerik.Windows.Documents.Spreadsheet.Model.Workbook to which the view binds in XAML.
At runtime I get (nonsensical?) XAML Binding Failures:
1. Cannot create default converter to perform 'one-way' conversions between types 
    'Telerik.Windows.Documents.Spreadsheet.Model.Workbook' and 
    'Telerik.Windows.Documents.Spreadsheet.Model.Workbook'. 
    Consider using Converter property of Binding.
 2. Value 'Telerik.Windows.Documents.Spreadsheet.Model.Workbook' (type Workbook) 
    cannot be assigned to property RadSpreadsheet.Workbook (type Workbook).
Adding an empty "no-op" System.Windows.Data.IValueConverter gets rid of those, but still an empty grid is displayed, although the ViewModel constructor prepopulates the spreadsheet.  
Note the system behaves as expected when I instead use the same code in the net5.0 project that via package Telerik.Windows.Controls.Spreadsheet.for.Wpf.Xaml references package Telerik.Windows.Documents.Spreadsheet (which also has type Model.Workbook)

If Telerik.Windows.Documents.Spreadsheet and Telerik.Documents.Spreadsheet serve different purposes, why do they have the same namespaces?
How can I have my ViewModel in netstandard2.0?

Please find a small repro attached.
In Telerik.Spreadsheet.WPF.csproj switch Property "ViewModel" between values "direct" and "indirect" to toggle between the two versions.

Dimitar
Telerik team
 answered on 03 Aug 2021
1 answer
250 views
I tried to install and use your Theme Generator Application from here: https://docs.telerik.com/devtools/wpf/styling-and-appearance/themes-suite/color-theme-generator and when I launched it, my webcam turned on. It turned off and back on as I switched between themes and then turned off again when I closed the app. I tried this multiple times to verify that it was your app that was doing this.
Stenly
Telerik team
 answered on 02 Aug 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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?