May 01, 2013, 4:35 PM
How to edit a GridPanel row on click using ComponentColumn editor?
Currently I am using the following in my GridPanel to edit a row on mouse-over:
Is there a way to change this to have my rows editable on click instead of on mouseover?
.ColumnModel(columnModel =>
{
columnModel.Add(Html.X().ComponentColumn().Text("ID").DataIndex("ID")
.Editor(true).OverOnly(true).Component(Html.X().TextField().AllowBlank(false)));
...
}
The .OverOnly(true) is a nice and simple way to make the necessary columns editable on mouseover. I like all of the features of using a ComponentColumn and Editor and would rather keep using these, and not have to change other significant parts of my code.Is there a way to change this to have my rows editable on click instead of on mouseover?