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

[Solved] Popup Edit Window Size

2 Answers 402 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rita15
Top achievements
Rank 1
Rita15 asked on 04 Mar 2010, 02:39 AM
Hi,
   I am using a web user control to edit the grid items. I have specified the Edit mode as "popUp". But I want to change the size of the popup window.

Any idea how to implement this ?
<telerik:RadGrid ID="RadGrid1"  runat="server"    
     GridLines="None" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"   
           Width="97%" OnNeedDataSource="RadGrid1_NeedDataSource"  
           OnDeleteCommand="RadGrid1_DeleteCommand"  
           OnInsertCommand="RadGrid1_InsertCommand"  
           OnUpdateCommand="RadGrid1_UpdateCommand"  
           OnPreRender="RadGrid1_PreRender" >   
           <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>   
               
           <MasterTableView DataKeyNames="IDR_ID" GridLines="None" Width="100%" CommandItemDisplay ="Top" EditMode="PopUp">   

Thanks,
Rita


2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 04 Mar 2010, 04:34 AM
Hello Rita,

Set the Height and Width properties under EditFormSettings-PopUpSettings to customize the size of Edit popup.

ASPX:
 
      . . . 
    <EditFormSettings EditFormType="WebUserControl" UserControlName="WebUserControl.ascx"
        <PopUpSettings Height="500" Width="500" /> 
    </EditFormSettings> 
</MasterTableView> 

-Shinu.
0
Rita15
Top achievements
Rank 1
answered on 04 Mar 2010, 05:48 AM
Thanks Shinu for the reply!.

The window size of the edit pop up did get changed but the display area (which shows the controls) did not.  I am interested to know how can I avoid the scroll bars inside the pop up edit window for the display area. Basically I am trying to avoid the scroll bars for display area inside the edit pop up.

Any idea?

Thanks,
Rita
Tags
Grid
Asked by
Rita15
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Rita15
Top achievements
Rank 1
Share this question
or