Telerik Forums
UI for WPF Forum
2 answers
459 views

Is there a way to format a text being edited of RadNumericUpDown text? 

For example, to show thousands white-space separator like 1 000 when user in a textbox actually is entering 1000

GridViewDataColumn has DataFormatString property which formats entered text after edit is finished, but we want to format it dynamically during editing when textbox focus is not lost and user keeps typing

 

Thanks

 

Vladimir
Top achievements
Rank 1
 answered on 13 Feb 2018
4 answers
229 views
The documentation tells how to make PivotGrid editable using the overrides of the EditProvider, but really doesn't show how to override.  Any chance there is an example of this working? 
Dinko | Tech Support Engineer
Telerik team
 answered on 12 Feb 2018
3 answers
147 views

Hey everyone,

I'm currently working on implementing the Telerik charts into an application as a replacement for our current charts, however there's a ton of functionality that will be missed out on if I simply just replace the charts.

I'm testing the functionalities of each charts against each other at the moment and there's one thing that sticks out.

I need to be able to scroll and zoom on each of the axes independent of the entire charts zoom and scroll status.
The way its implemented into our applications charts is by simply clicking and dragging the axis for panning and mousewheel for zooming, however this implementation isn't set in stone.

Thanks for checking in,

Seb

Simon
Top achievements
Rank 1
 answered on 12 Feb 2018
1 answer
142 views

hello

Could tell me how to use MapMouseClick of RightButton ?? 

Martin Ivanov
Telerik team
 answered on 09 Feb 2018
1 answer
218 views

We use Display attributes to govern exclusion of columns and to define headers and string lengths.  This work well with the RadGridView, but doesn't seem to be supported in the VirtualGrid.  Is this true or have I missed something?

Examples:

    [Display(AutoGenerateFilter = false, AutoGenerateField = false)]
    public int ID

     [Display(Name = "Status", ShortName = "Status", ResourceType = typeof(IC.RES.Properties.Resources), Order = 5000)]
     public String StatusLiteral

Dilyan Traykov
Telerik team
 answered on 09 Feb 2018
4 answers
2.6K+ views

Hi,

I have some questions to know the best practice to reuse styles overriding theme's ones.

My solution is organized as this:

    - The main exe is in Smag.MSH.csproj

    - My custom controls are in Smag.UI.Wpf

   - All the styles are defined in Smag.Styles.csproj

I'm using implicit themes, so Smag.Style embeds:

  - xaml files from Windows 8 theme for all used controls

  - xaml files overriding default themes for some controls
   eg: in MyRadGridView.xaml

      <Style x:Key="NoBorderGridView" BasedOn="{StaticResource {x:Type telerik:RadGridView}}" TargetType="{x:Type telerik:RadGridView}">

 

The main exe merge the theme's and my own resources like this:

<Application.Resources>
  <ResourceDictionary>
    <ResourceDictionary.MergedDictionaries>
      <!--  telerik all the corresponding xaml are included here  -->
      <ResourceDictionary Source="pack://application:,,,/Smag.MSH.Style;component/Telerik/System.Windows.xaml" />
      <ResourceDictionary Source="pack://application:,,,/Smag.MSH.Style;component/Telerik/Telerik.Windows.Controls.GridView.xaml" />

     <!--  The real list is cut for brievity  -->

      <!--  Own controls styles  -->
      <ResourceDictionary Source="pack://application:,,,/Smag.MSH.Style;component/ControlsStyles/MyRadGridView.xaml" />

 

