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

Gridview Pop-up edit form and scrollbars

3 Answers 310 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 13 Jun 2011, 10:30 PM
I have an issue where the contents and scrollbars overflow the pop-up window regardless of its height. It only overflows a couple of px, but its enough to be annoying. I attached a small image of what the window looks like.

Is there a way to fix this?

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 14 Jun 2011, 05:00 AM
Hello Joe,

Try setting the ScrollHeight as shown below. Hope this helps.

aspx:
<ClientSettings>
  <Scrolling AllowScroll="true" ScrollHeight="80px"    UseStaticHeaders="true"   />
</ClientSettings>

Thanks,
Princy.
0
Joe
Top achievements
Rank 1
answered on 14 Jun 2011, 09:07 PM
Yeah that option doesnt existing within the EditFormSettings or PopUpSettings.
<EditFormSettings CaptionFormatString="Editing Record: {0}" CaptionDataField="EXCHANGE_NAME" EditColumn-ButtonType="ImageButton" 
    InsertCaption="Add New Exchange Point:"
    PopUpSettings-CloseButtonToolTip="Close this window"
    PopUpSettings-Modal="True" PopUpSettings-ScrollBars="Vertical" PopUpSettings-Height="300px" PopUpSettings-Width="350">
    <EditColumn FilterControlAltText="Filter EditCommandColumn column" InsertText="Add" EditFormColumnIndex="2">
    </EditColumn>
    <FormStyle BorderStyle="Solid" BorderWidth="1px" />
    <PopUpSettings ShowCaptionInEditForm="False" />
</EditFormSettings>

0
Tsvetina
Telerik team
answered on 20 Jun 2011, 09:21 AM
Hi Joe,

Try the following CSS in your page, it fixes the issue on my side (it will not remove the vertical scroll of the form itself, it is applied to its parent element).
<style type="text/css">
.RadGrid_SkinName .rgEditForm 
{
    overflow:hidden;
}
</style>

(replace SkinName with the name of the skin used by the grid)

Greetings,
Tsvetina
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
Grid
Asked by
Joe
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Joe
Top achievements
Rank 1
Tsvetina
Telerik team
Share this question
or