Hi all, i am using an input to search for a name from a table and i am using the autocomplete widget to display a list with the coincidences founded, the data from the tables comes from a list not an aggregate, the problem that i have is with the backspace key, when i click that key it does not enter to my on notify server action so i can not refresh my table when they delete a key from the input. 



                                                         This is the original table.

                                                           This is the filtered table.


Here i delete input using the backspace key and the table is not refreshing because the server action is not being triggered.


Is it possible to trigger a server action on each backspace key stroke??? 


Thanks in advance

Rey Merino


Hi Reynaldo,

Looks like that component treats backspace a bit different

SyntaxEditor Code Snippet

.bind("keyup.autocomplete", function(event) {
   if(event.keyCode == $.ui.keyCode.BACKSPACE || event.keyCode == $.ui.keyCode.DELETE) {
       inputValue.val(input.val());
       event.stopPropagation();
   }

You would need to change this a bit to also force forceOpenAutocomplete(event);

and check if it would work for you

Regards,

Marcelo


Marcelo Ferreira wrote:

Hi Reynaldo,

Looks like that component treats backspace a bit different

SyntaxEditor Code Snippet

.bind("keyup.autocomplete", function(event) {
   if(event.keyCode == $.ui.keyCode.BACKSPACE || event.keyCode == $.ui.keyCode.DELETE) {
       inputValue.val(input.val());
       event.stopPropagation();
   }

You would need to change this a bit to also force forceOpenAutocomplete(event);

and check if it would work for you

Regards,

Marcelo


Thanks for your answer Marcelo, i took parts of your code and its working.


Regards


Hi Reynaldo,

Can you share with us the changes u did and mark it as solution so people with same problem know what you did.

Regards,

Marcelo