What is the best pratices to reuse all the styles (theme's default one en those i have overrided) in Smag.UI.Wpf ?

The default style are currently not found:

<Style BasedOn="{StaticResource RadListBoxStyle}" TargetType="{x:Type local:ListBox}" />

Raise an error saying RadListBoxStyle is not found, but the right xaml is included in app.xaml

Event using this way, it doesn't work:

<Setter Property="Background" Value="{telerik:Windows8Resource ResourceKey={x:Static telerik:Windows8ResourceKey.MainBrush}}" />

 

As it's a DLL, there is no app.xaml to merge ressources, doing it in each control like this seems to me not being performant:

<ResourceDictionary xmlns="..." xmlns:x="..." xmlns:i="..." xmlns:local="clr-namespace:Smag.UI.Wpf.Controls" xmlns:telerik="...">
   <ResourceDictionary.MergedDictionaries>
    <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/System.Windows.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.Data.xaml" />
    <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.Input.xaml" />
 </ResourceDictionary.MergedDictionaries></p>

 

Thanks for some more guidelines, the official documentation is not enough.

 

Sia
Telerik team
 answered on 09 Feb 2018
9 answers
962 views
Hello,

i'm looking for hours for a working guide to add a custom theme for some controls (for example the scheduler) and using it in my application.
I want to make a new theme based on the metro theme.

The howto's i found arn't working ... for example
http://www.telerik.com/support/kb/wpf/scheduler/how-to-implement-a-new-custom-theme-in-a-few-steps.aspx

And this link is broken
http://www.telerik.com/help/wpf/common-styling-apperance-themes-custom-theme-project-telerik-approach.html

I hope anybody can tell me how it works?

My version is "RadControls for WPF Q2 2012"

I look forward to your answers!
Martin
Telerik team
 answered on 09 Feb 2018
2 answers
681 views
Hello,
I've just converted our application which uses implicit styling over to use the Fluent theme. It looks great (in light) but i'd like to use the dark theme. The main page uses a docking control but i don't know what colour to set the page background to. is there a telerik resource i can bind to in order to get the correct colour?
If I use 'PrimaryBackgroundColor' it looks great in white (with the drop shadows) but not so good in black.

I've also noticed that some of your controls now use 'fluentresourceextension' in order to bind to the colour. Is this something i can use for the background so that i can maybe change between light and dark scheme at runtime?
Thanks
Andy
Martin
Telerik team
 answered on 09 Feb 2018
4 answers
312 views

Hello,

We have an issue about the VisualizationLayer control fo RadMap, we are currently on version 2016 R3

We try to display +1500 data in a country with smooth performance when moving or zooming, but actually we tried a lot of things and nothing change.

 

We started to use InformationLayer and it was perfectly smooth but all points were on top of each other and it was ugly.

So we change to VisualizationLayer, while setting ItemsSource + Clustering enabled:

- Dataloading was correct

- Moving was smooth (in same zoom)

- But Zooming in or out was extremely slow and froze everything for some seconds

 

Then we added GenerateClustersOnZoom = false

It helps a little when its zooming but at the end we have the same freeze as before when it actually refresh all clusters

And let some clusters on the map (I don't know why)

 

We also tried with a VirtualizationSource, it was a little better but still far from the behavior of the InformationLayer

 

What do we need to do to have Clustering as fast as the InformationLayer in term of moving/zooming on the map ?

Or why the clustering is so time consuming ?

 

Regards

Petar Mladenov
Telerik team
 answered on 09 Feb 2018
3 answers
506 views

Is there any way to specify the column type and/or templates/editors for a column when autogenerating columns?

I am currently using the DisplayAttribute and a custom attribute with a behavior to manage column specific things that the DisplayAttribute does not support. If there is no way to support this, I figure I could add a TemplateSelector type to the GridColumnDisplayAttribute for the edit template. If this is the only way are there any links/projects showing how I can achieve this for complex controls and bindings like an autocomplete?

An example of what I am using now:

01.private bool isSelected = true;
02.    [Display(Name = "Selected", Order = 0)]
03.    [GridColumnDisplay(CanHide = false, Width = 25, Resizeable = false, TextAlignment = TextAlignment.Center)]
04.    public bool IsSelected
05.    {
06.      get => isSelected;
07.      set => this.SetValue(ref isSelected, value);
08.    }
09. 
10.    private string name;
11.    [Display(ResourceType = typeof(Resources.Properties.Resources), Name = ResourceKeys.GridHeader_AccountName)]
12.    public string AccountName
13.    {
14.      get => name;
15.      set => this.SetValue(ref name, value);
16.    }

 

1.<telerik:RadGridView ItemsSource="{Binding Accounts}">
2.  <i:Interaction.Behaviors>
3.    <gridBehaviors:GridColumnsBehavior />
4.  </i:Interaction.Behaviors>
5.</telerik:RadGridView>

 

Thanks,
Maurice

Maurice
Top achievements
Rank 1
 answered on 08 Feb 2018
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?