Hiding a node
Greetings!
Is it possible to Visibility.Collapse node from TreeView?
I do not want to manipulate item source. I just want to hide specific node from a tree.
Best Regards,
Thilo
SIGN IN To post a reply.
11 Replies
1 reply marked as answer
VS
Vijayarasan Sivanandham
Syncfusion Team
May 27, 2021 06:30 AM UTC
Hi Thilo Brosinsky,
Thank you for contacting Syncfusion Support.
Your requirement can be achieved by customization the QueryNodeSize event in SfTreeView. Please refer the below code snippet,
Thank you for contacting Syncfusion Support.
Your requirement can be achieved by customization the QueryNodeSize event in SfTreeView. Please refer the below code snippet,
|
<syncfusion:SfTreeView x:Name="sfTreeView"
ChildPropertyName="SubFiles"
FullRowSelect="True"
QueryNodeSize="sfTreeView_QueryNodeSize"
ItemsSource="{Binding ImageNodeInfo}"> |
|
private void sfTreeView_QueryNodeSize(object sender, QueryNodeSizeEventArgs e)
{
//Check the condition based Sepcific Node
if ((e.Node.Content as FileManager).ItemName == "Pictures")
{
//Here set Height 0 for specific Node Hide in SfTreeView
e.Height = 0;
e.Handled = true;
}
} |
For more information related to QueryNodeSize event, please refer the below user guide documentation link,
UG Link: https://help.syncfusion.com/wpf/treeview/item-height-customization#customize-item-height-using-querynodesize-event
UG Link: https://help.syncfusion.com/wpf/treeview/item-height-customization#customize-item-height-using-querynodesize-event
Please let us know if you have any concerns in this.
Regards,
Vijayarasan S
Regards,
Vijayarasan S
TB
Thilo Brosinsky
May 27, 2021 11:38 AM UTC
Greetings!
Thank you for quick response.
Problem is that I have search functionality. Your solution works on load. I need something to work, when I type in search text in a TextBlock and then hide unneeded nodes.
VS
Vijayarasan Sivanandham
Syncfusion Team
May 28, 2021 02:45 PM UTC
Hi Thilo Brosinsky,
Thank for the update.
Currently, we are analyzing your requirement of “Hiding a node in SfTreeView” We will validate and update you the details on or before June 01, 2021.
We appreciate your patience until then.
Regards,
Vijayarasan S
Thank for the update.
Currently, we are analyzing your requirement of “Hiding a node in SfTreeView” We will validate and update you the details on or before June 01, 2021.
We appreciate your patience until then.
Regards,
Vijayarasan S
VS
Vijayarasan Sivanandham
Syncfusion Team
June 1, 2021 01:18 PM UTC
Hi Thilo Brosinsky,
Thank you for your patience.
Search:
In SfDataGrid control contain search support. Search support allows you to search the data displayed in SfDataGrid. For more information, please refer the below UG link,
Thank you for your patience.
Search:
In SfDataGrid control contain search support. Search support allows you to search the data displayed in SfDataGrid. For more information, please refer the below UG link,
UG Link: https://help.syncfusion.com/wpf/datagrid/search
(Or)
RowHeightCustomization :
In SfDataGrid contains the RowHeight customization support. You can hide or reset height of the particular or all rows in View at runtime to get the updated height from QueryRowHeight event. For more information, please refer the below UG link,
UG Link: https://help.syncfusion.com/wpf/datagrid/row-height-customization#reset-row-height-at-runtime
(Or)
RowHeightCustomization :
In SfDataGrid contains the RowHeight customization support. You can hide or reset height of the particular or all rows in View at runtime to get the updated height from QueryRowHeight event. For more information, please refer the below UG link,
UG Link: https://help.syncfusion.com/wpf/datagrid/row-height-customization#reset-row-height-at-runtime
Can you please check and confirm above-mentioned scenario is your expected behavior like Search (or) RowHeightCustomization support in SfTreeView control?
It will be helpful for us to check on it and provide you the solution at the earliest.
Regards,
Vijayarasan S
Vijayarasan S
Marked as answer
TB
Thilo Brosinsky
June 2, 2021 04:50 AM UTC
Your example works for DataGrid, but SfTreeView does not have anything close as SearchHelper or GetVisualContainer(), so I do not see any use of your suggestions for my case, unfortunatelly.
Are there something for SfTreeView and not for SfDataGrid?
VS
Vijayarasan Sivanandham
Syncfusion Team
June 2, 2021 05:45 AM UTC
Hi Thilo Brosinsky,
Thanks for the update.
Currently, SfTreeView does not have support for SearchHelper or RowHeightCustomization. So, we are just clarifying your requirement is like SearchHelper or RowHeightCustomization. After confirmation, we have logged a feature request for your reported scenario in SfTreeView control.
Please let us know if you have any concerns in this.
Regards,
Vijayarasan S
TB
Thilo Brosinsky
June 2, 2021 06:13 AM UTC
Thank you very much!
Will be looking forward for new features!
VS
Vijayarasan Sivanandham
Syncfusion Team
June 2, 2021 06:53 AM UTC
Hi Thilo Brosinsky,
Thanks for the update.
Can you please confirm your requirement is like SearchHelper (or) RowHeightCustomization in SfTreeView. After confirmation, we have logged a feature request for your reported scenario in SfTreeView control.
It will be helpful for us to check on it and provide you the solution at the earliest.
Thanks for the update.
Can you please confirm your requirement is like SearchHelper (or) RowHeightCustomization in SfTreeView. After confirmation, we have logged a feature request for your reported scenario in SfTreeView control.
It will be helpful for us to check on it and provide you the solution at the earliest.
Regards,
Vijayarasan S
TB
Thilo Brosinsky
June 9, 2021 12:42 PM UTC
I really enjoy how filtering and search works in TreeGrid. It would be nice to have functionality like SearchHelper r smth like this.
VS
Vijayarasan Sivanandham
Syncfusion Team
June 10, 2021 02:33 PM UTC
Hi Thilo Brosinsky,
Thanks for the update.
Currently, SfTreeView does not have a Search and Filtering support. We have analyzed and considered your requirement of “Provide the Search and filtering support” in SfTreeView and logged feature request for the same. We will implement this feature in any of our upcoming release.
At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. We will let you know when this feature is implemented. We appreciate your patience until then.
Thank you for requesting this feature and helping us define it. We are always trying to make our products better and feature requests like yours are a key part of our product growth efforts.
If you have any more specification/suggestions to the feature request, you can add it as a comment in the portal and cast your vote to make it count.
Regards,
Vijayarasan S
VS
Vijayarasan Sivanandham
Syncfusion Team
December 23, 2021 12:26 PM UTC
Hi Thilo Brosinsky,
We are glad to announce that our Essential Studio 2021 Volume 4 Main Release V19.4.0.38 is rolled out with filtering support in SfTreeView and is available for download under the following link.
We are glad to announce that our Essential Studio 2021 Volume 4 Main Release V19.4.0.38 is rolled out with filtering support in SfTreeView and is available for download under the following link.
Please refer the below given knowledge base document to apply filters in SfTreeView using ListCollectionView and CollectionView.
KB reference : https://www.syncfusion.com/kb/12945/how-to-apply-filters-in-wpf-treeview-sftreeview-using-listcollectionview
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.
Regards,
Vijayarasan S
SIGN IN To post a reply.
- 11 Replies
- 2 Participants
- Marked answer
-
TB Thilo Brosinsky
- May 26, 2021 09:02 PM UTC
- Dec 23, 2021 12:26 PM UTC