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

Bug in setViewState when listgrid is grouped

$
0
0
Hello,

I'm using SmartClient Version: v9.1p_2014-06-14/PowerEdition Deployment (built 2014-06-14). IE11, Chrome.

When setting a viewState which contains grouping information, Smartclient crashes with this error message: The object does not support the property or method "startsWith".
File: ISC_Grids.js, Line: 1126, Column: 140

The problem does not occur with version v9.0.

See sample code below.
Group any listgrid's column. Then press "get and set viewState".

Code:

"use strict";
// Buttons
isc.IButton.create({ ID:"bt",
        title:"Get and set ViewState",
        autoFit:true,
        click:"lg.setViewState(lg.getViewState())"       
});       
// Grids
isc.ListGrid.create({ID: "lg",        //        Grid
        height: 150,
        width: 220,
        canEdit: true,
        fields: [
                {name:"c1", width:100},
                {name:"c2", width:100}
        ],
        data: [{c1:1, c2:"A"},{c1:2, c2:"B"}]
});
isc.VLayout.create({ID: "vl", members:[lg, bt]});

John

Viewing all articles
Browse latest Browse all 4756

Trending Articles