Correctly calling setGridWidth on a jqGrid inside a jQueryUI Dialog
- by Dan
I have a jQueryUI dialog (#locDialog) which has a jqGrid ($grid) inside it. When the Dialog opens (initially, but it gets called whenever it opens), I want the $grid to resize to the size of the $locDialog. When I do this initially, I get scrollbars inside the grid (not inside the dialog).
If I debug the code, I see the width of the $grid is…