Moving from 1.0 to 2.0

I have started to move from 1.0 to 2.0 and I am running into some issues hopefully someone can provide some links to. I have done a lot of searching over the forum and I am finding it very hard to narrow down onto my particular issues.

1) In 1.0 I was able to center my multiple line column headers. I notice there is obj.getHeadersTemplate().setClass("text", "wrap");, however that looks like it would automatically break when necessary and I would like to control where the lines are broken.

Which brings me to question two.

2) My text does not seem to center. How do you get a multi-line headers text to center.

3) Is there a link on tips for 1.0 users moving to 2.0?

4) Any tips on narrowing searchs here. When I do multiple word search I seemt to get all hits for all words.
April 17,
Yes, you can make headers text wrap with

obj.getHeadersTemplate().setClass("text", "wrap");

You can still specify line breaks with <br> tags, otherwise the text would break automatically.

It should be possible to center text with text-align:center rule -

.aw-column-1 {
    text-align: center;

or if this does not work, using object id

#myGrid .aw-column-1 {
    text-align: center;

The sort indicator take some space from the right. It can be corrected with

.aw-sort-none .aw-grid-sort {
    display: none!important;

Sorry, no special tips for migration. The package includes /examples/old/ folder with the same files as version 1.0 but converted to 2.0 code with some comments. Maybe this can help.
Alex (ActiveWidgets)
April 18,
Thanks Alex.

I am trying to center the headers, however the Columns are right and left justified. I am using the object Id.

So I want to center the headers but have the data in the columns right and left justified.

April 18,

This topic is archived.

See also:

Back to support forum