This is a migrated thread and some comments may be shown as answers.
Listview editable column
1 Answer 22 Views
This is a migrated thread and some comments may be shown as answers.
MaiK
Top achievements
Rank 1
MaiK asked on 19 Apr 2018, 01:30 PM

Hi,

I have being searching in documentation but I have not found anything about it. I need to make a ListView with one texteditable column.

I have generated columns automatically but I need one of that columns editable by user when makes double click.

How can I achieve that?

 

Thank you and regards!

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 20 Apr 2018, 08:26 AM
Hello Mikel,

You can use the ItemEditing event. Here is an example:
private void RadListView1_ItemEditing(object sender, Telerik.WinControls.UI.ListViewItemEditingEventArgs e)
{
    if (e.ListViewElement.CurrentColumn.Name != "Name")
    {
        e.Cancel = true;
    }
}

In addition, please make sure that the AllowEdit property is set to true.

Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Asked by
MaiK
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or