0

Load on demand demo - ugly look and feel here - what's missing?

asked 2011-06-21 10:33:25 +0800

okli gravatar image okli
93

Hi,

I've tested your implementation of this demo local and the groups here are not collapsible at all. The look of them is just like a normal grid row, so how does this work with your implementation? For info I'm using 5.0.7.1 CE of ZK - this occurs in Chrome and Firefox 4.

Thanks,
Ilko

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2011-06-23 09:59:25 +0800

okli gravatar image okli
93

Thanks Maik to clarify this - perhaps, this could be mentioned on the demo pages as well, like it is on the other demos requiring non-CE edition of ZK.

link publish delete flag offensive edit

answered 2011-06-22 06:58:59 +0800

mjablonski gravatar image mjablonski
1284 3 5
http://www.jease.org/

Hi,

grouping in Grid is only supported for the PE/EE-editions of ZK:

http://www.zkoss.org/product/zk/edition

Cheers, Maik

link publish delete flag offensive edit

answered 2011-06-22 06:32:48 +0800

okli gravatar image okli
93

The copy / pasted zul if someone tries to test it (can be pasted in ZK Sandbox or saved as a local file to test it locally):

<zk>
    <zscript><![CDATA[
        RowRenderer renderer = new RowRenderer() {
 
    public void render(Row row, java.lang.Object data) {
        if(data instanceof String[]) {
            String[] ary = (String[]) data;
            Div div = new Div();
            Image icon = new Image();
            icon.setStyle("padding: 0px 10px");
            icon.setSrc("/img/Centigrade-Widget-Icons/EnvelopeOpen-16x16.png");
            div.appendChild(icon);
            new Label(ary[0]).setParent(div);
            row.appendChild(div);
            new Label(ary[1]).setParent(row);
            new Label(ary[2]).setParent(row);
            new Label(ary[3]).setParent(row);
        } else {
            new Label(data.toString()).setParent(row);
        }
    }
     
};       

public static String[][] Today = new String[][] { new String[] { "1", "[zk1 - Help] RE: Bandbox Autocomplete Problem", "2010/11/18 10:16:27", "16KB" },
            new String[] { "2", "[zk1 - Help] RE: Bandbox Autocomplete Problem", "2010/11/18 10:14:27", "18KB" },
            new String[] { "3", "[zk1 - Help] RE: Databinding with radiogroups", "2010/11/18 09:47:27", "12KB" },
            new String[] { "4", "[zk1 - Help] RE: It's not possible to navigate a listbox' ite", "2010/11/18 09:35:27", "12KB" },
            new String[] { "5", "[zk1 - Help] RE: ZK problem in dynamic menu", "2010/11/18 08:37:27", "12KB" }, new String[] { "6", "[zk1 - Help] RE: FileUpload", "2010/11/18 08:27:57", "14KB" },
            new String[] { "7", "[zk1 - Help] RE: Datebox format", "2010/11/18 06:27:31", "11KB" }, new String[] { "8", "[zk1 - Help] RE: Datebox format", "2010/11/18 06:17:22", "12KB" },
            new String[] { "9", "[zk1 - Help] FileUpload", "2010/11/18 05:07:25", "11KB" }, new String[] { "10", "[zk1 - Help] FileUpload", "2010/11/18 05:07:25", "11KB" },
            new String[] { "11", "[zk1 - Help] FileUpload", "2010/11/18 05:07:25", "11KB" },
            new String[] { "12", "[zk1 - General] RE: Opening more than one new browser window", "2010/11/18 04:44:17", "12KB" },
            new String[] { "13", "[zk1 - General] RE: Opening more than one new browser window", "2010/11/18 04:44:17", "12KB" },
            new String[] { "14", "[zk1 - General] RE: Opening more than one new browser window", "2010/11/18 04:44:17", "12KB" },
            new String[] { "15", "[zk1 - General] RE: Opening more than one new browser window", "2010/11/18 04:44:17", "12KB" },
            new String[] { "16", "[zk1 - Help] RE: SelectedItemConverter Question", "2010/11/18 04:31:12", "14KB" } };
    public static String[][] Yesterday = new String[][] { new String[] { "1", "[zk1 - General] RE: Opening more than one new browser window", "2010/11/17 19:44:17", "39KB" },
            new String[] { "2", "[zk1 - General] RE: Opening more than one new browser window", "2010/11/17 19:42:17", "35KB" },
            new String[] { "3", "[zk1 - General] RE: Opening more than one new browser window", "2010/11/17 19:40:17", "26KB" },
            new String[] { "4", "[zk1 - General] RE: Opening more than one new browser window", "2010/11/17 18:14:17", "27KB" },
            new String[] { "5", "[zk1 - General] RE: Opening more than one new browser window", "2010/11/17 17:05:17", "18KB" },
            new String[] { "6", "[zk1 - General] RE: Opening more than one new browser window", "2010/11/17 16:44:17", "19KB" },
            new String[] { "7", "[zk1 - Help] RE: SelectedItemConverter Question", "2010/11/17 13:31:12", "14KB" },
            new String[] { "8", "[zk1 - Help] RE: SelectedItemConverter Question", "2010/11/17 13:31:12", "14KB" },
            new String[] { "9", "[zk1 - Help] RE: SelectedItemConverter Question", "2010/11/17 13:31:12", "14KB" },
            new String[] { "10", "[zk1 - Help] RE: SelectedItemConverter Question", "2010/11/17 13:31:12", "14KB" },
            new String[] { "11", "[zk1 - Help] RE: Times_Series Chart help", "2010/11/17 13:26:37", "14KB" },
            new String[] { "12", "[zk1 - Help] RE: Times_Series Chart help", "2010/11/17 13:26:37", "14KB" },
            new String[] { "13", "[zk1 - Help] RE: Times_Series Chart help", "2010/11/17 13:26:37", "14KB" },
            new String[] { "14", "[zk1 - Help] RE: Times_Series Chart help", "2010/11/17 10:41:33", "14KB" },
            new String[] { "15", "[zk1 - Help] RE: SelectedItemConverter Question", "2010/11/17 10:14:27", "14KB" } };
    public static String[][] LastWeek = new String[][] { new String[] { "1", "[zk1 - Help] RE: SelectedItemConverter Question", "2010/11/15 04:31:12", "14KB" },
            new String[] { "2", "[zk1 - Help] RE: SelectedItemConverter Question", "2010/11/15 04:31:12", "14KB" },
            new String[] { "3", "[zk1 - Help] RE: SelectedItemConverter Question", "2010/11/15 04:31:12", "14KB" },
            new String[] { "4", "[zk1 - Help] RE: Times_Series Chart help", "2010/11/15 03:26:37", "14KB" },
            new String[] { "5", "[zk1 - Help] RE: Times_Series Chart help", "2010/11/15 03:26:37", "14KB" },
            new String[] { "6", "[zk1 - Help] RE: Times_Series Chart help", "2010/11/15 03:26:37", "14KB" },
            new String[] { "7", "[zk1 - Help] RE: Times_Series Chart help", "2010/11/14 12:41:33", "14KB" },
            new String[] { "8", "[zk1 - Help] RE: Times_Series Chart help", "2010/11/14 02:41:33", "14KB" },
            new String[] { "9", "[zk1 - Help] RE: Times_Series Chart help", "2010/11/14 02:41:33", "14KB" },
            new String[] { "10", "[zk1 - Help] RE: Times_Series Chart help", "2010/11/14 02:41:33", "14KB" },
            new String[] { "11", "[zk1 - Help] RE: SelectedItemConverter Question", "2010/11/13 02:14:27", "14KB" },
            new String[] { "12", "[zk1 - Help] RE: SelectedItemConverter Question", "2010/11/13 02:14:27", "14KB" },
            new String[] { "13", "[zk1 - Help] RE: SelectedItemConverter Question", "2010/11/13 02:14:27", "14KB" },
            new String[] { "14", "[zk1 - Help] RE: SelectedItemConverter Question", "2010/11/13 02:14:27", "14KB" } };
    public static String[][][] AllData = new String[][][] { Today, Yesterday, LastWeek };

        GroupsModel model = new SimpleGroupsModel(AllData, new String[]{"Date: Today", "Date: Yesterday", "Date: Last Week"});
    ]]></zscript>
    <grid id="lb1" height="400px" fixedLayout="true" model="${model}" rowRenderer="${renderer}">
        <columns>
            <column width="100px" label="From"/>
            <column label="Subject"/>
            <column width="150px" label="Received"/>
            <column width="100px" label="Size"/>
        </columns>
    </grid>
</zk>

link publish delete flag offensive edit

answered 2011-06-22 06:31:08 +0800

okli gravatar image okli
93

Nobody? I saw that if I test the code in the ZK Sandbox it works - a <tr> with class z-group, etc. will be generated. No such thing, if I run it local - the group row is generated with normal z-row class. So, is the grouping feature available only in the non-CE editions of ZK (not mentioned on the demo page) or something else is required / must be set up?

TIA

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2011-06-21 10:33:25 +0800

Seen: 215 times

Last updated: Jun 23 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More