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

ViewState fires changes at the initialization

$
0
0
I tried to initialize a list grid with a view state I saved before. Problem is, the list grid immediately fires changed events (e.g. fieldStateChanged, viewStateChanged and groupStateChanged), which shouldn't happen, innit?

The definition of the listgrid is currently this:
Code:

isc.ListGrid.create({
        "fieldStateChanged" : function ()
        {
                console.log('Field state changed')
        },
        "groupStateChanged" : function ()
        {
                console.log('Group state changed')
        },
        "fields" :
        [
                {
                        "name" : "field"
                }
        ],
        "viewState" :
        {
                field :
                [
                        {
                                name:"field",
                                width:80
                        }
                ]
        },
})

Best Regards

Viewing all articles
Browse latest Browse all 4756

Trending Articles