Customize code css to event onHeader not work

Before updating the scriptcase to 9.4 I could customize css properties in the GRID type application on an onHeader event. With version 9.4 the css properties are not overwritten.

example event onHeader

?>
<style>
body
{
background-color: #FFFFFF;
color: #000000;
font-family: Arial;
font-weight: normal;
font-size: 13px;
line-height: 1.1875;
margin: 0;
padding: 0;
}

#sc_grid_body{
height:170mm;
/background-color:#FBFBFB;/
border: solid 1px;
border-color:#CCCCCC;

}

</style>

maybe

  • the ID's are changed
  • you header is not enabled
  • try using !important

Checking my aps, gave me the same result.

From the moment you use a # to define a ID, the css is NOT applied.

is there a way to replace the # by its ascii or unicode in the code?

I found a way to solve this by echo the css-style and replace the # by chr(35).

echo'
<style>
 '.chr(35).'id_sc_field_idcentrum_1 {
     background-color: chartreuse !important;
}
</style>
';

Since it is common to refer to an ID using #, this seems to me a bug. Or am i wrong?

Hello,

Sorry for the delay to answer.

This problem was about the use of #.

It has been fixed by our development team. You can go on our site and download our new release.

problem solved