protected
override
void
InitGroups()
{
DefaultGroupDescriptors =
new
GroupDescriptorCollection();
GroupDescriptor Descriptor_STKNR =
new
GroupDescriptor();
Descriptor_STKNR.Member = "Field1";
CountFunction cound =
new
CountFunction();
Descriptor_STKNR.AggregateFunctions.Add(cound);
DefaultGroupDescriptors.Add(Descriptor_STKNR);
GroupDescriptor Descriptor_MEAUF =
new
GroupDescriptor();
Descriptor_MEAUF.Member =
"Field2";
SumFunction sum =
new
SumFunction();
Descriptor_MEAUF.AggregateFunctions.Add(sum);
DefaultGroupDescriptors.Add(Descriptor_MEAUF);
}
// execut at the binding:
foreach
(GroupDescriptor Elem
in
DefaultGroupDescriptors
)
{
Grid.GroupDescriptors.Add(Elem);
AddAggregateFunctions(Grid, Elem);
}
private
static
void
AddAggregateFunctions(RadGridView Grid, GroupDescriptor Elem)
{
if
(Elem.AggregateFunctions !=
null
)
{
foreach
(AggregateFunction Function
in
Elem.AggregateFunctions)
{
Grid.Columns[Elem.Member].AggregateFunctions.Add(Function);
}
}
}
Grid.GroupDescriptors.Add(Elem);
AddAggregateFunctions(Grid, Elem);
CountFunction cound =
new
CountFunction();
Descriptor_STKNR.AggregateFunctions.Add(cound);
DefaultGroupDescriptors.Add(Descriptor_STKNR);
...
DefaultGroupDescriptors.Add(Descriptor_MEAUF);
foreach
(GroupDescriptor Elem
in
newValue)
{
AddAggregateFunctions(ActGrid, Elem);
ActGrid.GroupDescriptors.Add(Elem);
}
<
Style x:Key="Win" TargetType="telerikDockingControls:RadPane">
<Setter Property="AllowsTransparency" Value="False"/>
</Style>
but I get the error message -
property was not found in RadePane.
could you tell me how to disable AllowsTransparency please?
public
class
SiteOrderHeader
{
public
int
SiteOrderId {
get
;
set
; }
public
List<MachineSpeed> MachineSpeeds {
get
;
set
; }
}
public
class
MachineSpeed
{
public
string
Type {
get
;
set
; }
public
int
Speed {
get
;
set
; }
}
SiteOrderHeader siteOrderHeader =
new
SiteOrderHeader();
siteOrderHeader.SiteOrderId = 1;
siteOrderHeader.MachineSpeeds.Add(
new
MachineSpeed() { Type =
"Type1"
, Speed = 10000 });
siteOrderHeader.MachineSpeeds.Add(
new
MachineSpeed() { Type =
"Type2"
, Speed = 6000 });
siteOrderHeader.MachineSpeeds.Add(
new
MachineSpeed() { Type =
"Type3"
, Speed = 12000 });
SiteOrderId | Type1 | Type2 | Type3 |
1 | 10000 | 6000 | 12000 |
Hi everyone,
I am glad to announce the first public build of the upcoming RadDocking Q2 2011, which is intended to address the performance issues in the control under Windows XP and/or high resolutions (WPF). The changes we have made in both the Silverlight and the WPF versions are fairly large and we would like to get as much feedback as possible, so please try the attached assemblies and drop us a line. We are willing to fix all reported bugs by the upcoming official beta release next month and we will not hesitate to give you Telerik points.
What's changed:
- we replaced the base class of ToolWindow, so now the tool windows are not displayed in a large transparent window (the cause of the performance problems), but each of them has a small native window.
- we fixed a frequently reported memory leak.
What's new:
- the tool windows now support the Windows 7 gestures for maximize, minimize, etc.
- ActivePane
- Ability to customize the drag-drop
- Bugfixes
What's coming for the beta
- fixes for a lot of bugs, logged in the PITS, so now is a good time to vote for them.
What does not work now:
- we are aware of several minor bugs and glitches, but please let us know if you find something, as we might have missed it.
The attached assemblies are built against Q1 2011 SP1, so you should be able to test the control in your existing application. We can provide assemblies built against the latest internal builds on demand.
<
Window.Resources
>
<
example:ExampleViewModel
x:Key
=
"ViewModel"
/>
<
Style
x:Key
=
"CustomLegendItemStyle"
TargetType
=
"telerik:ChartLegendItem"
>
<
Setter
Property
=
"Foreground"
Value
=
"Black"
/>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"telerik:ChartLegendItem"
>
<
Grid
x:Name
=
"PART_MainContainer"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Top"
Margin
=
"0,0,5,0"
>
<
Path
x:Name
=
"PART_LegendItemMarker"
Height
=
"20"
Width
=
"*"
Style
=
"{TemplateBinding ItemStyle}"
Stretch
=
"Fill"
>
<
Path.Data
>
<
PathGeometry
x:Name
=
"PART_ItemMarkerGeometry"
/>
</
Path.Data
>
</
Path
>
<
CheckBox
IsChecked
=
"True"
VerticalAlignment
=
"Center"
Margin
=
"2,0"
Content
=
"{TemplateBinding Label}"
Foreground
=
"{TemplateBinding Foreground}"
Command
=
"{Binding Path=ChangeSeriesVisibilityCommand, Source={StaticResource ViewModel}}"
CommandParameter
=
"{TemplateBinding Label}"
/>
</
Grid
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
</
Window.Resources
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"*"
/>
<
RowDefinition
Height
=
"Auto"
/>
</
Grid.RowDefinitions
>
<
telerik:RadChart
x:Name
=
"RadChart1"
>
<
telerik:RadChart.DefaultView
>
<
telerik:ChartDefaultView
ChartLegendPosition
=
"Top"
>
<
telerik:ChartDefaultView.ChartLegend
>
<
telerik:ChartLegend
x:Name
=
"PrimaryLegend"
Header
=
"Click on country to hide/show:"
LegendItemMarkerShape
=
"Square"
LegendItemStyle
=
"{StaticResource CustomLegendItemStyle}"
Foreground
=
"Black"
HeaderFontWeight
=
"Normal"
FontFamily
=
"Segoe UI"
/>
</
telerik:ChartDefaultView.ChartLegend
>
<
telerik:ChartDefaultView.ChartArea
>
<
telerik:ChartArea
Padding
=
"5,10,20,5"
LabelFormatBehavior
=
"None"
LegendName
=
"PrimaryLegend"
/>
</
telerik:ChartDefaultView
>
</
telerik:RadChart.DefaultView
>
</
telerik:RadChart
>
<
TextBlock
Grid.Row
=
"1"
x:Name
=
"sourceText"
TextAlignment
=
"Right"
Text
=
"Source: Eurostat"
FontSize
=
"10"
Foreground
=
"{Binding Source={StaticResource ViewModel}, Path=ApplicationThemeAwareForeground}"
/>
</
Grid
>
</
Window
>
Random rnd =
new
Random();
public
Example()
{
this
.InitializeComponent();
var ds =
new
DataSeries();
for
(var x = 1; x <= 14; ++x)
{
ds.Definition =
new
LineSeriesDefinition();
ds.Definition.ItemLabelFormat =
"0.#"
;
ds.Definition.Visibility = SeriesVisibility.Visible;
ds.LegendLabel = x.ToString();
var dp =
new
DataPoint { YValue =
this
.rnd.Next(10) + 1 };
if
(x == 3 || x == 7)
{
dp.IsEmpty =
true
;
}
ds.Add(dp);
}
this
.RadChart1.DefaultView.ChartArea.DataSeries.Add(ds);
}
<
telerik:RadPanelBar Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="3" HorizontalAlignment="Stretch" Name="radPanelBar2" VerticalAlignment="Bottom" Width="Auto" Orientation="Vertical" DropExpandDelay="00:00:02" Background="#FFE7E9E7" FlowDirection="RightToLeft" VerticalContentAlignment="Top">
<telerik:RadPanelBar Grid.Column="0" Grid.Row="1" Grid.RowSpan="2" Height="Auto" HorizontalAlignment="Left" Name="radPanelBar3" VerticalAlignment="Stretch" Width="Auto" Orientation="Horizontal" HorizontalContentAlignment="Left" FlowDirection="RightToLeft" DropExpandDelay="00:00:02" Background="#FFE7E9E7">
<
telerik:RadPanelBar Grid.Column="2" Grid.Row="1" Grid.RowSpan="2" Height="Auto" HorizontalAlignment="Right" Name="radPanelBar1" VerticalAlignment="Stretch" Width="Auto" Orientation="Horizontal" Background="#FFE7E9E7">
<
telerik:RadPanelBar Grid.Column="0" Grid.Row="3" Grid.ColumnSpan="3" HorizontalAlignment="Stretch" Name="radPanelBar4" VerticalAlignment="Bottom" Width="Auto" Orientation="Vertical" Background="#FFE7E9E7">