Chapp
Chapp

Reputation: 287

jqGrid: Search Toolbar submit automatically

I have a jqGrid with a Toolbar search. How do I make the grid update when someone types in the seach toolbar instead of having to press enter?

Thanks

Upvotes: 1

Views: 2316

Answers (3)

Ro Siade
Ro Siade

Reputation: 399

I have autocomplete option on my filterToolbar and dont work when select an option (new value doesn't trigger) how would be the best workaround to this? Also, where should I put the code to trigger a key or something?

Regards

Upvotes: 0

Veysel Ozdemir
Veysel Ozdemir

Reputation: 685

I think it has to be in curly braces:

jQuery("#grid").jqGrid('filterToolbar', { searchOnEnter: false });

Upvotes: 1

WEFX
WEFX

Reputation: 8562

There is a searchOnEnter option that you need to set to False. It would look something like this.

$("#grid_id").jqGrid('filterToolbar',searchOnEnter:false);

See more info on searchOnEnter - here

Upvotes: 1

Related Questions