This is a migrated thread and some comments may be shown as answers.

[Solved] Inline editing not all columns

3 Answers 161 Views
Grid
This is a migrated thread and some comments may be shown as answers.
neebs
Top achievements
Rank 2
neebs asked on 08 Sep 2009, 05:45 AM
I have a grid setup for inline editing. When I click the edit button, all field displayed in the grid go to edit mode. I need to be able to disable editing on certain column. For example, I have a shipping form that has a Tracking Number column. When they click the edit button, all columns go int edit mode. I would like it if only the Tracking Number column allows input of a value. 

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 08 Sep 2009, 06:31 AM
Hi Neebs,

You may set the ReadOnly property of the column to true to prevent editing.

ASPX:
 
  <telerik:GridBoundColumn DataField="ProductName" ReadOnly="true" HeaderText="ProductName" SortExpression="ProductName" > 
                        </telerik:GridBoundColumn> 

Thanks
Princy
0
neebs
Top achievements
Rank 2
answered on 08 Sep 2009, 03:13 PM
I've tried that, however it renders the column invisible, even when not in edit mode. That isn't the desired behavior. I would like to see all columns and when edit is clicked, only one column becomes editable.
0
Princy
Top achievements
Rank 2
answered on 09 Sep 2009, 07:40 AM
Hi Neebs,

I am not quite sure about your scenario. When setting ReadOnly to True, the column editor does not appear in the edit form but you can see the column in normal mode (ReadOnly does not affect whether the column is visible in browser mode). Can you check whether you have set Display/Visible property of the column to false if the column is not showing in grid.

Thanks,
Princy.
Tags
Grid
Asked by
neebs
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
neebs
Top achievements
Rank 2
Share this question
or