Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
535
WebDataGrid Styles
posted

Hi,

We are planning to upgrade from ultrawebgrid to Webdatagrid. For ultrawebgrid, we created some custom CSS styles like this:

 td table th  /* styling for grid header row */
{
 padding: .1em .1em .1em .4em;
 vertical-align: top;
 text-align: center;
 border: 1px solid white;
 background-color: #e2dbc8; /*#f0ece3;*/
 }

td table td /* styling for grid data rows */
{
 padding: .1em .1em .1em .4em;
 vertical-align: top;
 font-size: .85em;
 text-align: left;
 border: 1px solid white;
 background-color: #f0ece3;
 }

 tr.altrow td, .altrow{ background-color:  #e2dbc8; }

 <RowAlternateStyleDefault CssClass="altrow" />

With new web datagrid, forums say to set property 'AltItemCSSClass'. So, I set to altrow in properties dialog box. At design time, grid showed altered row colors. When I run the app, it is not picking up that CSS and defaults to grid CSS.

I know I can go to ig_Datagrid.css and set it like this.

tbody>tr.igg_Alt>td

{

background-color: #e2dbc8;}

If this is the case, why 'AltItemCSSClass' property has been provided.

Thanks,

Prathiba

Parents Reply Children
No Data