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

internal width of a rad window

1 Answer 55 Views
Window
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 28 Jan 2011, 10:34 AM
I create a rad window with a url loaded in it.  

In this window, there is a rad grid with a good width, it looks like 100% the width of the rad window.

When I press the [+] button within the grid to add a record to this grid, it shows the MasterTableViewEditForm template of the grid and now there is a horizontal scroll bar on the rad window.  Inside the template, I have a div and a table like this:

                        <FormTemplate>
                            <div ID="RadGridEditForm" style="padding:5px 5px 5px 5px;">
                                <table cellpadding="2" width="100%">
                                    <tr>
                                        <td width="80%">
                                         .....

Notice how the table is set to 100%.  This causes the grid and hence the radwindow to be much wider than expected and I get a horizontal scroll bar on the radwindow.

If I guess at the width of the table, I can find a value that does not create a scroll bar, but should I have to do this?  How can I just set the width to 100% and have it stretch to 100% of the rad window and not something larger?  If I remove the width specifier from the table, the table is narrower than the window (only about 2/3rds the way across).  I don't see anything else pushing the window that wide, so I don't know why making this table 100% is making the rad window internally wider than it is displaying.

Michael Grant

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 02 Feb 2011, 03:44 PM
Hello Michael,

The RadWindow itself does not have or control the scrollbars - they are created and handled by the IFRAME in which the content page is shown. To be able to tell you, however, what is the exact reason for the problem in your case and to provide you with the most appropriate solution, we need more information about your exact setup in the content page and RadWindow's configuration.
Please send us a sample project that isolates the problem and we will check it right away.

Kind regards,
Georgi Tunev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Window
Asked by
Michael
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or