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

[Solved] Set the width of the Pop-Up Edit Form

3 Answers 122 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Reid
Top achievements
Rank 2
Reid asked on 05 Mar 2012, 07:11 PM
Hello,

I have a user control that displays inside the Popup view that Telerik launches if the grid is in Popup mode.  One question I have is that I am not sure how to adjust the width of the outside window.  My markup showing up inside is wider so a scrollbar shows.  I want to increase the size of the parent window.

Thanks,
Reid

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 06 Mar 2012, 10:47 AM
Hi Reid,

There is no default width for the Grid popup edit form, so it should exand according to its content. Due to prolems in IE7, we have set a default width of 350px in our online demos via

.t-edit-form-container
{
        width: 350px;
}

If you are using the same approach, simply increase the width. Otherwise, please locate what controls the popup width currently and make the necessary changes.

Generally, the popup wrapper has a GridNamePopUp ID. You can use that to set width as well.

Regards,
Dimo
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
0
Reid
Top achievements
Rank 2
answered on 06 Mar 2012, 05:30 PM
Hi Dimo,

Ok that style change did it.  I would love to get reference to the JQuery that would set that at DocumentReady using the GridNamePopup, something like $(#GridNamePopUp).Width(550);  ??  Or Set Width?  And would it be placed in the DocumentReady?  I could use it generically in many views.

Thanks,
Reid
0
Dimo
Telerik team
answered on 07 Mar 2012, 08:02 AM
Hi Reid,

The popup edit form does not exists in DocumentReady yet, so you can't use the described approach.

Regards,
Dimo
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
Tags
Grid
Asked by
Reid
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Reid
Top achievements
Rank 2
Share this question
or