Modal windows to search element

I’m newbie, I use this helpful post
to create and to modify element in modal.
Now I have a problem in a modal windows to search element:
the modal grid open but when I search in a column to find element the view disappear…

Thank you in advance