Telerik Forums
UI for WPF Forum
2 answers
117 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
116 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
543 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
296 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
91 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
79 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
131 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
208 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
64 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
0 answers
230 views

I have a radtreeview control inside a stackpanel. I have a text box and a button to search for a word. When i search a word, it traverses through entire list and selects the item which contains the search word.

This functionality is working properly for the list items visible in the stackpanel. The items which are not visible in stackpanel are getting selected but are not coming into the view of stack panel. The scrollbar is not scrolling to show the selected item.

This above mentioned issue is not shown on all items. This is comming only for the first child element of a parent. When the second item is selected programatically, scrollbar is moving and the item is comming into view.

I tried with using BringIntoView and BringItemintoView events. But its not working

In Xaml

Binded IsExpanded property to expand a parent if child is selected programatically.

Binded Focusable property to focus to the programatically selected item .

Binded IsSelected property to select the programatically selected item .

For Event="Selected" created an event handler. In this function, I am calling BringIntoView function on the item.

This event is triggered for all the items in the list except for the programatically selected first child item.

Shilpa
Top achievements
Rank 1
 asked on 06 Aug 2019
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
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
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?