Put some cells in edit mode

2 posts, 0 answers
  1. David
    David avatar
    263 posts
    Member since:
    Mar 2014

    Posted 22 Jul 2015 Link to this post

    I am able to put grid into edit mode by using one of the following code snippets. However, i need to edit only some of columns and leave others non editable.

    How can i achieve that?

     Thank you

     

    For Each item As GridItem In grdContingentDevelopment.MasterTableView.Items
                If item.GetType().ToString() = "Telerik.Web.UI.GridDataItem" Then
                    Dim editableItem As GridEditableItem = DirectCast(item, GridDataItem)
                    editableItem.Edit = True
                End If
     Next

     

      For i As Integer = 0 To grdContingentDevelopment.PageSize - 1
                    grdContingentDevelopment.EditIndexes.Add(i)
      Next

  2. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 23 Jul 2015 Link to this post

    Hello,

    I believe that batch editing functionality is what you are looking for:
    http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultcs.aspx
    http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/data-editing/edit-mode/batch-editing

    Check it out and see if it works for you.

    Regards,
    Pavlina
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top