or
Hi,
I want the user to be able to navigate through the tree and actively select one or several nodes by the use of the keboard.
I have tried the all kinds of different options on the RadTreeListView. Added the GridViewSelectColumn, set the SelectionMode to Extended, set the CanUserSelect to false.
When I try to navigate with the keyboard I get unexpected behaviour.
What settings should I use?
Best regards
Erik
// start code snippet...
x_GRID.AutoGenerateColumns =
true
;
dd.Tables.Add(t);
// PARENT TABLE
dd.Tables.Add(t0);
// CHILD TABLE A
dd.Tables.Add(t1);
// CHILD (CHILD) TABLE B - This is a child of table A
dd.Relations.Add(
new
DataRelation(
"Prop_Params"
, dd.Tables[0].Columns[
"PROPERTY_ID"
], dd.Tables[1].Columns[
"PROPERTY_ID"
]));
dd.Relations.Add(
new
DataRelation(
"Section_Params"
, dd.Tables[1].Columns[
"PROPERTY_ID"
], dd.Tables[2].Columns[
"PROPERTY_ID"
]));
x_GRID.ItemSource = dd;
// end code snippet...
A few questions - I am
in
the DataLoading
event
(see questions
in
comments below)
void
wpfgv_DataLoading(
object
sender, Telerik.Windows.Controls.GridView.GridViewDataLoadingEventArgs e)
{
var dataControl = (GridViewDataControl)sender;
// 1. ParentRow != null tells me that it is a child table,
// but I need to know which CHILD TableName it is
// So that I can do different things for child table A and child (child) table B
// (like hide a column that child table A has but child table B does not.
// How do I get the TableName of what dataControl is referring to
// (I could not seem to find it in my debugging watches)???
if
(dataControl.ParentRow !=
null
)
{
dataControl.ShowGroupPanel =
false
;
// 2. I "think" because I have AutoGenerateCols = true, datacontrol.Columns = null
// so this crashes if left uncommented...
// just trying to verify my thinking on why it is null.
dataControl.Columns[
"PROPERTY_ID"
].IsVisible =
false
;
// will crash
// 3. x_GRID is the name of my GridView Control.
// While this works, it only hides the PROPERTY_ID of the
// PARENT table column called PROPERTY_ID
// and does NOT hide child columns of the same name (which is exactly
// the opposite of what I want to do).
// Is there a way without setting x_GRID.AutoGenerateColumns = false
// and binding each column
// in code or xaml to hide just columns of the children???
x_GRID.Columns[
"PROPERTY_ID"
].IsVisible =
false
;
}
}
Thanks,
Daryl
<
telerik:RadChart.PaletteBrushes
>
<
LinearGradientBrush
StartPoint
=
"0,0"
EndPoint
=
"0,1"
>
<
GradientStop
Color
=
"Red"
Offset
=
"0"
/>
<
GradientStop
Color
=
"BlueViolet"
Offset
=
"1"
/>
</
LinearGradientBrush
>
</
telerik:RadChart.PaletteBrushes
>
Appearance =
new
SeriesAppearanceSettings
{
Fill =
new
LinearGradientBrush(Colors.OrangeRed, Colors.Blue, 90)
}
<Setter Property=
"BackgroundStyle"
>
<Setter.Value>
<Style TargetType=
"Shape"
>
<Setter Property=
"Fill"
>
<Setter.Value>
<LinearGradientBrush StartPoint=
"0,0"
EndPoint=
"0,1"
>
<GradientStop Color=
"OrangeRed"
Offset=
"0"
/>
<GradientStop Color=
"Blue"
Offset=
"1"
/>
</LinearGradientBrush>
</Setter.Value>
</Setter>
<Setter Property=
"Opacity"
Value=
"0.5"
/>
</Style>
</Setter.Value>
</Setter>