[ 6 posts ]

Aaron Parmelee

  • Username: aparmelee
  • Joined: Thu Jul 07, 2011 1:31 pm
  • Posts: 13
  • Offline
  • Profile

YUI2 datatable column resize not resizing

Post Posted: Thu Nov 17, 2011 7:04 am
+0-
Greetings Users:

I am having an issue with YUI2 datatable columns not resizing. Well, sort of not. The columns are draggable, and after a column is dragged to a new position, then the columns become resizable.

I would like the columns to be resizable without having to drag one of them to a new position first. Any ideas? Can I fire some drag and drop event to fool the table into letting me resize the columns?

Possibly useful information:
- Columns are sortable
- Columns are (supposed to be) resizable (resizeable:true)
- Columns are draggable
- Multiple datatables on page (in same Y.use(), too (YUI2 in YUI3))

Any help would be appreciated.

Thanks
Aaron

Bret Levy

  • Username: BretLevy
  • Joined: Tue Jan 05, 2010 9:56 am
  • Posts: 34
  • Location: Atlanta, GA
  • Offline
  • Profile

Re: YUI2 datatable column resize not resizing

Post Posted: Sun Nov 20, 2011 7:34 am
+0-
Don't know if the Y3 framework is causing an issue, but assuming it is not, it should work. Here are a few things to look at:

1. the position of the mouse is important in resizing - it needs to be near the border
2. does the label of the column completely fill up or overflow the column - if so, it may case an underlying element that picks up the resize fail to get activated
3. is the column next to the original resizeable column placement "affecting" the column - thus when you move it, this conflict no longer exists
4. are you spelling resizeable correctly (ie, not rsizable)

Just my off-the-cuff thoughts. I do what you describe all the time and I have no trouble at all (that is, multiple data tables on the same page with resizeable and movable columns).

Hope that helps...

~~bret

Aaron Parmelee

  • Username: aparmelee
  • Joined: Thu Jul 07, 2011 1:31 pm
  • Posts: 13
  • Offline
  • Profile

Re: YUI2 datatable column resize not resizing

Post Posted: Mon Nov 21, 2011 6:53 am
+0-
Thanks, Bret, I will double check your points.

I have done this many times as well, and it works just fine, this is a bit why I'm stumped. I've gone over the code several times and I can't find any difference between the tables that work and those that don't. I am assuming it's something silly, and I just keep overlooking the problem.

Aaron Parmelee

  • Username: aparmelee
  • Joined: Thu Jul 07, 2011 1:31 pm
  • Posts: 13
  • Offline
  • Profile

Re: YUI2 datatable column resize not resizing

Post Posted: Mon Nov 21, 2011 11:51 am
+0-
In case anybody is watching, something is setting the height of the "yui-dt-resizer" class containers to zero, rendering them ineffective. I've reset their height to a more appropriate value, but I do not know what is causing the height to be set to zero.

Arun Karthik, Ravishankar

  • Username: falcon6n
  • Joined: Mon Oct 03, 2011 1:34 pm
  • Posts: 2
  • Offline
  • Profile

Re: YUI2 datatable column resize not resizing

Post Posted: Fri Mar 16, 2012 10:26 am
+1-
I had similar problem and I had the table within a dialog. The dialog was getting initialized at page load, and at the same time I was also initializing the table, since this datatable's div was not visible, so the height of the resizer was getting set as 0. Once I differed these dialog and datatable inits to once they were visible (the first time), things fell in the right place.

Hope this help someone.

Arun Karthik, Ravishankar

  • Username: falcon6n
  • Joined: Mon Oct 03, 2011 1:34 pm
  • Posts: 2
  • Offline
  • Profile

Re: YUI2 datatable column resize not resizing

Post Posted: Thu May 31, 2012 12:08 pm
+0-
Thank you that helped me.
  [ 6 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum