Jump to content

DbGrid RowBorder on click


Harry Rogers

Recommended Posts

Hi,

 

Try This

 

(do not forget set options.dgrowselect:=True)

 

Call this onCreate

UniDBGrid1.JSInterface.JSCallGlobal(
      'Ext.util.CSS.createStyleSheet',
      ['#' + UniDBGrid1.JSName +
      '_id .x-grid-row-selected .x-grid-cell-inner { border-style: solid;  border-width: 5px;}',
      UniDBGrid1.JSName + '_css']);

And this onClose

UniDBGrid1.JSInterface.JSCallGlobal(
    'Ext.util.CSS.removeStyleSheet',
    [UniDBGrid1.JSName + '_css']);
Link to comment
Share on other sites

Solved

Not to worry,setting background color as part of the same style sheet entry - found it in the Sencha docs - I have ended up with this :

Many thanks for your help - all the best

 

 UniDBGrid1.JSInterface.JSCallGlobal(
      'Ext.util.CSS.createStyleSheet',
      ['#' + UniDBGrid1.JSName +
      '_id .x-grid-row-selected .x-grid-cell-inner { border-style: solid;  border-width: 1px; background-color: white;}',
      UniDBGrid1.JSName + '_css]);
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...