-
10 Mar 2012 10:56 PM #1
CellModel('select')event isfired when click same position cell already to be selected
CellModel('select')event isfired when click same position cell already to be selected
Ext version tested:
- Ext 4.0.7
- Chrome 17.0
IE9
FireFox 10.0.2
- Ext.selection.CellModel ('select')event is fired when click same cell already to be selected
- select any cell in grid panel
- you can see the alert message what you have selected position of cell.
- mouseclick to same cell as you were selected one
- also you can see the alert message. this is not a what i i expected event. alert message should not be showed. cause this is a 'select' event. not a 'click' event.
- But in the case of rowModel, 'select' event is fired fine.
- alert message should not be showed
Code:
ScreenshotCode:<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=EUC-KR"> <title>Insert title here</title> <link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css"/> <script src="extjs/ext-all-debug.js"></script> </head> <body> <script> Ext.create('Ext.data.Store', { storeId:'soaStore', fields:['name', 'email', 'phone'], data:{'items':[ { 'name': 'joonyoung', "email":"test@ubiqn.com", "phone":"111-111-1224" }, { 'name': 'jongbok', "email":"bart@simpsons.com", "phone":"111-222-1234" }, { 'name': 'changho', "email":"home@simpsons.com", "phone":"111-222-1244" }, { 'name': 'sangjoo', "email":"marge@simpsons.com", "phone":"111-222-1254" } ]}, proxy: { type: 'memory', reader: { type: 'json', root: 'items' } } }); Ext.create('Ext.grid.Panel', { title: 'soa', store: Ext.data.StoreManager.lookup('soaStore'), columns: [ { header: 'Name', dataIndex: 'name' }, { header: 'Email', dataIndex: 'email', flex: 1 }, { header: 'Phone', dataIndex: 'phone' } ], height: 200, width: 400, renderTo: Ext.getBody(), selType:'cellmodel', listeners:{ 'select':function(cell, rec, row, col) { alert('cell at position ' + row + ' | ' + col + ' was selected'); } } }); </script> </body> </html>
select one cell(CellModel) will be fired 'select' event and you can see alert message firstselect.jpg
after click same position cell also be fired .
mouseClickAfterSelect.jpgLast edited by mitchellsimoens; 11 Mar 2012 at 7:05 AM. Reason: added [CODE] tags
-
11 Mar 2012 7:06 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- Vote Rating
- 436
Have you tried this in 4.1.0 beta3? I remember coming across this before.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
11 Mar 2012 4:17 PM #3
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote
