I tried to have Inline editing for radgrid, but when we edit Textboxes are not showing.I need datasource from codebehind. Any sample code is needed.
<telerik:RadGrid ID="RGDCountry" runat="server" ShowStatusBar="true" EnableLinqExpressions="false" RenderMode="Lightweight" AllowPaging="false" AutoGenerateColumns="false" AllowFilteringByColumn="true" MasterTableView-AllowSorting="true"
AllowAutomaticDeletes="false" AllowAutomaticInserts="True"
CellPadding="1" OnNeedDataSource="RGDCountry_NeedDataSource"
PageSize="20" >
<GroupingSettings CaseSensitive="false" />
<ExportSettings Excel-Format="ExcelML"
HideStructureColumns="true"
ExportOnlyData="true"
IgnorePaging="true"
OpenInNewWindow="true">
</ExportSettings>
<MasterTableView ItemStyle-HorizontalAlign="Left" AllowFilteringByColumn="true" HeaderStyle-HorizontalAlign="Left" DataKeyNames="Id" CommandItemDisplay="Top" EditMode="InPlace" >
<CommandItemSettings ShowExportToExcelButton="false" ShowAddNewRecordButton="false" ShowRefreshButton="false" />
<Columns>
<telerik:GridTemplateColumn HeaderText="Sl.No" UniqueName="SlNo" HeaderStyle-Width="20px" FilterControlWidth="20px">
<ItemTemplate>
<asp:Label ID="lblRowNumber" Text='<%#Container.ItemIndex+1%>' runat="server" />
</ItemTemplate>
</telerik:GridTemplateColumn>
<%--<telerik:GridBoundColumn UniqueName="Id" DataField="Id" HeaderText="Id" ReadOnly="true" DataType="System.Int64" HeaderStyle-Width="20px" FilterControlWidth="20px" HeaderTooltip="Auto Generate Id From System"></telerik:GridBoundColumn>--%>
<telerik:GridTemplateColumn UniqueName="CountryName" DataField="CountryName" ReadOnly="true" HeaderText="Country Name" DataType="System.String" HeaderStyle-Width="50px" FilterControlWidth="50px">
<ItemTemplate>
<asp:Label ID="lblCountry" runat="server" CssClass="control-label" Text='<%#Eval("CountryName") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadTextBox ID="TBEditCountry" CssClass="form-control" MaxLength="200" Text='<%#Eval("CountryName") %>' runat="server"></telerik:RadTextBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn UniqueName="Nationality" DataField="Nationality" ReadOnly="true" HeaderText="Nationality" DataType="System.String" HeaderStyle-Width="50px" FilterControlWidth="50px">
<ItemTemplate>
<asp:Label ID="lblNationality" runat="server" CssClass="control-label" Text='<%#Eval("Nationality") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadTextBox ID="TBEditNationality" CssClass="form-control" MaxLength="200" Text='<%#Eval("Nationality") %>' runat="server"></telerik:RadTextBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn UniqueName="Abbrv" DataField="Abbrv" ReadOnly="true" HeaderText="Abbrv" DataType="System.String" HeaderStyle-Width="30px" FilterControlWidth="30px">
<ItemTemplate>
<asp:Label ID="lblAbbrv" runat="server" CssClass="control-label" Text='<%#Eval("Abbrv") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadTextBox ID="TBEditAbbrv" CssClass="form-control" MaxLength="50" Text='<%#Eval("Abbrv") %>' runat="server"></telerik:RadTextBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn UniqueName="Status" ReadOnly="true" HeaderText="Status" DataType="System.String" HeaderStyle-Width="40px" FilterControlWidth="40px">
<ItemTemplate>
<asp:Label ID="lblStatus" runat="server" CssClass="control-label" Text='<%#Eval("Active") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridEditCommandColumn UniqueName="EditCommandColumn" EditText="Edit" />
</Columns>
</MasterTableView>
</telerik:RadGrid>