Results 1 to 8 of 8

Thread: gridviewdragdrop on grid with grouping feature not working

  1. #1

    Default gridviewdragdrop on grid with grouping feature not working

    drag and drop on a grid is not working on the grid which has grouping feature enabled. is this a bug? or am I missing something? attaching fiddle below to demonstrate the issue


  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    It sounds like a known issue (EXTJS-20124) which is still unresolved. When I test your Fiddle, dragging and dropping seems to be working. What are the steps to see the issue in your test case?

  3. #3

    Default

    in the fiddle, I have 2 grids.
    In the first grid , when I drag/drop a row I am expecting it to keep the order in which I rearranged the rows with drag/drop. which is not happening.
    In the second grid, everything is working fine, when I drag drop a row the the rows are in the order the way I did the drag/drop.

    the only difference between the 2 grids is that the first grid has grouping feature, where as the second one does not.

  4. #4
    Sencha User
    Join Date
    Oct 2013
    Posts
    14
    Answers
    1

    Default

    I have the same problem. Is there a workaround (other than not using grouping and dragdrop together) ?

  5. #5
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Looks like this has been fixed for 6.2.2. I don't currently know of a workaround for this.

  6. #6

    Join Date
    Jan 2008
    Location
    Levittown, PA
    Posts
    359
    Answers
    2

    Default

    You don't have any code to change the gender on drop, so it stays (or goes back to without you seeing it) in the same grouping.

    Put this code in your fiddle after features and before columns:

    Code:
        listeners: {
    					beforedrop: function(node, data) {
    					   
    					},
    					drop: function(node, data, overModel, dropPosition, eOpts ) {
    					    data.records[0].set('gender', overModel.get('gender'));
    					}
    				},

  7. #7
    Sencha User
    Join Date
    Oct 2013
    Posts
    14
    Answers
    1

    Default

    Quote Originally Posted by mjhaston View Post
    You don't have any code to change the gender on drop, so it stays (or goes back to without you seeing it) in the same grouping.
    How would this relate to the OP's code ? There is no gender column in the fiddle.

    Thank you for an explanation.

  8. #8

    Join Date
    Jan 2008
    Location
    Levittown, PA
    Posts
    359
    Answers
    2

    Default

    Ah, I think I read this post and then found this fiddle later and thought it was the same: https://fiddle.sencha.com/#fiddle/1d8a&view/editor

Similar Threads

  1. [FIXED] Grid checkboxmodel not working with gridviewdragdrop plugin
    By cpiepka in forum Ext JS 6.x Bugs
    Replies: 1
    Last Post: 6 Dec 2016, 4:30 PM
  2. Replies: 4
    Last Post: 24 Nov 2015, 3:49 AM
  3. Replies: 15
    Last Post: 17 Dec 2014, 1:44 AM
  4. Replies: 2
    Last Post: 11 Jun 2013, 1:24 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •