1. #1
    Sencha User
    Join Date
    Apr 2013
    Posts
    3
    Vote Rating
    0
    soul_addon is on a distinguished road

      0  

    Default GridPanel Drag and Drop: change ddText dynamically

    GridPanel Drag and Drop: change ddText dynamically


    Hello.Before I start, let me say that I'm a bit inexperient with EXT JS (been working on it since Tuesday)
    I have a website with a gridPanel that contains only 1 column with multiple values.
    When i drag a value, the text displayed can be changed inside of the Ext.grid.GridPanel using ddText:

    new Ext.grid.GridPanel({
    id: 'DashboardLeftPanelMetricsGrid',
    ddGroup: 'dropMetricDDGroup',
    store: metrics,
    ddText: 'Metric',

    (...rest of code)


    How can i change this ddText to contain the text of the dragged cell?
    I've tryed with a listener , using rowmousedown, but the event was not fired.
    How can I surpass this?
    Thank you

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,812
    Vote Rating
    836
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Have you tried to just change the property?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Apr 2013
    Posts
    3
    Vote Rating
    0
    soul_addon is on a distinguished road

      0  

    Default


    Yes, i've tried that in a listener on the grid, but the only event that worked was the "click" .. the cellmousedown would do the trick but it's not detected I don't now why.

Thread Participants: 1