or
<
Style
TargetType
=
"telerik:RadTreeViewItem"
x:Key
=
"RadTreeViewItemStyle"
>
<
Setter
Property
=
"CheckState"
Value
=
"{Binding Path=CheckState, Mode=TwoWay, Converter={StaticResource ToggleStateToBoolean}}"
/>
<
Setter
Property
=
"DefaultImageSrc"
Value
=
"{Binding ListImage}"
/>
<
Setter
Property
=
"IsExpanded"
Value
=
"{Binding IsExpanded}"
/>
<
Setter
Property
=
"IsSelected"
Value
=
"{Binding IsSelected, Mode=TwoWay}"
/>
</
Style
>
<
HierarchicalDataTemplate
x:Key
=
"TreeViewItemTemplate"
ItemsSource
=
"{Binding DirectoryList}"
ItemContainerStyle
=
"{StaticResource RadTreeViewItemStyle}"
>
<
TextBlock
Text
=
"{Binding DisplayName}"
Margin
=
"0,0,5,0"
/>
</
HierarchicalDataTemplate
>
<
telerik:RadTreeView
Grid.Column
=
"0"
IsLineEnabled
=
"True"
ItemsOptionListType
=
"CheckList"
IsOptionElementsEnabled
=
"True"
IsTriStateMode
=
"True"
BorderBrush
=
"Black"
BorderThickness
=
"1"
ItemsSource
=
"{Binding RootItems}"
ItemTemplate
=
"{StaticResource TreeViewItemTemplate}"
IsLoadOnDemandEnabled
=
"True"
LoadOnDemand
=
"RadTreeView_LoadOnDemand"
ItemContainerStyle
=
"{StaticResource RadTreeViewItemStyle}"
Background
=
"White"
Name
=
"ExplorerTree"
>
</
telerik:RadTreeView
>
In the codebehind, I am passing the LoadOnDemand back to my viewmodel for processing. Everything is working exactly as it should except for when I attempt to load a node that has been selected. If I select the node and then fire the LoadOnDemand event, it loads properly and displays all the child nodes, but then deselects the node itself. How can I get it to stop doing this?
<
telerik:RadGridView
Grid.Column
=
"1"
Grid.ColumnSpan
=
"3"
Grid.Row
=
"0"
Name
=
"radGridView1"
AutoGenerateColumns
=
"False"
ShowGroupPanel
=
"False"
ItemsSource
=
"{Binding IndicatorsList}"
>
<
telerik:RadGridView.Columns
>
<
col:MyColumn
Header
=
"#"
Width
=
"35"
/>
<
telerik:GridViewColumn
IsReadOnly
=
"False"
Header
=
"Inc."
Width
=
"35"
>
<
telerik:GridViewColumn.CellTemplate
>
<
DataTemplate
>
<
CheckBox
IsChecked
=
"{Binding IncludeIt, Mode=TwoWay}"
/>
</
DataTemplate
>
</
telerik:GridViewColumn.CellTemplate
>
</
telerik:GridViewColumn
>
<
telerik:GridViewDataColumn
Header
=
"Indicator"
DataMemberBinding
=
"{Binding DisplayName}"
IsReadOnly
=
"True"
Width
=
"250"
/>
<
telerik:GridViewColumn
IsReadOnly
=
"False"
Header
=
"Log"
Width
=
"35"
>
<
telerik:GridViewColumn.CellTemplate
>
<
DataTemplate
>
<
CheckBox
IsChecked
=
"{Binding LOG, Mode=TwoWay}"
/>
</
DataTemplate
>
</
telerik:GridViewColumn.CellTemplate
>
</
telerik:GridViewColumn
>
<
telerik:GridViewColumn
IsReadOnly
=
"False"
Header
=
"Lag"
Width
=
"75"
>
<
telerik:GridViewColumn.CellTemplate
>
<
DataTemplate
>
<
TextBox
Text
=
"{Binding LAG, Mode=TwoWay}"
/>
</
DataTemplate
>
</
telerik:GridViewColumn.CellTemplate
>
</
telerik:GridViewColumn
>
<
telerik:GridViewColumn
Header
=
"Del."
Width
=
"35"
>
<
telerik:GridViewColumn.CellTemplate
>
<
DataTemplate
>
<
telerik:RadButton
Command
=
"{Binding Delete}"
CommandParameter
=
"{Binding}"
Width
=
"27"
Height
=
"20"
>
<
Image
Source
=
"/finStat.MacroVal.UI;component/Images/del_small.png"
></
Image
>
</
telerik:RadButton
>
</
DataTemplate
>
</
telerik:GridViewColumn.CellTemplate
>
</
telerik:GridViewColumn
>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
public List<
Indicator
> IndicatorsList
{
get { return Indicators.ToList(); }
}
public bool IncludeIt
{
get { /******Here How I get current object item (i.e. Indicator) of the row so that I can return its value *********/ }
set { /******Here How I get current object item (i.e. Indicator) of the row so that I set its value *********/ }
}
public class Indicator
{
public bool IncludeIndicator { get; set; }
public string Name { get; set; }
public bool Log { get; set; }
public double Lag { get; set; }
}
IsPinned=False
in docking RadPane, but after loading it is showing animation and then hiding it. Is there any way I can disable this animation?
<
telerik:GridViewDataColumn
Header
=
"Name"
DataMemberBinding
=
"{Binding Name, Converter={StaticResource InsensitiveRevConverter}}"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"{Binding Image}"
/>
<
TextBlock
x:Name
=
"ShowELementPupUp"
Text
=
"{Binding Name}"
/>
<
Popup
PlacementTarget
=
"{Binding ElementName=ShowELementPupUp}"
Style
=
"{StaticResource TooltipPopupStyle}"
PopupAnimation
=
"Scroll"
>
<
telerik:RadGridView
x:Name
=
"RadGridViewOfPopUp"
Visibility
=
"{Binding ShowElements}"
AllowDrop
=
"True"
AutoGenerateColumns
=
"False"
CanUserFreezeColumns
=
"False"
CanUserInsertRows
=
"False"
CanUserReorderColumns
=
"False"
CanUserSortColumns
=
"False"
CanUserDeleteRows
=
"False"
ShowGroupPanel
=
"False"
GridLinesVisibility
=
"None"
RowIndicatorVisibility
=
"Collapsed"
ShowColumnHeaders
=
"False"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Name, Mode=OneWay}"
/>
<
telerik:GridViewDataColumn
MinWidth
=
"20"
DataMemberBinding
=
"{Binding UnweightedPercentage, Mode=OneWay}"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
</
Popup
>
</
StackPanel
>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
<
telerikQuickStart:QuickStart.ExampleHeader
>
<
Border
telerikQuickStart:ThemeAwareBackgroundBehavior.IsEnabled
=
"True"
Grid.RowSpan
=
"3"
/>