dataGrid with onSelectionChange shield the button receive event

16 views
Skip to first unread message

tong123123

unread,
Jan 2, 2013, 2:50:25 AM1/2/13
to google-we...@googlegroups.com
I have a datagrid which show project code and have a SingleSelectionModel attached to it, the SingleSelectionModel has a SelectionChangeHandler so each times the user select a different record in the project code datagrid, it will fire an onselectionchange event.
in the datagrid, I also has a button, I want when user click on the button, the onClick event is fired.
But the problem is, assume the record 1 is selected originally, when user pressed the record 2 remove button, the remove button onclick event will not be fired, instead the onSelectionChange event of the datagrid is fired.
How to solve this so when the user press a remove button on a non-selected record, the button onclick event is fired, not the onSelectionChanged event?

2)
as shown in the figure, the criteria table height is set to 153px, but when render in IE9, its height is 162.86px!! why?
twoproblem.jpg
Message has been deleted

tong123123

unread,
Jan 2, 2013, 3:52:56 AM1/2/13
to google-we...@googlegroups.com
sorry, please ignore the first question, I found the execute method is triggered first before onSelectChange event of the datagrid.
but for the second question, I still do not have any clue now.

Reply all
Reply to author
Forward
0 new messages