Hi,
We are using the TreeGrid component and have a custom data adapter to retrieve the data. Every time you expand a record, the children get fetched. All is working as it should.
We also want to enable filtering on this treegrid, to allow filtering everything that is currently expanded and rendered on the screen. For some reason, every time we try to filter, the Read() method on the custom adapter is called. This adapter has no knowledge of everything that is rendered and expanded on screen (as far as I know).
Is there any way to let the TreeGrid simply filter what is rendered on screen instead of reloading the data source through the Custom Adapter?
We want to maintain the items that are loaded (and expanded) and just filter what is currently displayed.
<SfTreeGrid TValue="TreeItem"
IdMapping="Id"
ParentIdMapping="ParentId"
TreeColumnIndex="1"
HasChildMapping="HasChildren"
AllowFiltering="true">
<SfDataManager AdaptorInstance="typeof(TreeAdaptor)" Adaptor="Adaptors.CustomAdaptor"></SfDataManager>
<TreeGridColumns>
<TreeGridColumn Field=@nameof(TreeItem.Type) HeaderText=" " Width="120">
<TreeGridColumn Field=@nameof(TreeItem.Name) HeaderText="NAME"></TreeGridColumn>
<TreeGridColumn Field=@nameof(TreeItem.Path) HeaderText="PATH"></TreeGridColumn>
<TreeGridColumn Field=@nameof(TreeItem.Stereotype) HeaderText="STEREOTYPE"></TreeGridColumn>
<TreeGridColumn Field=@nameof(TreeItem.RelationType) HeaderText="RELATIONTYPE"></TreeGridColumn>
</TreeGridColumn>
</TreeGridColumns>
</SfTreeGrid>
Thank you!