Telerik Forums
UI for WPF Forum
2 answers
76 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
101 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
135 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
130 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
52 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
92 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
293 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
90 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
109 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
80 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
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
TimeBar
Styling
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?