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

Put some cells in edit mode

1 Answer 23 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
Veteran
David asked on 22 Jul 2015, 08:05 PM

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

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 23 Jul 2015, 03:27 PM
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
Tags
Grid
Asked by
David
Top achievements
Rank 1
Veteran
Answers by
Pavlina
Telerik team
Share this question
or