List or library control disable buttons after filtering

Good day,
When i use filter in list or library control:

fd.control('SPDataTable0').filter; // returns CAML string

//return only items where Title is "Test"
fd.control('SPDataTable0').filter =

it return me

and to see the result i must push the bottom button

How can i set to display result on form load without pressing this button?

Hello @ixxxl,

Could you please share the complete code that you are using to filter items in List or Library control.

Also, what is the Item limit for the selected list view? You can check it in list view settings >> item limit:

fd.spRendered(function() {
var dt = fd.control('SPDataTable1');

dt.ready().then(function() {

function filterDT(){
	var nrtab = fd.field('Num_x0103_r_x0020_de_x0020_tabel').value;
    dt.filter = "<Eq><FieldRef Name='StaffId'/><Value Type='Text'>" + nrtab +"</Value></Eq>";
fd.field('Num_x0103_r_x0020_de_x0020_tabel').$on('change', filterDT);


Limit in list view is default- 30.
But i have in filtered result only one(maybe 3-5) row and it comes with arrows as i have more than 30 results to slide them.

Strange, but today there is no arrow buttons.. it looks as i want

Hello @ixxxl,

Maybe it was a glitch when reading the script from the server. But I'm glad it is working now.

If you see the same behavior, please let us know.

@mnikitina, Thank you!

1 Like