Hello,
I am dealing two problems in this design:
[LIST=1]
Thank you in advance.
Hello,
I am dealing two problems in this design:
[LIST=1]
Thank you in advance.
+1
I too have these problems with alignments in some grids.
For issue #2 you should be able to set the field to wrap text: Fields -> [FieldName] -> Display settings -> Line Break.
Did you do that?
Hi I have also been facing the same issue and here is the trick I use to over come the above issue. Place the following in the onLoad event of the Grid
echo "
<style>
.css_to_name_label {vertical-align: top;text-align: left;}
.css_to_name_grid_line {vertical-align: top;text-align: left;}
</style>
";
The first line is the Title for the field name to_name and second line is for the content of the field. SC creates different classes based on the field name so you can do by field level
If you want to apply the same formatting to all the title and fields (if you are using 8.x version then) you can use the below
echo "
<style>
.scGridLabelFont {vertical-align: top;text-align: left;}
.scGridFieldOddFont {vertical-align: top;text-align: left;}
.scGridFieldEvenFont {vertical-align: top;text-align: left;}
</style>
";
The first line is for the Title and second is for Odd lines and third one is for even lines
Hope this helps
Regards
Murali
Hi,
If you changed the field to be left aligned in its properties and its still not left aligned.
Clear your browsers cookies. Sometimes style changes made in the settings don’t take effect immediately. This has worked for me 100% of the time.
Regards
Jaques
The moment you realize you have been struggling with something for months, and the solution was so simple…
I have spent hours modifying code because the grids aligned as they pleased, instead of as defined in the scriptcase configuration… and I never understood why suddenly things worked as they should some time later.
Thank you Jaques.