This is a migrated thread and some comments may be shown as answers.

[Solved] Resize grid with browser when inside a PageView

1 Answer 133 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Polaris431
Top achievements
Rank 1
Polaris431 asked on 13 May 2009, 12:19 PM
I need to resize the grid when the browser is resized. There are a number of examples posted in this forum on how to do this. However, most of the examples show how it is done if the grid is the only thing on the page. I am using a RadMultiPage and the grid
appears on the second pageview which is accessible from the second tab on a tabstrip. The grid also uses static headers and paging. When I apply the solutions listed in this forum, the resizing will not work correctly. The paging status area does not initially show. If I resize the browser, it will show. I tried using the repaint() method but that did not help. This problem only shows up when Ajax is enabled.

Thank you
Johann

1 Answer, 1 is accepted

Sort by
0
Polaris431
Top achievements
Rank 1
answered on 13 May 2009, 12:54 PM
Solved the problem by adding a call to the browser's resize event when the grid gets created using the OnGridCreated event. The grid's repaint() method however is still required in the resize event after resizing the grid.
Tags
Grid
Asked by
Polaris431
Top achievements
Rank 1
Answers by
Polaris431
Top achievements
Rank 1
Share this question
or