PDA

View Full Version : Locked / Freeze Column Grid



The_Jackal
30 Nov 2009, 4:04 PM
See: http://www.extjs.com/forum/showthread.php?p=413933#post413933

Non premium members can leave comments / questions here.

mattpainter
24 Feb 2010, 2:21 PM
Hi,

Thanks so much for developing this! I've implemented it for a row-selection column in an attempt to make my grid behave similarly to Excel. Screenshot below:

http://www.extjs.com/forum/attachment.php?attachmentid=18930&stc=1&d=1267050185

The_Jackal
24 Feb 2010, 3:25 PM
Looks good. I've updated the version due to a bug when dynamically adding and removing locked columns. The bug probably won't affect mattpainter's excel like grid.

See: http://www.extjs.com/forum/showthread.php?p=440743#post440743

Roddarn
22 Apr 2010, 3:22 AM
Have anyone got this working on a TreeGrid?

Firelight
23 Nov 2011, 5:50 AM
Requesting a support for AggregationRowConfig in locked grid.

I'll try to investigate this issue myself. :)

The_Jackal
8 Feb 2012, 8:36 PM
Here is an update of my lockable grid:
(http://www.sencha.com/forum/attachment.php?attachmentid=31419&d=1328577817)
33601 (update - link fixed)

It's assembled by bolting two grids together, but it's usable and can support aggregation, buffered views etc.

The usage.txt doco shows how to add it to a content panel. Please comment / make updates etc.

(Move here from the new thread I mistakely created)

khalid.eprotea
1 Apr 2012, 10:41 PM
hi jackal

can share your GridHelper.class?

The_Jackal
4 Apr 2012, 3:34 PM
‚Äč
can share your GridHelper.class?

Sorry - LockableGridManager was not meant to be included. Imagine it as a some thoughts on managing a lockable grid. Grid Helper basically refreshes a grid by throwing away the store and creating a new one to prevent a whole lot of events from firing - a bit drastic really - probably could suppress events somehow.

nickv
4 Nov 2012, 10:32 AM
Is there version of locking/freezing grid columns for GXT 3 ?

The_Jackal
4 Nov 2012, 7:04 PM
Is there version of locking/freezing grid columns for GXT 3 ?

There isn't at the moment - we haven't upgraded to GXT3 yet (and also was hoping that Sencha would see fit to create a proper version better than my hack).

saurabh0683
24 Jan 2013, 5:10 AM
Is there any update on lockable columns Grid in gxt 3???

The_Jackal
24 Jan 2013, 2:35 PM
Is there any update on lockable columns Grid in gxt 3???


I'm still using GXT 2 so no update from me - if you are a paying user send an email to Sencha to request lockable columns get added to the library! Requesting it may help convince Sencha that it's a useful feature.

It wasn't too hard to get the basic two grids synchronised - there are just some quicks to workaround. Give it a go and post back here - I and others can probably help with any issues.

Carl.

m2fro
25 Nov 2013, 6:31 AM
Hi Jackal, thanks for developing this! Question: if I press enter key while editing a cell (e.g. a numeric cell), it does not stop editing. Do you know why?

The_Jackal
27 Nov 2013, 2:24 PM
m2fro
Question: if I press enter key while editing a cell (e.g. a numeric cell), it does not stop editing. Do you know why?


Not sure. Is it in the locked part or the non locked part? Try with no locked columns. Maybe the event handling is not getting copied into the other grid? The locked columns grid is a copy of main grid.

Also it only fully supports GroupSummaryView, GroupingView, BufferView so maybe you are using a different view in your grid? You may need to add special handling in the createNewGridViewOfGridType() method...