Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Custom ListGrid GroupTitle, is it possible ?

    Hi,

    Is it possible to have custom ListGrid grouptitle in SmartGWT ?
    I searched the forum and found it's possible in SmartClient.

    http://www.smartclient.com/docs/6.5....customGrouping

    The approach used in above example is replace (override) the getGroupTitle()
    function. But I can't even find this API in SmartGWT ... the Canvas class do have
    getGroupTitle/setGroupTile ... but it looks not related to ListGrid.

    The reason I need this feature is because
    I have a set of data (I called it events) which are grouped by a field, iid, or
    incident ID. When I group the events by iid ... the title of group will only
    show the value of iid (integer)... and I want to have more fields to be show as
    part of the group title simply because an integer (iid) is meanful only to machine
    not human.

    Any suggestion ? Thanks a lot.

    Regards
    KC
    Last edited by kccheng; 18 Jan 2009, 18:11.

    #2
    Support for custom group titles have been added to SVN. Use

    ListGridField.setGroupTitleRenderer(GroupTitleRenderer) and
    ListGridField.setGroupValueFunction(GroupValueFunction) and

    View the source of the Custom Grouping sample.

    Sanjiv

    Comment

    Working...
    X