Telerik Forums
UI for WPF Forum
5 answers
137 views
I've got a tab control with a radgridview on the first tab and a detailed view on the second tab.  If I filter the grid, move to the 2nd tab and then return to the grid tab, the filter that was set is no longer in place.  I don't see anything I've got in the code that should result in a grid refresh, am I just overlooking something in my code or is this normal grid behavior?

Thanks,
-Sid.
Vlad
Telerik team
 answered on 09 Apr 2009
1 answer
243 views
Hello,

Is it possible to customize the appearance of a Needle in a RadialScale? If so, how? The default needle looks like a stick with a sort of diamond at the end. I want a needle that looks like an elongated triangle or like the one shown in the Gauge demo (http://demos.telerik.com/wpf/). From what I can tell, the example code does not show how the needle shape is defined. Maybe I'm doing something wrong.
Andrey
Telerik team
 answered on 07 Apr 2009
1 answer
114 views
Observation: I have observed that there is no border for the Vista theme on the GridView.

Question: Is it possible to use the current app-specific theme instead of one of the ones provided by Telerik? 




Kalin Milanov
Telerik team
 answered on 07 Apr 2009
1 answer
174 views
How can I change the colour of the labels, lines, and tick points of the axes  on the radchart for wpf? Thanks
Dwight
Telerik team
 answered on 07 Apr 2009
3 answers
176 views

Hi,

First of all, sorry for my english ...
I just want to know if it's possible to have aggregate function for a child grid (hierarchy) as we can have with the grouping grid
(like the example Grouping aggregates)

thanks

Steph

Milan
Telerik team
 answered on 06 Apr 2009
1 answer
108 views
Is there a xaml equivalent to panel.MoveBy(int)?  I would like to animate in xaml rather than using a timer in the code behind.
Milan
Telerik team
 answered on 06 Apr 2009
5 answers
97 views
Hi

I am creating a datagrid view and I am trying this property to the RagGridView in XAML

telerik:StyleManager.Theme="Office_Black"

And I am copying that from a telerik example, and it generates error when I compile
The error is:

The property 'StyleManager.Theme' does not exist in XML namespace 'http://schemas.telerik.com/2008/xaml/presentation'.

I appreciate the help.

Thanks






Vlad
Telerik team
 answered on 06 Apr 2009
1 answer
76 views
Hi,

I've updated my application to 2009 Q1 and setting the color of the cell doesn't work anymore!

  <my:ColorConverter x:Key="ColorConverter"/>  
                        <Style TargetType="{x:Type telerik:GridViewCell}">  
                            <Setter Property="Background">  
                                <Setter.Value> 
                                    <SolidColorBrush Color="{Binding Converter={StaticResource ColorConverter}}"></SolidColorBrush> 
                                </Setter.Value> 
                            </Setter> 
                        </Style> 

The color converter returns a Color.Red.

Any ideas?

Regards
Kalin Milanov
Telerik team
 answered on 03 Apr 2009
2 answers
254 views
Hi
currently I'm building the application that perform some kind of monitoring. 
For displaying the information I'm using all kinds of RadGauge (i.e. Circular, Linear, Digital).
All is fine and the controls look amazing, however I have found that the application has a memory problem 
(i.e. more time the application is running - more memory it has been using). The application doesn't use any kind of saving the history, I mean that it is just Real Time Monitoring - thats why there shouldn't be increasing memory size used by the application.

In general the application architecture is very simple and as I have found later it is quite similar to those you are using in the demo example (i.e. CarDashboard Gauge WPF example).
So, in general I have an object that has a list of monitoring properties, the object itself derived from INotifyPropertyChanged interface to be able to reflect the UI elements(i.e. gauges that are binded to those properties - simple binding) and DispathcherTimer which update the properties values with some interval.

I have used the .Net Memory Profiler to determine the reason of memory increasing and found that the problem in Resources that RadGauges used - they are not releasing. There are different kind of resources, for example objects like

System.Windows.Media.Animation.Clock.RootData
System.Windows.Media.Animation.Clock.SubtreeFinalizer
System.Windows.Media.Animation.AnimationClock

and many others. In the period of 20 min with the update interval set to 1 sec I have from 4 to 2 thousand new instances of each of those types have been created and haven't been removed. And here is the place where the memory of my application is increased.

If we would check the Call Stack of each of those object types we would found very similar in each case and that would be something like this
(example of call stack for System.Windows.Media.Animation.AnimationClock)
AnimationTimeline.AllocateClock()
Clock.AllocateClock(Timeline, bool)
ClockGroup.BuildClockSubTreeFromTimeline(Timeline, bool)
Clock.BuildClockTreeFromTimeline(Timeline, bool)
Timeline.CreateClock(bool)
Storyboard.BeginCommon(DependencyObject, INameScope, HandoffBehavior, bool, long)
Storyboard.Begin(FrameworkElement, HandoffBehavior, bool)
Storyboard.Begin(FrameworkElement, HandoffBehavior)
IndicatorBase.OnValueChanged(double, double)
IndicatorBase.ValuePropertyChangedHandler(DependencyObject, DependencyPropertyChangedEventArgs)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs)
DependencyObject.UpdateEffectiveValue(EntryIndex, DependencyProperty, PropertyMetadata, EffectiveValueEntry, EffectiveValueEntry&, bool, OperationType)
DependencyObject.InvalidateProperty(DependencyProperty)
BindingExpression.Invalidate(bool)
BindingExpression.TransferValue(object, bool)
BindingExpression.ScheduleTransfer(bool)
ClrBindingWorker.NewValueAvailable(bool, bool, bool)
PropertyPathWorker.UpdateSourceValueState(int, ICollectionView, object, bool)
PropertyPathWorker.UpdateSourceValueState(int, ICollectionView)
PropertyPathWorker.OnPropertyChangedAtLevel(int)
ClrBindingWorker.OnSourcePropertyChanged(object, string)
PropertyPathWorker.System.Windows.IWeakEventListener.ReceiveWeakEvent(Type, object, EventArgs)
WeakEventManager.DeliverEventToList(object, EventArgs, WeakEventManager.ListenerList)
PropertyChangedEventManager.OnPropertyChanged(object, PropertyChangedEventArgs)
MonitoringElement.NotifyPropertyChanged(string)
MonitoringPerformanceCounter.set_Value(float)
MonitoringPerformanceCounter.UpdateMonitoringElementIndicators()
MonitoringGroup.UpdateGroupElementsIndicators()
MonitoringGroupList.UpdateMonitoringElementsIndicatorsInAllGroups()
MonitoringServerInfoHolder.UpdateIndicators()
Dashboard.UpdaterTimer_Tick(object, EventArgs)
DispatcherTimer.FireTick(object)

So, as you can see those objects are created in response to update RadGauge's value and most probably they are created to perform smooth moving from previous value to new one.

Unfortunately, I can't attach the Profiler screen shots as I didn't found if this is possible in your forums.

So do you how can I release those unneeded resources?

Any help will be appreciated.

Thanks
Sergey
Top achievements
Rank 1
 answered on 02 Apr 2009
4 answers
189 views
Hello

For the localization of my application I have created a custom MarkupExtension called CaptionExtension. I'm using it to set the HeaderText in the WPF RadGridView as follows:
<telerik:GridViewDataColumn IsFilterable="False" HeaderText="{local:Caption Key=memberNumberShort}" UniqueName="MemberNumber"/> 
 The relevant code of the CaptionExtension class looks like this:
        private void LocalizationContext_CultureChanged(object sender, EventArgs e) {  
            if (targetObject != null && targetProperty != null) {  
                targetObject.SetValue(targetProperty, LocalizationContext.Instance.Captions[key]);  
            }  
        }  
          
        public override object ProvideValue(IServiceProvider serviceProvider) {  
            var targetHelper = (IProvideValueTarget)serviceProvider.GetService(typeof(IProvideValueTarget));   
            targetObject = targetHelper.TargetObject as DependencyObject;   
            targetProperty = targetHelper.TargetProperty as DependencyProperty;  
 
            return LocalizationContext.Instance.Captions[key];  
        }  
 

So basically it tries to remember to which DependencyObject (targetObject variable) which DependencyProperty (targetProperty variable) was initially set. This happens in the ProvideValue()-method. Then in the LocalizationContext_CultureChanged()-event handler method, it tries to set the new value using the combination of DependencyObject/DependencyProperty combination.

For the HeaderText property the value of targetObject is of type GridViewDataColumn and the targetProperty is the HeaderText DependencyProperty. I've made sure that is really the case using the debugger.

Unfortunately the correct text is only set initially so during the call of the ProvideValue when the RadGridView is created the first time. Setting the HeaderText in the LocalizationContext_CultureChanged() does not work. There is no exception or anything, just nothing happens, the HeaderText does not change in display.

Any help is welcome.

Regards

Christian


Kalin Milanov
Telerik team
 answered on 01 Apr 2009
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
InlineAIAssistant
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?