PDA

View Full Version : mask faulty after tab change



mhat
16 Oct 2007, 9:18 AM
I have a dialog with two tabs. In the first tab there is a Grid and the second a Form. If I place a mask over the first grid, switch to the second tab, then switch back to the first tab the mask remains but the "message" vanishes. I've tried explicitly unmasking/remasking via tabchange and beforetabchange but that hasn't helped. Thoughts?

mhat
16 Oct 2007, 9:32 AM
I've worked around the issue. There was a on('valid') callback that seems to have been called before either of the tab-change events. The callback in question was where the mask() call was. Looks like a race where the mask was being drawn before the tab was visible. As an aside under IE7 I have to explicitly call grid.getView().refresh when switching tabs with a grid otherwise the grid content vanishes until the user mouses over.

My work-around, much as I do with the from in the second tab, is to disconnect the validation callback on tab-change. This seems to sufficiently jiggle the handle and now everything shows up as expected.