Hi all,
Im new to igGrid. I was wondering if someone could help me?
Im using igGrid and it has the filter at the top which says 'Contains...'
I was wondering if there is any way to set the text focus to this filter?
so as soon as the page loads, the user can immediately type to filter results in the grid.
I hope this makes sense.
Hi Arshad,
You can add the id of the grid’s container to the selector that locates the editor. Then you will be sure that you focus the same grid always. I updated the sample to focus the second grid on the page. You can check it out.
Kind regards, Petko Zhekov Senior Software Engineer
Thank you @Petko.
The sample you provided was helpful.
Question, what if there are more than one igGrid in the same page...
how would you focus the filter on the table you want?
Thank you for posting in our forums!
Yes, it makes perfect sense. The Filtering feature uses igDialog widgets for its editors. You can use their setFocus method to achieve this behavior. The only thing you have to do is to locate the igDialog’s element. I created a sample page that demonstrates this solution.
I hope this helps!