PDA

View Full Version : Grid - focus row when switching between (non-)detailed



KimH
1 Mar 2007, 1:01 AM
Open http://www.yui-ext.com/deploy/ext-1.0-alpha2/examples/grid/paging.html
Deselect "Detailed View".
Select the bottom-row in the visible area.
Select "Detailed View".

It would be great if we could have the following:

a) If only one row is selected then when switching between non-detailed and detailed view scroll it into focus.
b) If one or more rows is/are selected then when switching between non-detailed and detailed view the row that was at the top before the switch should also be at the top after a switch; except if the content isn't long enough then that row could move further down (still visible).

What do you guys think?

jack.slocum
1 Mar 2007, 10:51 AM
"Detailed View" is not part of Ext, it is part of the example. You are welcome to extend it with whatever functionality you want.

KimH
1 Mar 2007, 11:55 AM
Yeah I can see that now :-D Thanks for pointing it out though....