Discuss anything related to web development but no technical support questions


Post by mats »

First you should read the upgrade guide for Ext Scheduler as a lot of it applies to Ext Gantt too (they share a common code base).

Here's a list of changes to the API.
  • The left and right task fields can now be edited using any type of editor. Previously you could only set "enableLabelEdit" to true/false to get a simple text editor. See below example:

    Previous API:
          enableLabelEdit : true
    
    New 1.2 API
          rightLabelField : {
                    dataIndex : 'AssignedResources',     // A field in your task store
                    renderer : function(value, taskRecord) { ... }, 
                    editor : new Ext.ux.form.LovCombo({ ... }) // Any type of Editor goes here,
                    scope : this // Optional
          },
    
  • Classes have been renamed and normalized. Sch.TreeGanttPanel is now Sch.gantt.GanttPanel, same goes for GanttView.
  • GanttPanel "drop" event has a changed method signature
  • GanttPanel "eventclick", "eventdblclick", "eventcontextmenu" has been renamed to "task"-* instead of "event".
  • GanttPanel resizeValidatorFn has a new method signature.
  • GanttPanel task resize-related events has a new method signatures.
  • New selection model class that supports keyboard navigation, found in sch.gantt.rowselectionmodel.js
  • Config option "store" has been renamed to "taskStore"
  • No longer necessary to specify a full Ext.ux.grid.LockingColumnModel. Instead just provide a "columns" array as you do for regular Ext grids.

Post Reply