View Full Version : GridPanel Drag and Drop: change ddText dynamically

5 Apr 2013, 8:09 AM
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 :)

8 Apr 2013, 7:12 AM
Have you tried to just change the property?

8 Apr 2013, 7:53 AM
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.