Hi,
The Collection Editor is part of RadPropertyGrid defined below:
<telerik:RadPropertyGrid x:Name="grdTestProperty" Item="{Binding TestProperty, Mode=OneWay}" SearchBoxVisibility="Collapsed" SearchInNestedProperties="False" FieldIndicatorVisibility="Collapsed" IsVirtualizing="False" AutoGeneratePropertyDefinitions="True" NestedPropertiesVisibility="Visible" LabelColumnWidth="150" RenderMode="Hierarchical" IsReadOnly="{Binding IsReadOnly, Mode=OneWay}"/>Please see attached picture showing the desired output.
When I select a row in a RadGridView (as shown below)
private void gridviewServiceTraceWatchList_SelectionChanged(object sender, SelectionChangeEventArgs e)
{
txtBillTo.Text = e.AddedItems[0].ToString();
}
I get:
“ServiceTrace.WPFApplication.CIPService.ServiceTraceWatchListData”
I’ve tried everything I know and looked and nothing works.
Can anyone tell me what I’m missing? It has to be simple and I'm overthinking it. I just want to get a single field item from a row of data.
Thanks in advance.
J
Hello. I'm sorry for being bothersome. I use telerik:ChartSeriesProvider for visualizing of variable number of Spline series. I want each curve (series) has its own color. I've written the following XAML markup for it:
<UserControl x:Class="DeviceReading.Views.AutomaticGainControlView" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:prism="http://prismlibrary.com/" xmlns:local="clr-namespace:DeviceReading" prism:ViewModelLocator.AutoWireViewModel="True"> <UserControl.Resources> <telerik:ChartPalette x:Key="customPalette"> <telerik:ChartPalette.SeriesEntries> <telerik:PaletteEntryCollection SeriesFamily="Spline"> <telerik:PaletteEntry Fill="DarkBlue" Stroke="DarkBlue"/> <telerik:PaletteEntry Fill="Purple" Stroke="Purple"/> <telerik:PaletteEntry Fill="Red" Stroke="Red"/> <telerik:PaletteEntry Fill="Green" Stroke="Green"/> <telerik:PaletteEntry Fill="Cyan" Stroke="Cyan"/> <telerik:PaletteEntry Fill="Sienna" Stroke="Sienna"/> <telerik:PaletteEntry Fill="Magenta" Stroke="Magenta"/> <telerik:PaletteEntry Fill="DodgerBlue" Stroke="DodgerBlue"/> </telerik:PaletteEntryCollection> </telerik:ChartPalette.SeriesEntries> </telerik:ChartPalette> </UserControl.Resources> <Grid> <Grid.RowDefinitions> <RowDefinition/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition/> </Grid.ColumnDefinitions> <telerik:RadCartesianChart Visibility="{Binding IsAbsoluteSplineChartVisible}" Palette="{StaticResource customPalette}"> <telerik:RadCartesianChart.HorizontalAxis> <telerik:DateTimeContinuousAxis MajorStepUnit="Second" LabelInterval="5" LabelFormat="hh:mm:ss" FontFamily="Segoe UI" PlotMode="OnTicks" TickOrigin="{Binding AlignmentDate}"/> </telerik:RadCartesianChart.HorizontalAxis> <telerik:RadCartesianChart.VerticalAxis> <telerik:LinearAxis FontFamily="Segoe UI" Title="Decibels [Db]" /> </telerik:RadCartesianChart.VerticalAxis> <telerik:RadCartesianChart.Grid> <telerik:CartesianChartGrid MajorLinesVisibility="XY" MajorXLineDashArray="3,4" MajorYLineDashArray="3,4"/> </telerik:RadCartesianChart.Grid> <telerik:RadCartesianChart.SeriesProvider> <telerik:ChartSeriesProvider Source="{Binding SeriesData}"> <telerik:ChartSeriesProvider.SeriesDescriptors> <telerik:CategoricalSeriesDescriptor CategoryPath="Category" ValuePath="Value" ItemsSourcePath="ChartPoints"> <telerik:CategoricalSeriesDescriptor.TypeConverter> <local:SeriesTypeConverter/> </telerik:CategoricalSeriesDescriptor.TypeConverter> </telerik:CategoricalSeriesDescriptor> </telerik:ChartSeriesProvider.SeriesDescriptors> </telerik:ChartSeriesProvider> </telerik:RadCartesianChart.SeriesProvider> </telerik:RadCartesianChart> </Grid></UserControl>Just in case below is SeriesTypeConverter definition.
public class SeriesTypeConverter : IValueConverter{ public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { SeriesModel seriesItem = value as SeriesModel; if (seriesItem.SeriesType == "Spline") { return typeof(SplineSeries); } else if (seriesItem.SeriesType == "Line") { return typeof(LineSeries); } else { return typeof(BarSeries); } } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { /*throw new NotImplementedException()*/return null; }}
The number of series now is vary from 2 to 8 (but upper bound may be larger and will, say 16). As you can see from XAML, I've define my own color palette (customPalette). I bag your pardon, but I do not know how to use it in my XAML, to each curve (series) had its own different color. Now all displayed series (1, 2, 3, 4,...8) are dark blue (have DarkBlue color which is the first in 'customPalette'). Please tell me, how do I do so that each curve had its own different color. And that this color does not change with each session of the program.

