Can ListGrid have row header?

Just the title question

setShowHeader(true)

Try:

ListGrid asnList = new ListGrid();
asnList.setWidth100();
asnList.setHeight("20%");
asnList.setAlternateRecordStyles(true);
asnList.setShowAllRecords(true);
asnList.setShowHeader(true);

ageofcome, you can create something that appears to be a row header by just having an additional field that uses a different field.baseStyle and using formatCellValue to show special values.

So there is nothing directly comparable to the setTopToolbar method that exists in the Gwt-Ext toolkit?

thanks!

–
Chris

chodges - is this meant to be a related question? There’s another thread about setTopToolbar showing the right approach for SmartClient.

Ooops sorry about that. I didn’t see that thread and I thought that was what the original question was about.

HI

Yes it seems a solution, and I have to combine a few row to make a row header, is that possible?
I found colum span in the example, but couldnt found row span.

There is a CubeGrid component in SmartClient (not yet available in SmartGWT), which can do generalized row and column span display for headers. See this example.

Does this make sense with the type of display you are trying to achieve or are you looking for something different? If you’re looking for something different, can you explain what the row spans actually mean to the user?

I’m looking to be able to add a row header that, for example, has buttons on them. In my Gwt-Ext project I create toolbar that has on it an “Add New” button with a graphic and also a right-justified search field on it.

If we could get that somehow that would be great.

–
Chris

@chodges: just combine a Toolstrip and the ListGrid in a VLayout.