Hello,
please help me!
I need set the TextBox no-editable when the row is in EditMode but editable when iadd a new row
here it is a part of my code:
<
telerik:GridTemplateColumn
HeaderStyle-Width
=
"150px"
UniqueName
=
"txtID"
HeaderText
=
"ID del Servicio"
>
<
ItemTemplate
>
<%# Eval("IdServicio") %>
</
ItemTemplate
>
<
EditItemTemplate
>
<
asp:TextBox
runat
=
"server"
ID
=
"textID"
Text='<%# Eval("IdServicio") %>' width="145px" ReadOnly="true"/>
<
asp:RequiredFieldValidator
runat
=
"server"
ControlToValidate
=
"textID"
/>
<
asp:CompareValidator
runat
=
"server"
ControlToValidate
=
"textID"
Operator
=
"DataTypeCheck"
Type
=
"Integer"
/>
</
EditItemTemplate
>
</
telerik:GridTemplateColumn
>