Cascading / Dependent List / Auto complete

Dear All,

How can i create a cascading(dependent) list.
use case:
i want to add item group in sales order and wants item will be show in the list(auto complete) related to selected group.

Thanks and best regards,

You have to override the query / add filters here

thanks for the reply.