Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Feb 2008
    Posts
    47
    Vote Rating
    0
    gald is on a distinguished road

      0  

    Default [FNR] TreeGridDragSource.onDragStart doesn't work correctly with CellSelectionModel

    [FNR] TreeGridDragSource.onDragStart doesn't work correctly with CellSelectionModel


    on GXT 2.2 and before

    if the tree grid selection model is a CellSelectionModel nothing append
    because the method treeGrid.getSelectionModel().getSelectedItems() don't return anything

    we need to do something like that near line 84

    Code:
     
    GridSelectionModel<ModelData> sm = treeGrid.getSelectionModel();
    List<ModelData> sel;
    if (sm instanceof CellSelectionModel<?>)
    {
        sel = new ArrayList();
        sel.add(((CellSelectionModel) sm).getSelectCell().model);
    }
    else
    {
        sel = treeGrid.getSelectionModel().getSelectedItems();
    }

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    This is already fixed in SVN. But you should rethink this approach if it makes sense to use CellSelectionModel to drag a hole row.

  3. #3
    Sencha User
    Join Date
    Feb 2008
    Posts
    47
    Vote Rating
    0
    gald is on a distinguished road

      0  

    Default


    ok great,
    yes for me it make sense because the end-user edit cells and prefer the CellSelectionModel for this

Similar Threads

  1. [FNR-3] GXT 2.1 - DatePicker doesn't handle Dec 31 correctly
    By martw in forum Ext GWT: Bugs (2.x)
    Replies: 10
    Last Post: 30 Mar 2010, 11:12 AM
  2. Resize BorderLayout doesn't work correctly.
    By sorrro in forum Ext GWT: Discussion
    Replies: 1
    Last Post: 7 Oct 2009, 3:36 AM
  3. [FNR] [2.0.3] ListField.addSelectionChangedListener doesn't work
    By mariusz.pala in forum Ext GWT: Bugs (2.x)
    Replies: 7
    Last Post: 5 Oct 2009, 2:53 AM
  4. [FNR] Table.setColumnContextMenu(false) doesn't work
    By bhahn in forum Ext GWT: Bugs (1.x)
    Replies: 1
    Last Post: 4 Jun 2008, 9:27 PM

Thread Participants: 1