PDA

View Full Version : editor grid no click to edit



teddyjas
24 Sep 2008, 1:53 AM
Hi guys,

how to by default showing cells that are editable as editable?

i mean currently I have to double click the cell and the editor will show...
now... how do I directly show without double click?

thanks
tj

santosh.rajan
24 Sep 2008, 1:56 AM
get the cells editor and call startediting()

Condor
24 Sep 2008, 1:59 AM
1. You can change double-click to single click by adding clicksToEdit:1.
2. You can change the CSS so all cells look like an editor is active, e.g.

.x-grid3-row td.x-grid3-td-<id-of-column> {
background-color: white;
padding: 0;
}
.x-grid3-row td.x-grid3-td-<id-of-column> .x-grid3-cell-inner {
border: 1px solid #a9bfd3;
padding: 2px 3px 2px 5px;
}