PDA

View Full Version : mvc handling itemdblclick and selecitonChange



Anthony.Hall
16 Feb 2012, 10:20 AM
I have a grid with 2 actions on my controller. When the user selects a row they can change the order. When they double click on the row another panel is loaded.

The "selectionchange" event works will for the changing order however i can't get the double click to work with. I've tried "itemdblclick" but this doesn't work when selectionChange is called. Also it does not appear to pass thru the row. What is the best way to call double click and why would there be a conflict. I've also tried "dblclick".



'processlist #processGrid': {
itemdblclick: this.onProcessLoad
},
'processlist #processGrids': {
selectionchange: this.onProcessChange
},

mitchellsimoens
16 Feb 2012, 10:57 AM
itemdblclick is the valid event. You do know your ComponentQuery selectors are different and if they were the same the last would be the only one there right? Try this


'processlist #processGrids': {
selectionchange: this.onProcessChange,
itemdblclick: this.onProcessLoad
},