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

GridBoundColumn edit in column field

1 Answer 115 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Voss Grose
Top achievements
Rank 1
Voss Grose asked on 03 Mar 2009, 09:47 PM

I'm usign the RadGrid code below and everything works great, but I would like the edit columns to appear over the visible columns similar to to when I use a grid with AutoGenerated columns. Current it opens displays edit fields below the row itself.

Is this possible? Thanks.

<

telerik:RadGrid ID="RadGrid1" Width="97%" AllowSorting="True"

 

 

AllowAutomaticInserts="true" AllowAutomaticUpdates="true" AllowAutomaticDeletes="true"

 

 

PageSize="7" AllowPaging="True" GridLines="None" runat="server" Skin="Vista"

 

 

ShowFooter="True">

 

 

<PagerStyle Mode="NextPrevAndNumeric" />

 

 

<MasterTableView Width="100%" GridLines="None" CommandItemDisplay="TopAndBottom"

 

 

HorizontalAlign="NotSet" DataKeyNames="Id"

 

 

AutoGenerateColumns="false" InsertItemDisplay="Top" InsertItemPageIndexAction="ShowItemOnFirstPage">

 

 

<Columns>

 

 

<telerik:GridEditCommandColumn>

 

 

</telerik:GridEditCommandColumn>

 

 

<telerik:GridBoundColumn DataField="ID" UniqueName="Id" ReadOnly="true" Visible="false">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="SlotTime" UniqueName="SlotTime" HeaderText="Slot Time">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="TableTop" UniqueName="TableTop" HeaderText="Table Top">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="Slots" UniqueName="Slots" HeaderText="Slots">

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

 

<CommandItemSettings AddNewRecordText="Add new record" AddNewRecordImageUrl="Images/AddRecord.gif" RefreshText="Refresh" RefreshImageUrl="Images/Refresh.gif" />

 

 

</MasterTableView>

 

</

telerik:RadGrid>

 

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 04 Mar 2009, 04:23 AM
Hi,

I suppose you want to have in place editing rather than form editing. If thats the case you can set the EditMode property for the ownertable to InPlace as shown below:
aspx:
<telerik:RadGrid ID="RadGrid1" Width="97%" AllowSorting="True" AllowAutomaticInserts="true" AllowAutomaticUpdates="true" AllowAutomaticDeletes="true" PageSize="7" AllowPaging="True" GridLines="None" runat="server" Skin="Vista" ShowFooter="True"
   <MasterTableView Width="100%" EditMode="InPlace" GridLines="None" CommandItemDisplay="TopAndBottom" HorizontalAlign="NotSet" DataKeyNames="Id" AutoGenerateColumns="false" InsertItemDisplay="Top" InsertItemPageIndexAction="ShowItemOnFirstPage"
       .... 

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