View Full Version : Editor grid and center LayoutRegion
janixams
28 May 2008, 8:22 AM
Hi again:
I have a problem here. I have an editor grid on a center region of a BorderLayout, and this grid has tow columns but an empty space remains to the right inside the center region. I would like to fit the grid to the layout region. Any idea...??? :-/
Thanks in advance for your help.
Best regards.
mjlecomte
28 May 2008, 9:28 AM
Without any code I'm only left to guess. Use layout:'fit', and check if the area in question is the reserved space for the vertical scrollbar. Check the Grid FAQ and post some code or maybe a screenshot if you want more help.
janixams
28 May 2008, 10:45 AM
Really, I am using the same exaple posted in the API: editor grid example, inline editing.
I do not change anything except that I only show "Common Name" and "Light" columns, because I would have only tow columns. So, the space of the original columns is maintained after the second column.
Please, tell me how to fix this. I saw your recomendation, but I don't underestand how to use layout:'fit'...
I dynamically load the data to this grid and the vertical scrollbar is in there. So, you right... and I think this remaining space is due to this scrollbar. But, I didn't saw how to fix this problem in your FAQ. Can you show me the way?
Thank you for your help.
mjlecomte
28 May 2008, 12:33 PM
Generally it works best in the forums if you post your code.
janixams
28 May 2008, 1:36 PM
Thank you so much for your help. Actually, I found the error (my stupid error).
Thanks a lot.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.