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

RadGrid: Layout the insert and edit fields

1 Answer 41 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Windhoek2010
Top achievements
Rank 1
Windhoek2010 asked on 31 Jul 2014, 07:18 PM
When I Edit one of my RadGrid rows, or 'Add New Record', RadGrid displays all the fields in the table stacked on top of each other by default. How can I change the layout for those input controls -- say if I want to display in two columns of input controls?

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 1
answered on 01 Aug 2014, 05:30 AM
Hi,

I guess you want to display the controls in edit/insert form as more than one column, you can use the EditFormColumnIndex property of the Columns by setting the ColumnNumber to the number of columns needed.

ASPX:
<telerik:RadGrid ID="rgrdSample" runat="server". .>
    <MasterTableView>
    <EditFormSettings ColumnNumber="4"></EditFormSettings>
        <Columns>
           <telerik:GridBoundColumn DataField="OrderID" EditFormColumnIndex="1". ./>
           <telerik:GridBoundColumn DataField="ShipCity" EditFormColumnIndex="2" . ./>
           <telerik:GridBoundColumn DataField="EmployeeID" EditFormColumnIndex="1". ./>
           <telerik:GridBoundColumn DataField="ShipName" EditFormColumnIndex="3". . />
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

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