PDA

View Full Version : How to change position of rowediting button



earist
10 Jul 2014, 1:50 AM
Hi all,

I am using ExtJS version 4.1
I have tried to create grid with rowediting plugin on window as following picture:

49622


When I click the last row, the button of rowediting will be shown on bottom of the row as below picture:

49621


I would like to change it on the top of selected row like this picture:

49620

How can I change the button position?

Thank in advance
earist

earist
14 Jul 2014, 11:51 PM
Can anyone help me? :((

earist

Farish
15 Jul 2014, 3:37 AM
you might be able to do it by overriding the "reposition" method of Ext.grid.RowEditor. check out the variable "left" and setButtonPosition method inside reposition.