Dear all,
On my form, I'va a navigation link A, when click navigation link A -> a subgrid is displayed.
Now When open a form, I want to set focus on this subgrid.
I've use: Xrm.Page.ui.navigation.items.get("vavigateA").setFocus(); and it does not work, the form is always set focus on the first field on form.
So i've try: setTimeout( function() {Xrm.Page.ui.navigation.items.get("vavigateA").setFocus();}, 1000); and it work.
But somtime when my form loaded in a long time, the timeout is not enought to set focus on the subgrid.
So is there any way to replace the timeout by something else (for instance a jQuery callback)?
Thanks!
If my question/answer can help you, please give me a points :) ----You may be disappointed if you fail, but you are doomed if you don't try---