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

[Solved] popup forms from grid edit

1 Answer 86 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Grav
Top achievements
Rank 1
Grav asked on 11 Jun 2009, 11:10 PM
Is it possible to do a custom layout on the popup form (when a user edits from a grid)
the demo example shows fields in straight columns.  I'd like to be able to move the fields around on the pop form. for example, have three fields side by side.  Maybe draw boxes around a group of fields etc.
thanks.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 12 Jun 2009, 04:15 AM
Hi,

You can use a FormTemplate for the grid with the popup EditMode wherein you can customize the editform and place controls according to your requirement:
aspx:
         <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" >  
            <MasterTableView CommandItemDisplay="TopAndBottom" DataSourceID="SqlDataSource1" EditMode="PopUp">  
                <Columns>  
                    <telerik:GridEditCommandColumn>  
                    </telerik:GridEditCommandColumn>                     
                    <telerik:GridBoundColumn UniqueName="FirstName" HeaderText="FirstName" DataField="FirstName">  
                    </telerik:GridBoundColumn>                      
                      
                </Columns>  
                <EditFormSettings EditFormType="Template">  
                    <FormTemplate>                             
                           Place Custom Controls here to customize the EditForm 
                    </FormTemplate>  
                </EditFormSettings>  
            </MasterTableView>             
        </telerik:RadGrid>  
You can also refer to the second example in the following online demo:
PopUp Edit Form

Thanks
Princy.
Tags
Grid
Asked by
Grav
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or