Hello Sir/Madam,
Currently i am using telerik rad grid in my project and my requirement is when i click on cell in telerik rad grid only that cell should be editable, no other cell should be in editable mode. here is my screen shot, in this screen shot i want to edit Vendordescription column in rad grid. so please help me asap..
Thanx in advance...
and here is my code:
Currently i am using telerik rad grid in my project and my requirement is when i click on cell in telerik rad grid only that cell should be editable, no other cell should be in editable mode. here is my screen shot, in this screen shot i want to edit Vendordescription column in rad grid. so please help me asap..
Thanx in advance...
and here is my code:
<
telerik:RadGrid
ID
=
"Grid_PurchaseOrder_Lines"
runat
=
"server"
AutoGenerateColumns
=
"False"
AllowSorting
=
"True"
CellSpacing
=
"0"
GridLines
=
"None"
oneditcommand
=
"Grid_PurchaseOrder_Lines_EditCommand"
>
<
ClientSettings
>
<
Scrolling
AllowScroll
=
"True"
UseStaticHeaders
=
"True"
ScrollHeight
=
"375px"
/>
</
ClientSettings
>
<
MasterTableView
AutoGenerateColumns
=
"false"
DataKeyNames
=
"CompanyId, LineDesc,ID"
>
<
CommandItemSettings
ExportToPdfText
=
"Export to PDF"
/>
<
RowIndicatorColumn
FilterControlAltText
=
"Filter RowIndicator column"
Visible
=
"True"
>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
FilterControlAltText
=
"Filter ExpandColumn column"
Visible
=
"True"
>
</
ExpandCollapseColumn
>
<
Columns
>
<
telerik:GridTemplateColumn
FilterControlAltText
=
"Filter TemplateColumn1 column"
UniqueName
=
"Edit"
HeaderStyle-HorizontalAlign
=
"Center"
HeaderStyle-VerticalAlign
=
"Middle"
>
<
ItemTemplate
>
<
asp:Button
ID
=
"edit"
runat
=
"server"
CommandName
=
"Edit"
/>
<
asp:Button
ID
=
"Cancel"
runat
=
"server"
CommandName
=
"Cancel"
/>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
FilterControlAltText
=
"Filter TemplateColumn1 column"
HeaderText
=
"Company"
UniqueName
=
"TemplateColumn1"
ReadOnly
=
"true"
>
<
ItemTemplate
>
<%# Eval("CompanyName")%>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
FilterControlAltText
=
""
HeaderText
=
"Vendor Description"
UniqueName
=
"TemplateColumn1"
ReadOnly
=
"false"
>
<
HeaderStyle
Width
=
"70px"
/>
<
ItemTemplate
>
<%#Eval("vendordescription")%>
</
ItemTemplate
>
<
EditItemTemplate
>
<
asp:TextBox
ID
=
"TextBox1"
runat
=
"server"
Text='<%# Eval("vendordescription") %>'></
asp:TextBox
>
</
EditItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
FilterControlAltText
=
"Filter TemplateColumn1 column"
HeaderText
=
"Component"
UniqueName
=
"TemplateColumn1"
ReadOnly
=
"true"
>
<
HeaderStyle
Width
=
"80px"
/>
<
ItemTemplate
>
<%# Eval("LineDesc")%>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
FilterControlAltText
=
"Filter TemplateColumn1 column"
HeaderText
=
"Size"
UniqueName
=
"TemplateColumn1"
ReadOnly
=
"true"
>
<
ItemTemplate
>
<%# Eval("LineSize")%>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
FilterControlAltText
=
"Filter TemplateColumn1 column"
HeaderText
=
"Material/ Caliper"
UniqueName
=
"TemplateColumn1"
ReadOnly
=
"true"
>
<
ItemTemplate
>
<%# Eval("LineMatl")%>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
FilterControlAltText
=
"Filter TemplateColumn1 column"
HeaderText
=
"Deco"
UniqueName
=
"TemplateColumn1"
ReadOnly
=
"true"
>
<
HeaderStyle
Width
=
"70px"
/>
<
ItemTemplate
>
<%# Eval("LineDeco")%>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
FilterControlAltText
=
"Filter TemplateColumn1 column"
HeaderText
=
"Coating/ Finish"
UniqueName
=
"TemplateColumn1"
ReadOnly
=
"true"
>
<
ItemTemplate
>
<%# Eval("LineFinish")%>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
FilterControlAltText
=
"Filter TemplateColumn1 column"
HeaderText
=
"Quantity"
UniqueName
=
"TemplateColumn1"
ReadOnly
=
"true"
>
<
ItemTemplate
>
<%# String.Format("{0:n0}", Eval("LineQty"))%>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
FilterControlAltText
=
"Filter TemplateColumn1 column"
HeaderText
=
"Unit Price"
UniqueName
=
"TemplateColumn1"
ReadOnly
=
"true"
>
<
ItemTemplate
>
<%# String.Format("{0:C3}",Eval("UnitPrice"))%>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
FilterControlAltText
=
"Filter TemplateColumn1 column"
HeaderText
=
"Line Total"
UniqueName
=
"TemplateColumn1"
ReadOnly
=
"true"
>
<
ItemTemplate
>
<%# String.Format("{0:C3}",Eval("LineTotal"))%>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
FilterControlAltText
=
"Filter TemplateColumn1 column"
UniqueName
=
"TemplateColumn1"
HeaderText
=
"Sale Quantity"
ReadOnly
=
"true"
>
<
ItemTemplate
>
<%# String.Format("{0:n0}", Eval("SaleQty"))%>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
FilterControlAltText
=
"Filter TemplateColumn6 column"
UniqueName
=
"TemplateColumn6"
HeaderText
=
"Sale Price"
ReadOnly
=
"true"
>
<
ItemTemplate
>
<%# String.Format("{0:C}",Eval("SellPrice")) %>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
FilterControlAltText
=
"Filter TemplateColumn6 column"
UniqueName
=
"TemplateColumn6"
HeaderText
=
"Sale Total"
ReadOnly
=
"true"
>
<
ItemTemplate
>
<%# String.Format("{0:C}", Eval("SaleTotal")) %>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
</
Columns
>
<
EditFormSettings
>
<
EditColumn
FilterControlAltText
=
"Filter EditCommandColumn column"
>
</
EditColumn
>
</
EditFormSettings
>
</
MasterTableView
>
<
FilterMenu
EnableImageSprites
=
"False"
>
</
FilterMenu
>
</
telerik:RadGrid
>