Hi,
i am having grid in which i am doing crud operations but for one column i want combobox rather than textbox(EntityType) in both the mode.
My code is
<%@ Page Title="" Language="C#" MasterPageFile="~/MPLayout.master" AutoEventWireup="true"
CodeFile="EntityDetailsGrid.aspx.cs" Inherits="EntityDetailsGrid" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<%--Style Applied For The Textbox Inside Automatic Insert And Edit Mode--%>
<style type="text/css">
.riEditFormTextBox
{
margin-top: 4px;
width: 340px;
height:21px;
}
</style>
<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="true" PageSize="15" AllowSorting="true"
ShowGroupPanel="true" OnPreRender="RadGrid1_PreRender" HeaderStyle-Font-Bold="true"
Skin="Black" onitemcreated="RadGrid1_ItemCreated"
onneeddatasource="RadGrid1_NeedDataSource1"
oninsertcommand="RadGrid1_InsertCommand"
onitemcommand="RadGrid1_ItemCommand"
ondeletecommand="RadGrid1_DeleteCommand"
onupdatecommand="RadGrid1_UpdateCommand" >
<PagerStyle AlwaysVisible="true" Font-Bold="true" Mode="NextPrevNumericAndAdvanced" />
<ClientSettings AllowDragToGroup="true" AllowColumnsReorder="true" Resizing-AllowResizeToFit="true">
<Selecting AllowRowSelect="True" UseClientSelectColumnOnly="True"></Selecting>
</ClientSettings>
<ExportSettings ExportOnlyData="true" OpenInNewWindow="true" IgnorePaging="true"
FileName="Entity Details">
<Pdf AllowAdd="true" AllowCopy="true" AllowModify="true" AllowPrinting="true" BorderColor="Black"
BorderStyle="Medium" BorderType="AllBorders" PageBottomMargin="20px" PageFooter-LeftCell-TextAlign="Center"
PageFooterMargin="20px" PageHeader-LeftCell-TextAlign="Center" PageHeaderMargin="20px"
PageLeftMargin="35px" PageRightMargin="35px" PageTitle="List Of Entities and Details"
PageTopMargin="35px" PaperSize="A4" UserPassword="ss">
</Pdf>
</ExportSettings>
<MasterTableView CommandItemDisplay="Top" CommandItemSettings-ShowAddNewRecordButton="true" EditMode="EditForms" DataKeyNames="EntityId"
CommandItemSettings-ShowRefreshButton="false">
<CommandItemSettings ShowExportToCsvButton="true" ShowExportToExcelButton="true"
ShowExportToPdfButton="true" ShowExportToWordButton="true" />
<EditFormSettings FormMainTableStyle-HorizontalAlign="Center" EditColumn-ButtonType="PushButton"
FormTableStyle-Width="100%" FormTableButtonRowStyle-HorizontalAlign="Center"
FormTableStyle-CellPadding="3" FormMainTableStyle-Font-Bold="true" FormMainTableStyle-ForeColor="Purple"
FormStyle-CssClass="" FormTableStyle-CellSpacing="5" InsertCaption="Add New Record"
FormCaptionStyle-Font-Bold="true" FormCaptionStyle-Font-Underline="true" FormCaptionStyle-ForeColor="Black"
FormCaptionStyle-Font-Size="Large" FormCaptionStyle-HorizontalAlign="Center"
FormCaptionStyle-Width="100%">
<FormStyle Width="100%" BackColor="LightCyan"></FormStyle>
</EditFormSettings>
<Columns>
<telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditColumn"></telerik:GridEditCommandColumn>
<telerik:GridButtonColumn CommandName="Delete" ButtonType="ImageButton" UniqueName="DeleteColumn" ConfirmText="Are you sure to Delete this Record?" ConfirmDialogType="RadWindow" ConfirmTitle="<b>Manifest-BI :: Delete</b>"></telerik:GridButtonColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
</asp:Content>
and
How to Access the value from combobox on update and insert button click.
Thanks