Search the web
Sign In
New User? Sign Up
ydn-javascript · Yahoo! User Interface Library Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
YUI DataTable column manipulation API   Message List  
Reply | Forward Message #43414 of 52127 |
Re: [ydn-javascript] YUI DataTable column manipulation API

http://developer.yahoo.com/yui/docs/YAHOO.widget.DataTable.html#method_reorderCo\
lumn


For widths you might have to play with the styles of the HTML elements.
Since the elements of the same column have a className of
yui-dt-col-XXXX where XXXX is the column key, it is easy to handle via
Dom.getElementsByClassName using the optional fourth argument, the
function to be executed on each element.

Satyam


go94022 wrote:
> Is there an API to DataTable that allows you to resize and reorder
> columns in-place?
>
> Or more broadly, can everything you can do with drag-and-drop be
> exposed programmatically?
>
> If there isn't an API today -- could it be added in a future release?
> I wouldn't think so, but are there design/architecture limitations
> that would prevent this?
>
> BTW, this is somewhat related to:
> http://tech.groups.yahoo.com/group/ydn-javascript/message/43126
>
> If we have an open API, it's possible we could do this
> programmatically via JS.
>
> Thanks, Glen.
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com
> Version: 8.0.176 / Virus Database: 270.10.3/1879 - Release Date: 06/01/2009
17:16
>
>



Wed Jan 7, 2009 9:28 pm

satyamutsa
Offline Offline
Send Email Send Email

Forward
Message #43414 of 52127 |
Expand Messages Author Sort by Date

Is there an API to DataTable that allows you to resize and reorder columns in-place? Or more broadly, can everything you can do with drag-and-drop be exposed...
go94022
Offline Send Email
Jan 7, 2009
5:44 pm

http://developer.yahoo.com/yui/docs/YAHOO.widget.DataTable.html#method_reorderColumn For widths you might have to play with the styles of the HTML elements. ...
Satyam
satyamutsa
Offline Send Email
Jan 7, 2009
9:28 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help