Jump to content


Photo

Issue with highlighted text when scrolling the grid.


  • Please log in to reply
3 replies to this topic

#1 FourWhey

FourWhey
  • Members
  • 165 posts

Posted 15 September 2016 - 07:39 PM

When an editable column cell is clicked, and the grid is immediately scrolled, the highlighted (edit mode text) overlays the grid as it's scrolled and stays hovering above the grid. If you type it continues to allow you to edit, which is okay I guess, but it shouldn't be static on the screen. It should move with the grid when scrolled.

 

Column.Editing / Inserting

Is this a way to toggle edit and insert for columns?

 

Column.Editing doesn't seem to be respected. A cell value can be edited (although it may not save it - I didn't test that) even when it's false. In my opinion if editing is False the cell contents should be read-only.

Attached Files



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 15 September 2016 - 08:12 PM

I will inspect this, and fix it today.
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 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 15 September 2016 - 08:22 PM

I have added fix,

 

If you want it immediately, you can add next message:

 

protected 
   procedure WMHScroll(var Message: TWMHScroll); message WM_HSCROLL;
.
.
.
procedure TNxCustomGrid6.WMHScroll(var Message: TWMHScroll);
begin
  inherited;
  if Assigned(ActiveView)
    and ActiveView.Enabled then
  begin
    // TODO: Border should be refreshed (erased)
    UpdateInplaceEditor;
  end;
end;

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.

#4 FourWhey

FourWhey
  • Members
  • 165 posts

Posted 15 September 2016 - 10:10 PM

That fixed the problem. Thank you.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users