TreeView.CheckedItems is contains is checked item.
But now checkeditems is contains all item..

hi all,
i need to create a radribbonWindow with a ribbon view in it to use the ribbon title bar as the window title bar in .net4 but it errors that it must be .net4.5.
is there any way to use .net 4 to do that?
best regards.

hi
i need to add a move right and move left for backstage open and close in ribbon in wpf.
how can i add it?

I have noticed keyboard navigation doesn't work as I was expecting and I wanted to see if the behavior is normal. You can see the same behavior I am seeing in the IsExpandedRowBinding example. The keyboard navigation works as expected for the first level of items but navigation of the child items does not work the same. Pressing left or right does not expand or collapse child items and pressing up or down does not change the selected child item.
Do I need to handle the navigation of the child items myself or is there something I can do to get the TreeListView to handle it?
Thanks
Hello. I am currently trying to accomplish a couple of things with checkbox columns in a RadGridView. My experience with styling in XAML is zero, so good examples would be helpful.
I would like to be able to take the standard checkbox control and
1. Make it larger (for both view and edit mode)
2. When in view mode, style the checkbox control in some way to make it stand out (like Bold or a different color).
The documentation does not provide any examples at all on how to apply styles outside of telling you to create a ControlTemplate and then applying that ControlTemplate to a Style. I believe this is tailored to a developer that already knows how to do these things.
I would like to apply this per-grid for the time being.
We use the AutoGeneratingPropertyDefinition hook in a RadPropertyGrid to specify templates for the various properties we expose. For a collection exposed in this property grid, CollectionEditor seems like a great model, but is there any sort of comparable mechanism to override or specify the property definitions that then appear in the CollectionEditor? I don't see anything that looks immediately obvious in CollectionEditor or CollectionEditorPicker, and the CollectionEditor that ends up in our RadPropertyGrid doesn't seem to hit the property grid's AutoGeneratingPropertyDefinition event handler.
Elsewhere in these forums, I see suggestions to override the complete Template of CollectionEditor; is that the only option in this case? Are there any better/easier methods to specify DataTemplates for properties in a CollecitonEditor?
Thanks,
-David
Hi,
I would create a UserControl called ListUserControl, it should contains RadgridView and other telerik controls. Ok.
But, what is the best way to wrap dependecy properties of GridView?
In primis: ItemSource, I created a dependency property in my user control, but how can I link this property to ItemSource of gridview, what is the best way to do this?
public partial class ListViewUserControl : UserControl { public ListViewUserControl() { InitializeComponent(); } public object ItemSource { get { return (object) GetValue(ItemSourceProperty); } set { SetValue(ItemSourceProperty, value); } } // Using a DependencyProperty as the backing store for ItemSource. This enables animation, styling, binding, etc... public static readonly DependencyProperty ItemSourceProperty = DependencyProperty.Register(name: "ItemSource", propertyType: typeof(object), ownerType: typeof(object), typeMetadata: new PropertyMetadata(0)); }