We see the issue you reported with separateFolders:true and are looking into a solution. However, the issue with sortField that you reported as bug #2, isn't a separate issue - if you remove the separateFolders:true setting, sortField works.
Announcement
Collapse
No announcement yet.
X
-
separateFolders in TreeGrid is ignored when using a DataSource
I have a TreeGrid with separateFolders enabled. After adding the "fields" property the folders are no longer sorted separately:
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.Tags: None
Leave a comment: