Telerik Forums
UI for WPF Forum
1 answer
570 views
I have the following derivation that includes the customary static constructor.

 

public class CustomRadDatePicker : RadDatePicker

 

 

static CustomRadDatePicker()

 

{

DefaultStyleKeyProperty.OverrideMetadata(

 

typeof(CustomRadDatePicker),

 

 

new FrameworkPropertyMetadata(typeof(CustomRadDatePicker))); // also tried RadDatePicker here

 

}

In the XAML for the controls template I have the following.

 

 

 

<Style TargetType="{x:Type SharedControls:CustomRadDatePicker}">
...

 

 

 

<Setter Property="Template">

 

 

 

 

 

 

<Setter.Value>

 

 

 

 

 

 

<ControlTemplate TargetType="{x:Type SharedControls:CustomRadDatePicker}">

Now when I use the control on a page it does not use the style I have set up but is using the Telerik style.
I have my derived control and its template set up in a WPF custom control library.
Is it allowed to override the Teleric Style?

-eric

 

George
Telerik team
 answered on 05 Aug 2010
1 answer
175 views

 

Hi,

As per my observations on RadTabcontrol, i found tooltip property is there.

Is there any property which i set the style of the tooltip like Background and ForeGround?

Miroslav
Telerik team
 answered on 05 Aug 2010
5 answers
153 views
So instead of having a one close button at the far right of the tab strip, you'd then have a close button on each tab header (like the tabstrip on Google Chrome).

Possible?
Dani
Telerik team
 answered on 05 Aug 2010
5 answers
242 views
I am pleased to see that Telerik has implemented the ability to draw custom lines onto the chart, after the request (http://www.telerik.com/community/forums/wpf/chart/drawing-extra-elements-into-or-on-top-of-chart.aspx) that was made; although I don't know if it was already in the works.

Is it possible to draw the CustomLines on top of the Bars? If the Bar's item width percent is set to 100 they effectively are invisible unless drawn at a Y-Value above the bars.
Sia
Telerik team
 answered on 05 Aug 2010
2 answers
82 views
I have a  GridView in my application which displays product information.
Now when  user selects a product, a window is shown. The user can update description here. This description is saved to DB.
Now I want to reflect these changes in the GridView w/o making a new query to DB.
How to assign the changed description to selected product??
Xaria D
Top achievements
Rank 1
 answered on 05 Aug 2010
1 answer
105 views
I wish to handle the data loaded event  for RadGridView.
Further, I need to check a particular value for each row in the grid and perform certain operations.
How to cast the row items to a class object?

P.S. Sorry I posted in the wrong forums
Vlad
Telerik team
 answered on 05 Aug 2010
1 answer
142 views
I have a fairly simple scenario. A non-hierarchical grid bound to an ObservableCollection<T>. The collection resides on a ViewModel. When I load the view, the grid displays data appropriately. A seperate control on the page can force a refresh of data in the ObservableCollection. That is, the collection is cleared and repopulated with new items based on the outside criteria. When the operation completes, I see a new count in the collection, but the rendered grid is unchanged. It was my understanding that the grid would respond to events raised by an ObservableCollection and that no additional handling was necessary. I'm aware of a Rebind method on the grid, which I could call to force a rebind, but as you may be aware, knowledge of controls in a ViewModel is not appropriate. 

Any ideas why the grid would not respond to changes in the collection? Also, if I must force this rebind using the Rebind method, what are some strategies to initiate this from the ViewModel without calling the grid directly from the ViewModel?

Thanks...
kilhoffer
Top achievements
Rank 1
 answered on 04 Aug 2010
4 answers
134 views
Hello,

I'm currently building an application where the user has some control on how a chart looks.

Every property I'm changing work perfectly except for anything linked to a brush.

The different brushes the the SeriesAppearanceSettings are correctly updated till a Rebind() is called or till the ItemSource is changed when a color change has been previously called. From that point on an ArgumentException is thrown if I attempt to change a previously changed brush:
"The provided DependencyObject is not a context for this Freezable.
Parameter name: context"

here is my method for changing colors:
public void SetFillBrush(Brush color)
        {
            _lineDefinition1.Appearance.Stroke = color;
            _barDefinition1.Appearance.Fill = color;
            _areaDefinition1.Appearance.Fill = color;
 
            _lineDefinition2.Appearance.Stroke = color;
            _barDefinition2.Appearance.Fill = color;
            _areaDefinition2.Appearance.Fill = color;
        }


Any help is appreciated.
Julien
Top achievements
Rank 1
 answered on 04 Aug 2010
1 answer
54 views
Hello,

I was wondering if there was any planning in separating the style of the AxisStyles.GridLineStyle into MajorGridLineStyle and MinorGridLineStyle.

My application requires to be able to have the minor grid line in a difference color than the major one and I am unable to do so at the moment.
Sia
Telerik team
 answered on 04 Aug 2010
4 answers
94 views
I'm trying to set a global theme for either Telerik controls or non-telerik controls in xaml using a style.  This works in Visual Studio, but not in Blend.  I get the error:  'Office_Blue' is not a valid value for the 'Telerik:Windows.Controls.StyleManager.Theme' property on a Setter.

I am using RadControls for WPF Q1 2010 SP2 (version 2010.1.0603) on Windows 7 x64.  Here is the xaml:

<Style TargetType="telerik:RadGridView">
 <Setter Property="telerik:StyleManager.Theme" Value="Office_Blue" />
</Style>
Adam Love
Top achievements
Rank 1
 answered on 04 Aug 2010
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?