Jump to content

highlight a UniDBGrid cell


Phxtecno

Recommended Posts

Thank you mate,

I think this will work for all the grid in the application (?)

 

I was looking for a solution in a single Grid, using the Event OnDrawColumnCell...

Here is possible change font and color of the cell, but I don't see how make the change

on the cell of the selected row only...

 

Marc

Link to comment
Share on other sites

I think this will work for all the grid in the application (?)

 

Also, you can use for a particular UniDBGrid:

procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  UniSession.SetStyle(
  '#'+UniDBGrid1.JSName+'_id .x-grid-cell-selected {' +
  '  font-weight: bold;' +
  '  color: green;' +
  '}');
end;

Try,

Best regards.

Link to comment
Share on other sites

Hi,

 

Then you can try this:

in the event onCreate of frame add:

UniSession.AddJS('Ext.util.CSS.createStyleSheet("'+
  '#'+UniDBGrid1.JSName+'_id .x-grid-cell-selected {' +
  '  font-weight: bold;' +
  '  color: green;' +
  '}")');

Best regards.

Link to comment
Share on other sites

Thank you, it works, partially;

the color is ok, but do not change to bold style.

Anyway I need highlight always the same column of the selected records,  even when user click on other fields to select the row.

I'll try to study on Sencha docs...

Can you point me to useful links to study on ?

 

Regards

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...