Jump to content

Highlight a grid row after update


Kurt

Recommended Posts

16 hours ago, Sherzod said:

How do you edit the grid?

i click a button, then the current row moves to the next row then i want to highlight the row that changed.

 

 

16 hours ago, Sherzod said:

Where did you get this code?

i read the documntation of ext js

Link to comment
Share on other sites

this is my current code: 

with UniDBGrid1, JSInterface do
begin                                      
  	JSCall('getView().getNode', [CurrRow + 1],'var nd');
	JSCallGlobal('Ext.fly(nd.id).highlight',[]);
end;

but when i click the button, it shows a mask then the row never gets highlighted 

Link to comment
Share on other sites

On 9/29/2023 at 5:56 AM, Kurt said:

but when i click the button, it shows a mask then the row never gets highlighted 

Then try specifying the options. Mainly duration.

// default: highlight background to yellow
el.highlight();

// custom: highlight foreground text to blue for 2 seconds
el.highlight("0000ff", { attr: 'color', duration: 2000 });

// common config options shown with default values
el.highlight("ffff9c", {
    // can be any valid CSS property (attribute) that supports a color value
    attr: "backgroundColor",
    endColor: (current color) or "ffffff",
    easing: 'easeIn',
    duration: 1000
});

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...