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

all cells in edit mode (working with 2011 version but not 2013 version)

1 Answer 26 Views
Grid
This is a migrated thread and some comments may be shown as answers.
aykut
Top achievements
Rank 1
aykut asked on 12 Jan 2014, 06:20 PM

how can I put this grid to edit mode for all cells ?             
 
          
<telerik:RadGrid ID="RadGrid1" runat="server" AllowMultiRowEdit="True" DataSourceID="SqlDataSource1"                   OnItemDataBound="RadGrid1_ItemDataBound"                 AllowAutomaticUpdates="True"   AutoGenerateColumns="False" CellSpacing="0" GridLines="None">
                <ClientSettings>
                     <Scrolling AllowScroll="True" />
                </ClientSettings>
                <MasterTableView EditMode="InPlace" CommandItemDisplay="Top" TableLayout="Fixed" AutoGenerateColumns="false">
                 <Columns>
                    <telerik:GridBoundColumn UniqueName="RxNo" HeaderText="RxNo" DataField="RxNo" >
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="Guidid" HeaderText="Guidid" DataField="Guidid">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="MusteriGuidid" HeaderText="MusteriGuidid" dataField="MusteriGuidid">
                    </telerik:GridBoundColumn>
                </Columns>
                </MasterTableView>
            </telerik:RadGrid>

            none of these methods not working for me .

    Protected Sub RadGrid1_ItemDataBound(sender As Object, e As GridItemEventArgs)
        If TypeOf (e.Item) Is GridDataItem Then
            Dim dataItem As GridDataItem = CType(e.Item, GridDataItem)
            dataItem.Edit = True
        End If
        RadGrid1.Rebind()
    End Sub

    Protected Sub RadGrid1_PreRender(sender As Object, e As EventArgs)
        '  RadGrid1.Rebind()
    End Sub

I want all cells in edit mode. there are some samples about "entering edit mode on click" but I dont want that.

any suggestions please ? my code was working in 2011 radgrid versions but not in 2013...

1 Answer, 1 is accepted

Sort by
0
aykut
Top achievements
Rank 1
answered on 12 Jan 2014, 06:51 PM
Hi friends,
I solved the problem. something changed since version 2011, of course but I dealed with it.

thank you.... (if possible you can delete this post)
Tags
Grid
Asked by
aykut
Top achievements
Rank 1
Answers by
aykut
Top achievements
Rank 1
Share this question
or