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

[Solved] How to fit a Grid in a parent pane programmatically

1 Answer 148 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Willem
Top achievements
Rank 1
Willem asked on 14 Sep 2009, 08:59 AM
In our application we work with a panelbar on the left, splitter in the mid and a grid on the right side of the application workspace. The grid only appears when a panelbar item is clicked.Thus the grid is invisible and becomes visible as soon as a panelbar item is clicked. Is this a feasible scenario or simply not possible? Our current problem is that the grid jumps all directions as soon as it appears but do not fit well for 100% in the parent pane.

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 16 Sep 2009, 12:05 PM
Hi Willem,

If you are trying to set 100% width and height of your RadGrid, note that at least one parent element for RadGrid should have fixed width and height in pixels. Alternatively, all your HTML DOM elements up to the root HTML element should have 100% height. Check this out.

Other than that, you should be OK setting RadGrid to stretch to 100% of its parent. Let me know if you need further help. Consider providing some more details on your layout, some markup and any CSS you are using.

Kind regards,
Veli
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Willem
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or