Dynamically filter data source of the List or Library control

Hi,

I have a List or Library control that I filter based on one field. The filter is getting applied as expected. However, on the ready event, I am able to view that the control is loading all the records available in the list, and then it applies the filter.
The DOM contains all the records retrieved from the list. Is there any event of the List or Library control that we can use it to retrieve only the required records rather than bringing all the records to the front end?

PS:
It can cause performance impacts and I am also able to view a flickering effect from the UI perspective

Thanks,
sj

Dear @sooraj,
Can you tell me if you're applying filtering via UI or via JavaScript code? I'll consult with the devs on this one, but it's likely that this is the best available option for now. Perhaps something can be done about the flickering effect, for example, the control can be hidden until the filter is applied.

HI @Nikita_Kurguzov,

I am using custom JavaScript code to filter the data. During the on ready event of the control, I am adding the following code to filter the data:

fd.control(name).ready().then(function (ctrl) {
ctrl.filter = "" + itemID + "";
ctrl.refresh();
});

Dear @sooraj,
Unfortunately, I don't think that's possible. We can offer paid support to implement it in the future. If you would be interested. contact us at [email protected] and we can discuss the details.