Telerik Forums
UI for WPF Forum
1 answer
152 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
144 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
79 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
98 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
2 answers
315 views
I have a grid that I only ever want to show a subset of data items. I want the user to be able to play around with the filters, so I've created a CollectionView based on the original collection that has the permanent filter set. This CollectionView is set as the grid's ItemsSource so that the permanent filter and the user defined filters (FilterCollection) are kept separate.

However, I get an index out of bounds exception when adding items to the original collection. It looks like this is because the INotifyCollectionChangedEventArgs are specifying an index that is present in the original collection, but too high once the CollectionView filter has been applied.

Is this a strategy that should work and I'm missing something, or does anyone know of a better way to have a filter always set on the grid, despite calling FilterCollection.Clear() (my fallback strategy is to now create a FilterDescriptor to do the same job and re-add it every time I clear the filters).
Geoff Smith
Top achievements
Rank 1
 answered on 04 Aug 2010
1 answer
97 views
Hi,

How can i apply "Row Selection Style" for RadGridView using a predefined property.

Thanks,
-Narendra
Vlad
Telerik team
 answered on 04 Aug 2010
8 answers
123 views
Hello,
Would you be so kind as to tell me, is there any way to make child's table columns to appear just under the parant's columns, with no offset.
Jokerwolf
Top achievements
Rank 1
 answered on 04 Aug 2010
2 answers
92 views
Hi,

As per my observations on RadGridVIew, i found column drag and drop is allowed by default.

Is there any property which controls the behavior of column drag and drop?

Thanks,
-Narendra

Narendra
Top achievements
Rank 1
 answered on 04 Aug 2010
4 answers
241 views
How can I get a RadGridView to ignore F2, Del, Ins if it has keyboard focus?  I have CommandBindings defined to handle these key presses and would like to have these CommandBindings executed.  I don't want to ignore all keyboard input in the RadGridView however as I'd still like to navigate the rows in the RadGridView with arrow keys.
Maya
Telerik team
 answered on 04 Aug 2010
3 answers
169 views
I am using the drag and drop manager along with the RadGridView to drag one or more items from the RadGridView.  This was working fine in previous versions, but the latest 2010.2.714.40 doesn't seem to work any longer.  I looked at the demos and it didn't work with multiselect and then dragging either.  Did something change that I am not aware of, or did this just break?  Thanks!
Wasif Jahangir
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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
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
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?