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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...