Our blazing fast Grid component built with pure JavaScript


Post by gregc »

Treegrid doesn't seem to use/call updateUrl, is that not supported?

example:
Go to
https://www.bryntum.com/examples/grid/tree/

Paste in

import { TreeGrid, GridRowModel } from '../../build/grid.module.js?447702'; 
let tree = new TreeGrid({ appendTo : 'container', autoHeight : true, autoLoad: true, 

 features : { cellMenu : { items : { removeRow : false } } }, store : { 
 autoLoad: true,

readUrl : 'data/kastrup-airport.json', 
  updateUrl : 'not-calling-this.blah' 


}, columns : [ { 
 text: 'Id',
                        field: 'id',
                        width: 40,
                        editor: false
                    }, {
                        text: 'ParentIndex',
                        field: 'parentIndex',
                        width: 40,
                        hidden: true
                    }, {
                        text: 'Name',
                        field: 'name',
                        flex: 3,
                        type: 'tree',
                   }
]});

Make a change to a display in the tree, no network calls are made

Last edited by gregc on Thu Feb 04, 2021 5:48 pm, edited 1 time in total.

Post by mats »

You're not specifying autoCommit, that's why


Post by gregc »

Hmm, still not enough to trigger the updateURL


Post by mats »

Please provide a clear test case with all your code


Post by gregc »

Paste into
https://www.bryntum.com/examples/grid/tree/

import { TreeGrid, GridRowModel } from '../../build/grid.module.js?447702'; 
let tree = new TreeGrid({ appendTo : 'container',  

 features : { cellMenu : { items : { removeRow : false } } }, store : { 
 autoLoad: true,
 autoSync: true,

readUrl : 'data/kastrup-airport.json', 
  updateUrl : 'still-not-calling-this.blah' 


}, columns : [ { 
 text: 'Id',
                        field: 'id',
                        width: 40,
                        editor: false
                    }, {
                        text: 'ParentIndex',
                        field: 'parentIndex',
                        width: 40,
                        hidden: true
                    }, {
                        text: 'Name',
                        field: 'name',
                        flex: 3,
                        type: 'tree',
                   }
]});

Change an airport name, no network activity from the browser


Post by mats »

Sorry, typo by me earlier:

autoCommit : true

Post by gregc »

I should have guess that, anyway great this stuff looks so good.


Post Reply