Telerik Forums
UI for WPF Forum
3 answers
346 views

I am trying to use the RadSlider to allow the user to choose the number of Millimeters on an interface, I don't need fractions at all, but I can't figure out how to get the RadSlider to snap to whole numbers when they drag the slider.  If anyone has an example of how to do this it would be much appreciated.

thanks!

Joshua
Top achievements
Rank 2
 answered on 08 Aug 2019
2 answers
111 views

Hi

I have a function that changes two properties. Using MVVM.

  1.     FilterDescriptors => that updates the GridView.FilterDescriptors by a DepedencyProperty
  2.     ScrollItem => that uses GridView.ScrollIntoViewAsync by a DepedencyProperty

Both working fine if i set a property one at a time. If i run them in same function the order is still right of calling the DependencyProperties.
Although the ScrollIntoViewAsync gives a ScrollFailedCallback in this scenario and it is not scrolled to the item.

My guess is that the items are still filtered, hence it cannot be scrolled to the desired item.

 

Any ideas to solve this?
Thank you in advance

 

Mats
Top achievements
Rank 1
 answered on 08 Aug 2019
1 answer
106 views

Hi,

I have some dropdown cells in the grid and the filter for those columns is showing the dropdown values, how do I make the editor checkbox labels display the dropdown displaymember instead? Is there a sample project somewhere demonstrating this?

Thanks,
Maurice

Maurice
Top achievements
Rank 1
 answered on 07 Aug 2019
3 answers
447 views

Hi,

I've been reading as much as I can on how to theme controls.

In particular, I wanted to react to this article:
https://www.telerik.com/blogs/xaml-theming-implicit-styles-versus-stylemanager

One of the cons that isn't mentioned for implicit styles, is that when you want to create a new style, you have to use BasedOn, otherwise nothing will be rendered.
That is not what happens for regular WPF controls, because they still have their default (or theme) style applied. A custom style then only extend the default style, and if you want to disregard it altogether, you can set OverridesDefaultStyle to True.

I have 2 questions:

1. "Implicit styles for Telerik controls can’t be used if the application theme is set to other than the default Office_Black theme." => That is not something that I have observed. Using the 2019.2.510 Xaml packages, whichever theme I set is still honored when I create custom implicit styles. For example if I write this:
<Style TargetType="telerik:RadButton">
    <Setter Property="FontWeight" Value="Bold" />
</Style>
Then the buttons will have a Bold text and still apply the rest of my current theme set by StyleManager, whether it's Office_Black, Office2016, Green or anything else.
Could you explain what you meant, or if it is outdated and implicit styles are now supported with StyleManager?

2. Why was support for the built-in WPF mechanism for theming not adopted? If in the AssemblyInfo.cs if your NoXaml assemblies you set ExternalAssembly for the first parameter of ThemeInfo, then it would be possible for your customers to create a Generic assembly (e.g. Telerik.Windows.Controls.Generic) that contains the Themes/Generic.xaml that merges whichever theme they choose, and even further customize the theme. And/or for customers who don't want to customize the themes, you could directly provide those Generic theme assemblies in packages for each theme. Therefore, you'd have the best of both worlds as to apply the theme, customers would only need to reference the appropriate Generic assembly, and they'd have implicit styling support without having to specify BasedOn on all their custom styles.

Thanks in advance for any clarification

Vicky
Telerik team
 answered on 07 Aug 2019
3 answers
280 views

I use Radmap for displaying trail in realtime

the problem is that clearing the data takes too much time (if there are more than 3000 items)

This is part of my code:

<telerik:RadMap....>

<telerik:VirtualizationLayer Visibility=True ItemsSource="{Binding LocationVMs}", ItemTemplate="{DynamicResource LocationTemplate}"/>

</telerik.RadMap>

 

Item template is:

<DataTemplate x:key="LocationTemplate">

<Ellipse telerik:MapLayer.Location="{Binding Model.Location}" Fill="Red" Width="2" Height="2"/.

</DataTemplate>

 

LocationVMs is list of MapLocationEntity that contains one Property named Location (its type is telerik.Windows.Controls.Map.Location)

 in clearing I Clear LocationVMs list- and that causes to stack the system

 

(if I set VirtaulizationLayer to visibility=Collapsed the system is not stack after clearing the locationVMs list - so I know that the problem is during telrrik try to remove all the trail from the map)

 

Thanks

Vladimir Stoyanov
Telerik team
 answered on 07 Aug 2019
0 answers
86 views

Hi,

We would like to make use of "Search as you Type" in one of our applications using the RadGridView and we would prefer to show the cells/coloured text for rows with matches but without filtering out the rows that don't match. I have looked here in the forum and in the WPF Controls Examples but this doesn't appear to be an option.

Could you help me with achieving this?

Many thanks.

Miles

 

Miles
Top achievements
Rank 1
 asked on 07 Aug 2019
2 answers
70 views

I'd like to add a simple TextBlock aligned to the right of the group panel. I feel like this is a modify the control template task, but I don't know how to begin.

Do you have a simple example?

Thanks.

-John.

 

Reilly
Top achievements
Rank 1
Veteran
 answered on 07 Aug 2019
3 answers
121 views

I have a child gridview within another one - but we seem to be running into a problem when the user sorts on the child gridview.  Basically this only seems to happen when there is a certain amount of records within the child gridview (25+), but some of the rows go completely blank and do not render out the information.  It seems to be random rows each time.

 

Just wondering if anyone has any ideas on this - I can post code if required, but have added screenshots of it happening:

 

https://i.ibb.co/5kLdj0T/Telerik-Issue-No-Sort.png - this displays the grid without the issue (no sorting)
https://i.ibb.co/MMf11MN/Telerik-Issue-Sort.png - this displays the grid with sorting (see blank rows)

Martin Ivanov
Telerik team
 answered on 06 Aug 2019
1 answer
200 views

I have set the cell format to text in my spreadsheet, as I am editing numbers that are stored with greater precision than the spreadsheet can handle. This works for reading and writing in the spreadsheet programatically, but when numbers are pasted in they are rounded to 15 decimal places.

How can I make pasted numeric values respect the cell's text formatting ?

Thanks

Nikolay Demirev
Telerik team
 answered on 06 Aug 2019
1 answer
62 views

Hello,

In the 2 column table`s properties when I set Column preferred width = 40 Percent, and next one to 60 Percent , first column changes to Pixel Measure.

Is it a Bug?

 

Tanya
Telerik team
 answered on 06 Aug 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?