It looks like the RadPropertyGrid doesn't supply an ITypeDescriptorContext when invoking TypeConverters on a property (the context is alwayas null). This makes it impossible to use custom type converters that do things like provide custom standard values. Is this a known limitation, are there plans to add support for this?
Thanks
I've used your tutorial "Templating the GroupHeaders topic" to create a custom GroupHeaderContentTemplateSelector.
How do I make each group header height to stretch to the content of the header template? For example the first group header height is 200px, the second 300px, the third 80px. Currently all group headers have equal height. Is this possible?
Hi,
I am using Rad Timebar for showing charts. In that I added 6 intervals year,quarter,month,week,day,hour scrolling upto month level only. When I remove month interval it is scrolling Quarter level. I would like to scroll both month as well as quarter, means after month scrolling need to show quarter level on the top of the head.
Regards,
Swamy.
I have a CollectionEditor called Pictures which has key value pairs as items. The value is a path to an image file. My template for CollectionEditor looks like this:
<Style TargetType="telerik:CollectionEditor">
<Setter Property="ItemTemplate">
<Setter.Value>
<DataTemplate>
<TextBlock Text="{Binding Path=Bit}" />
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
I would like to add a browse button to the 'content' field. Is that possible?
Hi, it's possibile not delete the appointment then the user press the key Delete ?
I have the ShowAppointmentDeleteButton="False" and the user delete the appointment usign the contexmenu, but if press the key Delete, the appointment is delete from the scheduler but obviously not from database.
I have using the event PreviewKeyUp, but not work.
if you have any solution...thanks
Aurelio
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.