Jump to content


Photo

Click to select only. Type to overwrite. F2 to edit text

click edit

  • Please log in to reply
2 replies to this topic

#1 myicq

myicq
  • Members
  • 16 posts

Posted 09 June 2018 - 10:20 AM

First post. Thank you for this great component!

 

I have finally made V5 nextgrid  display data, that is good. Not that difficult really.

 

But I have a slight issue with the edit function on ediable cells.

 

What I would like to achieve is:

 

  • Click on an editable cell highlights the cell, but does NOT enter edit. User can move around with arrow key or click somewhere else
  • Typing something immediately replaces cell content. Example: text before was "ABC", I type "DEF". Now content is DEF.
  • Pressing a hotkey, like F2, will edit the text, example to insert text. Alternatively a second click

 

Can this be done ? It mostly works, but the "avoid editing on click", I just can't avoid.  I tried a lot of events like "OnClick" and set "gridview.endediting", but that did not do anything.

 

Thanks for the help

 



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 09 June 2018 - 10:43 AM

Hi,

1. Maybe you can use goSecondClickEditing feature in Options property?

2. In Options property of Column there is a coEditorAutoSelect flag which maybe can help.

3. There is a automatic feature in v6, but in v5 you can try to call EditCell on KeyDown event of Grid. You only need to give cell which you want to start editing.

Hope it helps.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 myicq

myicq
  • Members
  • 16 posts

Posted 10 June 2018 - 08:06 AM

@Boki

Thanks for the response. Pointing out that option made me check the version used. I had version 2.x of Gridview :(

 

So time for upgrade I guess. not sure why I had this ancient version.

 

See post in V6 forum on installation







1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users