Jump to content

Autoedit in DBgrid


Luis German

Recommended Posts

I found this question in the forum

"I need for all my grids, simply a property for editing a field when it receive focus. Without dataset.edit.

Edit start when user type anything, otherwise cursor remain in editor and dataset in dsbrowse. Without one o double click.

Or modify "ClickstoEdit" accepting also zero value.
It's very important when user must insert (or modify) several rows in sequence, exactly as standard dbgrid. 

Some operation must be very fast in input and too much click and double click are tedious when user must use keyboard a lot."

I have the same question.

Any idea

Thanks

Luis.

 

Using Complete Professional 1.90.0.1496

Edited by Luis German
Can not reply ... the option seems disabled.
Link to comment
Share on other sites

Hi Sherzod,

there are no solution in the forum. All are samples that don't works,  without a true solution.
Please, there is a workaround for editing cells (also with custom editors) in dbgrid  when user start editing (without press Enter in advance)?
All suggested client code don't reflect the  correct assignement and management in related data record.

Thanks  in advance!

  

Link to comment
Share on other sites

  • 4 weeks later...

It seems that little things  but IMPORTANT for porting apps from Desktop are ignored.
An immediate edit in grid is ESSENTIAL for user that manage a lot of data via keyboard.
Also important: DBLookup or Combox with value and description items!
'1','America','2','Europe, etc... so I see "America" or "Europe" but I save 1 or 2.
It's very useful! Must use an external component for this?

 

 

 

Link to comment
Share on other sites

  • 3 weeks later...
  • 7 months later...
51 minutes ago, Stemon63 said:

any news on "immediate editor" in dbgrids?
We see great improvements on Unigui releases, but this essential features is always missing :-)

Hello,

Can you try this approach?:

 

Link to comment
Share on other sites

Hi Sherzod,

it seems that works, but adding: 

"function edit(editor, context, eOpts)
{
  this.needToClear = false;
}"

Well, this is a good starting point.

I have changed ClicktoEdit=1 for test immediate edit also on enter. I need additional help on this:
I need that all cell content is selected when start edit entering in the cell  (when  I don't  press keys that clear all content, but only navigate (ClickEdit=1). I need that all text is selected; instead cursor in now at end of text.
Another help on this: I don't want that a mask show when I change record after editing, because I need to input data faster as possible without refresh anything.
But also if I have "dgAutorefresh=false" and "dgDontReloadAfterEdit=true", i see always the mask and grid is refreshed on change record (after editing).
Thanks a lot

 

Link to comment
Share on other sites

×
×
  • Create New...