Expanded TreeListViewRow cannot be collapsed when select a child node and SelectionMode is set to "Expanded". Steps to reproduce: 1. Expand the root node 2. Select a child node 3. Try to collapse the root node
workaround: Extract the ControlTemplate for the TreeListViewRow and set the Style explicitly or remove the local Style setter.
this
.RadTreeListView.SelectedCells.Clear();
The JAWS screen reader cannot read the RadTreeListView and also its rows and cells.
This reproduces after the 2019.3.917 release.
To work this around create a custom RadTreeListViewAutomationPeer:
public class CustomTreeListView : RadTreeListView
{
protected override AutomationPeer OnCreateAutomationPeer()
{
return new CustomTreeListViewAutomationPeer(this);
}
}
public class CustomTreeListViewAutomationPeer : RadTreeListViewAutomationPeer
{
public CustomTreeListViewAutomationPeer(RadTreeListView owner)
: base(owner)
{
var methodInfo = typeof(RadTreeListViewAutomationPeer).GetMethod("GetItemPeers", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);
methodInfo.Invoke(this, null);
}
protected override List<AutomationPeer> GetChildrenCore()
{
var frameworkPeer = new FrameworkElementAutomationPeer((FrameworkElement)this.Owner);
return frameworkPeer.GetChildren();
}
}
I found a bug when use MergeCells in grid view and tree list view, I am the license account, my support is out of date,But I still want to feadback the bug to you , I make a vedio in attachment
When use in radtreelistview , I can not explict set the MergedCellsStyle, maybe MergedCellsStyleSelector also have the bug.I just try MergedCellsStyle.
The selected rows of TreeListView are not returned when calling SelectionPattern.GetSelection method.
The problem can be reproduced with RadGridView as well.
By default the AutoExpandItemsAfterFilter property of RadTreeListView is set to True, which means that when you filter the data, the parents of all found child items will be expanded automatically. However, if you call the CollapseAllHierarchyItems method this functionality stops working.
To work this around, you can reset the ItemsSource property instead of using the CollapseAllHierarchyItems.
One of the following two exceptions occur when the BindingOperations.EnableCollectionSynchronization() is used with the ItemsSource of RadTreeListView:
When using the EnableCollectionSynchronization, the corresponding items control should allow updates of the ItemsSource collection on different threads. This is valid if the requirements to use the EnableCollectionSynchronization method are met.
The exception stack traces are:
InvalidOperationException
at System.ThrowHelper.ThrowInvalidOperationException_InvalidOperation_EnumFailedVersion() in /_/src/libraries/System.Private.CoreLib/src/System/ThrowHelper.cs:line 432
at System.Collections.Generic.List`1.Enumerator.MoveNext() in /_/src/libraries/System.Private.CoreLib/src/System/Collections/Generic/List.cs:line 1130
at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()
at Telerik.Windows.Data.EnumerableExtensions.<SelectRecursive>d__15`1.MoveNext()
at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()
at Telerik.Windows.Data.HierarchicalCollectionViewBase.PopulateInternalList(IQueryable view)
at Telerik.Windows.Data.QueryableCollectionView.get_InternalList()
at Telerik.Windows.Data.HierarchicalCollectionViewBase.get_InternalCount()
at Telerik.Windows.Data.DataItemCollection.get_Item(Int32 index)
at Telerik.Windows.Controls.GridView.Rows.GetRowItemsAtRange(Int32 startIndex, Int32 endIndex)
at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.FlatLayoutStrategy.RealizeRows(Int32 startIndex, Int32 endIndex, Double& verticalOffset, HashSet`1& realizedRows)
at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.FlatLayoutStrategy.MeasureOverride(Size availableSize)
at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MeasureOverride(Size availableSize)
NullReferenceException at Telerik.Windows.Data.QueryableCollectionView.InternalGetItemAt(Int32 index) in Telerik.Windows.Data\QueryableCollectionView.cs:line 3081 at Telerik.Windows.Controls.GridView.Rows.GetRowItemsAtRange(Int32 startIndex, Int32 endIndex) at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.FlatLayoutStrategy.RealizeRows(Int32 startIndex, Int32 endIndex, Double& verticalOffset, HashSet`1& realizedRows) at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.FlatLayoutStrategy.MeasureOverride(Size availableSize) at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MeasureOverride(Size availableSize)
To work this around dispatch the updates of the ItemsSource collection to the main UI thread.
Dispatcher.BeginInvoke(new Action(() =>
{
// add/remove items from the source collection
}));
Items are expanded when they match the filtering criteria. Once I added the filterdescriptor, the tree started to expand itself and when I put a break point in RowIsExpandedChanged event handler the treelistviewrow's IsExpanded property is already true Can you have a look at the attached sample application and try to achieve the following: 1. keep the on demand load (so only loadchildren when user clicked on the arrow to expand) 2. apply filter only on the expanded nodes
Reproducible on http://demos.telerik.com/silverlight/#TreeListView/TreeListViewDragAndDrop
Please help ... treelistview is inserting unwanted rows in between records. Sample image attached and xaml code below ... Please send sample application of treelistview that is working properly if possible. Thanks. trifee <telerik:RadTreeListView ItemsSource="{Binding GetAccountsData.GetAccountLogParentAndChildData_Results, UpdateSourceTrigger=PropertyChanged}" AutoGenerateColumns="False" IsFilteringAllowed="False" IsReadOnly="True" > <telerik:RadTreeListView.ChildTableDefinitions> <telerik:TreeListViewTableDefinition ItemsSource="{Binding Items}" /> </telerik:RadTreeListView.ChildTableDefinitions>