Dojo gridx filter: multiple calls made to server onkeypress while using gridx filter

StackOverflow https://stackoverflow.com/questions/19111709

  •  29-06-2022
  •  | 
  •  

سؤال

A call goes to server every time i type a key in 'Value' field for filtering. The call should go only when I type on filter button.
Note: The grid store is a JSON rest store.

Is there any solution to prevent those api call on every keypress? It should only call the api when i press Filter button

هل كانت مفيدة؟

المحلول 3

With latest versions of dojo and gridx: Setting the autoComplete property to false for the columns, stopped this behavior.

Use property: autoComplete: false for the columns

نصائح أخرى

When you create the grid, try adding the attribute quickFilterAutoApply: false, this will forbid the query to the store from auto trigger by key event

Using ItemFileReadStore instead of JSONRest prevents calls to the server even if autocompleate is on

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top