Jump to content
uniGUI Discussion Forums
Luis German

Autoedit in DBgrid

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.

Share this post


Link to post
Share on other sites

Hello Luis,

Can you please specify first which edition and build of UniGUI are you using?

Share this post


Link to post
Share on other sites
55 minutes ago, Luis German said:

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

UniDBGrid.ClicksToEdit = 1 ?

Share this post


Link to post
Share on other sites
10 hours ago, Luis German said:

That Edit operation starts when user type anything Without one or more clicks.

There were solutions on the forum, they will need to be checked for working on the latest versions.

Share this post


Link to post
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!

  

Share this post


Link to post
Share on other sites
19 minutes ago, Stemon63 said:

Please, there is a workaround for editing cells (also with custom editors) in dbgrid  when user start editing (without press Enter in advance)?

Hi,

We will try to investigate this.

Share this post


Link to post
Share on other sites

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?

 

 

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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?:

 

Share this post


Link to post
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

 

Share this post


Link to post
Share on other sites

×