Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

ListGrid scrolling

$
0
0
I have a listgrid which isn't scrolling smoothly. When scrolling down, the records "jump" to different position. It is difficult to explain but after testing a lot I have a testcase:

Code:

public class TestingModule implements EntryPoint {

        @Override
        public void onModuleLoad() {

                ListGrid lg = new ListGrid();
                lg.setDataSource(DataSource.get("table"));

                lg.setCanExpandRecords(true);

                ListGridField idField = new ListGridField("f_name");
                idField.setTitle("name");

                lg.setFields(idField);

                lg.setWidth100();
                lg.setHeight100();

                final VStack layout = new VStack(10);
                layout.setWidth100();
                layout.setHeight100();
                layout.setMembers(lg);

                lg.fetchData();

                layout.draw();
        }

}

The "table" datasource is nothing special:
Code:

<DataSource ID="table" serverType="sql" tableName="t_schueler"
        >
        <fields>
                <field name="f_schueler_id" type="sequence" primaryKey="true" />
                <field name="f_name" type="text" />
        </fields>

</DataSource>

When scrolling down, as I said, the records jump to an upper position, so the scrolling is not smooth.
If I remove this:
lg.setCanExpandRecords(true);
then the scrolling is smooth again.
So I guess there is a bug with record expansion.

Using smartGWT 4.1p: SmartClient Version: v9.1p_2014-10-28/PowerEdition Deployment (built 2014-10-28).

Viewing all articles
Browse latest Browse all 4756

Trending Articles