I have a TreeGrid with separateFolders enabled. After adding the "fields" property the folders are no longer sorted separately:
If I comment out the "fields:" line then sorting works (bug 1), but initial sort configured by "sortField" is ignored (bug 2).
Verified in showcase using SmartClient: v13.0p_2024-11-09/AllModules Development Only.
Code:
isc.DataSource.create({ ID: "pathsDS", clientOnly: true, titleField: "path", fields: [ { name: "id", type: "sequence", primaryKey: true }, { name: "parent_path_id", type: "integer", foreignKey: "id" }, { name: "path", title: "Name", type: "text" }, { name: "isFolder", type: "boolean", hidden: true }, ], cacheData: [ { id: 10, path: "A/", isFolder: true }, { id: 100, parent_path_id: 10, path: "Aa", isFolder: false }, { id: 101, parent_path_id: 10, path: "Ab", isFolder: false }, { id: 20, path: "B", isFolder: false }, { id: 30, path: "C/", isFolder: true }, { id: 300, parent_path_id: 30, path: "Ca", isFolder: false }, { id: 301, parent_path_id: 30, path: "Cb", isFolder: false }, ] }) isc.TreeGrid.create({ D: "pathsTreeGrid", dataSource: pathsDS, autoFetchData: true, width: 300, height: 300, separateFolders: true, sortField: "path", dataProperties: { titleProperty: "path" }, fields: [{name: "path"}] })
Verified in showcase using SmartClient: v13.0p_2024-11-09/AllModules Development Only.
Comment