Our blazing fast Grid component built with pure JavaScript


Post by pkuehne_sharesuite »

Hello,

we are having one issue with the autoCommit functionality in our Tree Grid.

We have a Treegrid with some editable columns.

But if you edit a child which is loaded after the parent has been expanded, the store won't autocommit these changes.
Is there any property or listener we need to setup?

This is the store setup:

        this.store = new AjaxStore({
            modelClass: ProjectTaskFinanceGridModel,
            useRestfulMethods: true,
            httpMethods: {
                read: 'GET',
                update: 'PATCH',
            },
            readUrl: environment.apiUrl + '/sharesuite/v1/web/project/task/finance/',
            updateUrl: environment.apiUrl + '/sharesuite/v1/web/project/task/finance/',
            params: {
                ctxId: 4,
                projectId: this._projectId
            },
            parentIdParamName: 'parentId',
            autoCommit: true,
            autoLoad: false,
            tree: true,
            filterParamName: 'filter',
            responseDataProperty: 'result'
        });

Post by mats »

Can you please also include the data you load from the server upon expand?


Post by pkuehne_sharesuite »

Hi below the data structure of the response:

data_structure_expand_response.png
data_structure_expand_response.png (59.1 KiB) Viewed 271 times

Post by alex.l »

Hi,

The only thing I have in my mind is that the field you edited has not been defined in data model class.
I can't say exactly without runnable code. Or at least please attach model data source code, JSON with data you used (please attach a js file we can use, it's pretty hard to use data from PNG), and exact steps to reproduce this issue.
Best of all if you'll try to modify one of our examples to reproduce this problem and share it with us, it will allow us to help you as fast as possible.

All the best,
Alex


Post Reply