Inline editing not all columns

4 posts, 0 answers
  1. neebs
    neebs avatar
    106 posts
    Member since:
    Apr 2007

    Posted 08 Sep 2009 Link to this post

    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. 
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 08 Sep 2009 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. neebs
    neebs avatar
    106 posts
    Member since:
    Apr 2007

    Posted 08 Sep 2009 Link to this post

    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.
  5. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 09 Sep 2009 Link to this post

    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.
Back to Top