Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

change font of edited cells

 Post Reply Post Reply
Author
Lasquibar de la Torre Venancio View Drop Down
New Member
New Member
Avatar

Joined: 28 Oct 2018
Posts: 20
Post Options Post Options   Quote Lasquibar de la Torre Venancio Quote  Post ReplyReply Direct Link To This Post Topic: change font of edited cells
    Posted: 25 May 2019 at 7:19pm
Hi,

I need to mark the cells changed by a user, by changing font style to bold, or the font color to red, or the cell background color to an specific color. How can I do it? The AsyncEditDone method (I use this to detect that a cell value changed) don't allow me to change any property of Cell.
I tried to implement changes in GetCellProp method, but this works only when I load the form.

Could you please help me?

Best regards,

                   Venancio Lasquibar
Back to Top
Bart Holvoet View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 2163
Post Options Post Options   Quote Bart Holvoet Quote  Post ReplyReply Direct Link To This Post Posted: 27 May 2019 at 9:50am
Hi,

You can use the ClientEvent.EditDone property to execute custom JavaScript code when editing ends.

Example:
procedure TIWForm1.IWAppFormCreate(Sender: TObject);
begin
  TIWAdvWebGrid1.ClientEvents.EditDone.Add('el = document.getElementById("G0c" + (c+1) + "r" + (r+1));');
  TIWAdvWebGrid1.ClientEvents.EditDone.Add('el.style.backgroundColor = "red";');
end;
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down