Filter all (rendered) records on screen

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!

1 Reply 1 reply marked as answer

PK Padmavathy Kamalanathan Syncfusion Team September 8, 2020 11:24 AM UTC

Hi Jaco, 
 
Thanks  for contacting Syncfusion Forums. 
 
We have issue in filtering of Tree Grid with Custom Adaptor. We have already logged it as bug(“Filtering issue in custom adaptor”) and fix for this issue will be rolled out in our upcoming weekly nuget release which is expected to be rolled out on or before 16th  September 2020. 
 
You can track the current status of your request, review the proposed resolution timeline and contact us for any further queries through this link, 
 
Once the issue is fixed, we will achieve your requirement and share you the sample for the same. 
 
Note: To view the above feedback, kindly login into your account. 
 
Kindly get back to us for further assistance. 
 
Regards, 
Padmavathy Kamalanathan 


Marked as answer
Loader.
Up arrow icon