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

[Solved] FormTemplate Position

3 Answers 125 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Emeka Egudu
Top achievements
Rank 1
Emeka Egudu asked on 16 Jan 2010, 12:05 AM
I am using a <FormTemplate> to insert rows into a grid. The form by default opens above the existing rows, and directly below the grid column headers. Is it possible to have the edit form open below the last row in the Grid, this way while the edit form is visible, existing rows would appear directly below the grid column headers.

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 18 Jan 2010, 10:33 AM
Hello Emeka,

You can set the InsertItemDisplay to 'Bottom' to open the insert form after the last row:
aspx:
<telerik:RadGrid ID="RadGrid1" DataSourceID="SqlDataSource1" runat="server"
    <MasterTableView InsertItemDisplay="Bottom" CommandItemDisplay="Top" DataSourceID="SqlDataSource1"

Thanks
Princy.
0
Emeka Egudu
Top achievements
Rank 1
answered on 18 Jan 2010, 04:02 PM

Princy,

I tried adding that property to the MasterTableView but no change

 

 

<MasterTableView InsertItemDisplay="Bottom" CommandItemDisplay="Top" EditFormSettings-EditColumn-InsertText="Add"

 

 

 

AutoGenerateColumns="False" HorizontalAlign="NotSet" EnableNoRecordsTemplate="true"

 

 

 

ShowHeadersWhenNoRecords="true" DataKeyNames="ROWID">

Also, i'm using VS2008 ide,  InsertItemDisplay is not listed a property of MasterTable, atleast I don't see it.

 

0
Princy
Top achievements
Rank 2
answered on 19 Jan 2010, 02:10 PM
Hi,

The InsertITemDisplay property of the MasterTableView is available since the Q1 2008 (version 2008.1.415) version of RadGrid. It seems you are using an older version of RadGrid, since you cant find the property. Try upgrading to the latest version to achieve the required. Here's an article related to upgrading:
Updating RadControls for ASP.NET to another version or license

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