In my grid I have some columns that I need to make read-only in the EditingForm. The problem is that setting ReadOnly="true" makes these columns disappear from the editing form.
A workaround I am thinking about is to replace GridBoundColumn and GridDropDownColumn with GridTemplateColumns, put a textbox and a dropdown list inside and set for them Enabled=false. Is there an easier way?
<telerik:GridBoundColumn DataField="Description" HeaderText="Delivery Method" SortExpression="Description" ReadOnly="true" /> |
<telerik:GridDropDownColumn DataField="DeliveryCategory" HeaderText="Delivery Type" UniqueName="DeliveryCategory" |
DataSourceID="sdsDeliveryCategories" ListTextField="Name" ListValueField="Value" |
FilterListOptions="AllowAllFilters" DropDownControlType="DropDownList" |
EnableEmptyListItem="false" ReadOnly="true" |
/> |
A workaround I am thinking about is to replace GridBoundColumn and GridDropDownColumn with GridTemplateColumns, put a textbox and a dropdown list inside and set for them Enabled=false. Is there an easier way?