colored Frame arround nested grid

HI

i have a nested grid in an nested grid (3 levels)

element has n questions and questions have m answeres

I would like to have different colours/or frames/or background in each grid to make it easier for the user to see in which level they are

I tried to give the nested grid a different theme but in a gird (whithout header and footer) there seems to be no difference/effect

What else can I do?

Thanks rob

probably that has something to do with http://www.scriptcase.net/forum/forum/scriptcase-8/bugs-aa/62349-bug-in-nested-grid

The most easy way is to change the row color, but it does require some work. In the onload event you can use a macro to change colours:

sc_field_style({My_Field}, “Background-Color”, “Size”, “Color”, “Family”, “Weight”) [TABLE=“class: macros_desc_table”]
[TR]
[TD] This macro allows to modify the grid field style dinamically.
[TABLE=“border: 0, width: 100%”]
[TR]
[TD=“class: corpo1, align: left”]Parameter[/TD]
[TD=“class: corpo1, align: left”]Description[/TD]
[/TR]
[TR]
[TD=“class: corpo1, align: left”]Field[/TD]
[TD=“class: corpo1, align: left”]Name[/TD]
[/TR]
[TR]
[TD=“class: corpo1, align: left”]Background-Color (optional)[/TD]
[TD=“class: corpo1, align: left”]Field cell background Color[/TD]
[/TR]
[TR]
[TD=“class: corpo1, align: left”]Size (optional)[/TD]
[TD=“class: corpo1, align: left”]Field font size[/TD]
[/TR]
[TR]
[TD=“class: corpo1, align: left”]Color (optional)[/TD]
[TD=“class: corpo1, align: left”]Font Color[/TD]
[/TR]
[TR]
[TD=“class: corpo1, align: left”]Family (optional)[/TD]
[TD=“class: corpo1, align: left”]Font family[/TD]
[/TR]
[TR]
[TD=“class: corpo1, align: left”]Weight (optional)[/TD]
[TD=“class: corpo1, align: left”]Font weight[/TD]
[/TR]
[/TABLE]

		[B]Ex. 1:[/B]
		sc_field_style({my_field}, '#33FF99', '15px', '#000000', 'Arial, sans-serif', 'bold');
		[/TD]
	[/TR]
 [/TABLE]

But it should work with CSS or?

  1. I created a new theme with realy fancy colours
  2. I changed the layout of the nested grid to the new theme
  3. when i open the GRID (parent) an then press plus the nested grid has the same colours like the parent
    But
  4. when i open the grid - without a parent - the grid is presented in the NEW theme colours

Is this on purpose? bug? … Feature?
thanks rob

I also tried your sugestion albert - I placed in “events - on record”

sc_field_style({name}, ‘#33FF99’, ‘15px’, ‘#005634’, ‘Arial, sans-serif’, ‘bold’);

this works but … I think that should be done with a style sheet -

thanks for your help
rob